Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b665fb

Browse files
convert Suite to Java
1 parent d22d0c6 commit 1b665fb

1 file changed

Lines changed: 50 additions & 16 deletions

File tree

  • sqldev/src/main/java/org/utplsql/sqldev/model/runner

sqldev/src/main/java/org/utplsql/sqldev/model/runner/Suite.java

Lines changed: 50 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,53 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.utplsql.sqldev.model.runner
17-
18-
import java.util.ArrayList
19-
import java.util.List
20-
import org.eclipse.xtend.lib.annotations.Accessors
21-
22-
@Accessors
23-
class Suite extends Item {
24-
String name
25-
String description
26-
List<Item> items
27-
28-
new() {
29-
items = new ArrayList<Item>
30-
}
31-
}
16+
package org.utplsql.sqldev.model.runner;
17+
18+
import java.util.ArrayList;
19+
import java.util.List;
20+
21+
import org.springframework.core.style.ToStringCreator;
22+
import org.utplsql.sqldev.model.UtplsqlToStringStyler;
23+
24+
public class Suite extends Item {
25+
private String name;
26+
private String description;
27+
private List<Item> items;
28+
29+
public Suite() {
30+
items = new ArrayList<>();
31+
}
32+
33+
@Override
34+
public String toString() {
35+
return new ToStringCreator(this, UtplsqlToStringStyler.INSTANCE)
36+
.append("name", name)
37+
.append("description", description)
38+
.append("items", items)
39+
.toString();
40+
}
41+
42+
public String getName() {
43+
return name;
44+
}
45+
46+
public void setName(final String name) {
47+
this.name = name;
48+
}
49+
50+
public String getDescription() {
51+
return description;
52+
}
53+
54+
public void setDescription(final String description) {
55+
this.description = description;
56+
}
57+
58+
public List<Item> getItems() {
59+
return items;
60+
}
61+
62+
public void setItems(final List<Item> items) {
63+
this.items = items;
64+
}
65+
}

0 commit comments

Comments
 (0)