Package org.opengis.feature.type

Examples of org.opengis.feature.type.AssociationDescriptor


            AttributeDescriptor attribute = (AttributeDescriptor) descriptor;
            isNillable = attribute.isNillable();
            propertyType = attribute.getType();
        }
        if (descriptor instanceof AssociationDescriptor) {
            AssociationDescriptor association = (AssociationDescriptor) descriptor;
            propertyType = association.getType();
        }
    }
View Full Code Here


     * </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;
    }
View Full Code Here

    public TypeBuilder association(String namespaceURI, String name, AssociationType type) {
        return association(createName(namespaceURI, name), type);
    }

    public TypeBuilder association(Name name, AssociationType type) {
        AssociationDescriptor descriptor = getTypeFactory().createAssociationDescriptor(type, name,
                getMinOccurs(), getMaxOccurs(), isNillable());

        add(descriptor);
        return this;
    }
View Full Code Here

     * @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);
    }
View Full Code Here

     *                The name of the association.
     * @param namespaceURI
     *                The namespace of the association
     */
    public void associate(Attribute value, Name name) {
        AssociationDescriptor descriptor = associationDescriptor(name);
        Association association = attributeFactory.createAssociation(value, descriptor);

        properties().add(association);
    }
View Full Code Here

TOP

Related Classes of org.opengis.feature.type.AssociationDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.