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