示例#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;
   }
 }
示例#2
0
 boolean propertyAnonymous() {
   checkProperty();
   property.setPropertyTypeRef(new XPropertyTypeRef());
   return true;
 }
示例#3
0
 boolean propertyName(String name) {
   checkProperty();
   property.setName(name);
   return true;
 }
示例#4
0
 boolean propertyNullable() {
   checkProperty();
   property.setNullable(true);
   return true;
 }
示例#5
0
 boolean propertyArray() {
   checkProperty();
   property.setCollection(true);
   return true;
 }
示例#6
0
 boolean propertyType(String typeRef) {
   checkProperty();
   property.setPropertyTypeRef(new XPropertyTypeRef(typeRef));
   return true;
 }
示例#7
0
 public boolean propertyNoType() {
   checkProperty();
   property.setPropertyTypeRef(null);
   return true;
 }