public TypeBuilder association(Name name, AssociationType type) { AssociationDescriptor descriptor = getTypeFactory() .createAssociationDescriptor( type, name, getMinOccurs(), getMaxOccurs(), isNillable()); add(descriptor); return this; }
/** * Creates a association descriptor and adds to collection members. * * <p>Calls clear to reset cardinality after use. * * @param name * @param type * @return TypeBuilder for operation chaining */ public TypeBuilder member(Name name, AssociationType type) { AssociationDescriptor descriptor = getTypeFactory() .createAssociationDescriptor( type, name, getMinOccurs(), getMaxOccurs(), isNillable()); clear(); return member(descriptor); }
/** * Create an AssociationDesctiptor, define relationships between ComplexAttribtues (in * particular FeatureCollection to members). * * <p>Example: * * <pre><code> * AttributeDescriptor contains = build.name("contains").property(ROAD).nillable(false).cardinality(0, * Interger.MAX_VALUE).associationDescriptor(); * </code></pre> * * @return AttributeDescriptor used to define sturcture of ComplexAttribtues */ public AssociationDescriptor associationDescriptor() { AssociationDescriptor association = getTypeFactory() .createAssociationDescriptor( (AssociationType) propertyType, typeName(), getMinOccurs(), getMaxOccurs(), isNillable()); reset(); return association; }
public TypeBuilder association(Name name, AssociationType type) { AssociationDescriptor descriptor = getTypeFactory().createAssociationDescriptor(type, name, getMinOccurs(), getMaxOccurs(), isNillable()); add(descriptor); return this; }
/** * Creates a association descriptor and adds to collection members. * <p> * Calls clear to reset cardinality after use. * </p> * * @param name * @param type * @return TypeBuilder for operation chaining */ public TypeBuilder member(Name name, AssociationType type) { AssociationDescriptor descriptor = getTypeFactory().createAssociationDescriptor(type, name, getMinOccurs(), getMaxOccurs(), isNillable()); clear(); return member(descriptor); }
/** * Create an AssociationDesctiptor, define relationships between ComplexAttribtues (in * particular FeatureCollection to members). * <p> * Example: * * <pre><code> * AttributeDescriptor contains = build.name("contains").property(ROAD).nillable(false).cardinality(0, * Interger.MAX_VALUE).associationDescriptor(); * </code></pre> * * @return AttributeDescriptor used to define sturcture of ComplexAttribtues */ public AssociationDescriptor associationDescriptor() { AssociationDescriptor association = getTypeFactory().createAssociationDescriptor( (AssociationType) propertyType, typeName(), getMinOccurs(), getMaxOccurs(), isNillable()); reset(); return association; }
null, null); AssociationDescriptor associationDescriptor = tf .createAssociationDescriptor(associationType, type.getName(), 1, 1, true);