@ComputedProperty static List<String> bothNames(String firstName, String lastName) { return Models.asList(firstName, lastName); }
@ComputedProperty public static String fullName(String firstName, String lastName) { return firstName + " " + lastName; }
String name() { return p.name(); }
public static Object create() { return new FakeModel(); }
@Model(className = "People", properties = { @Property(array = true, name = "info", type = Person.class), @Property(array = true, name = "nicknames", type = String.class), @Property(array = true, name = "age", type = int.class), @Property(array = true, name = "sex", type = Sex.class) }) public class PeopleImpl { }
@ComputedProperty static boolean fieldShowing(GameState state) { return state != null; }
String name() { return p.name(); }
@ComputedProperty static Pair nextOne(Pair next) { return next; }
@ComputedProperty(write = "parseNames") public static String fullName(String firstName, String lastName) { return firstName + " " + lastName; }
@Model(className = "People", properties = { @Property(array = true, name = "info", type = Person.class), @Property(array = true, name = "nicknames", type = String.class), @Property(array = true, name = "age", type = int.class), @Property(array = true, name = "sex", type = Sex.class) }) public class PeopleImpl { }
@ComputedProperty static String helloMessage(String name) { return "Hello " + name + "!"; }
@Model(className = "ArchetypeData", properties = { @Property(name = "artifactId", type = String.class), @Property(name = "groupId", type = String.class), @Property(name = "version", type = String.class), @Property(name = "name", type = String.class), @Property(name = "description", type = String.class), @Property(name = "url", type = String.class), }) static class ArchModel { }
@ComputedProperty static List<String> cmpResults(List<String> results) { return results; }
@Model(className = "ConstantModel", targetId = "", builder = "assign", properties = { @Property(name = "doubleValue", mutable = false, type = double.class), @Property(name = "stringValue", mutable = false, type = String.class), @Property(name = "boolValue", mutable = false, type = boolean.class), @Property(name = "intArray", mutable = false, type = int.class, array = true), }) static class ConstantCntrl { }