Exemple #1
0
 boolean propertyIndex(String index) {
   checkProperty();
   if (!property.isCollection()) {
     throw new IllegalStateException("Cannot have an index on a non-array property");
   } else {
     property.setIndex(index);
     return true;
   }
 }
Exemple #2
0
 boolean propertyAnonymous() {
   checkProperty();
   property.setPropertyTypeRef(new XPropertyTypeRef());
   return true;
 }
Exemple #3
0
 boolean propertyName(String name) {
   checkProperty();
   property.setName(name);
   return true;
 }
Exemple #4
0
 boolean propertyNullable() {
   checkProperty();
   property.setNullable(true);
   return true;
 }
Exemple #5
0
 boolean propertyArray() {
   checkProperty();
   property.setCollection(true);
   return true;
 }
Exemple #6
0
 boolean propertyType(String typeRef) {
   checkProperty();
   property.setPropertyTypeRef(new XPropertyTypeRef(typeRef));
   return true;
 }
Exemple #7
0
 public boolean propertyNoType() {
   checkProperty();
   property.setPropertyTypeRef(null);
   return true;
 }