public boolean isFeature(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.ABSTRACT_FEATURE_TYPE_QNAME)); }
public boolean isGeometry(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.ABS_GEOMETRY_TYPE_QNAME)); }
public boolean isTopoComplexMember(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.TOPO_COMPLEX_MEMBER_TYPE_QNAME)); }
public boolean isTopoPrimitiveMember(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.TOPO_PRIMITIVE_MEMBER_TYPE_QNAME)); }
public boolean getTopologyTypesFromTopologyProperty( XSElementDeclaration element, List result) { XSTypeDefinition type = element.getTypeDefinition(); if ((type instanceof XSComplexTypeDefinition)) { XSComplexTypeDefinition complexType = (XSComplexTypeDefinition) type; XSParticle particle = complexType.getParticle(); if (particle == null) return false; return getTopologyTypesFromTopologyProperty(particle, result); } return false; }
public boolean isFeatureCollection(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.ABS_FEATURE_COLLECTION_TYPE_QNAME)); }
public boolean isTopoComplex(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.TOPO_COMPLEX_TYPE_QNAME)); }
public boolean isTopoPrimitiveArrayAssociation(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf( type, getGmlType(GmlConstants.TOPO_PRIMITIVE_ARRAY_ASSOCIATION_TYPE_QNAME)); }
public QName getGeometryType(XSElementDeclaration element) { XSComplexTypeDefinition complexType = (XSComplexTypeDefinition) element .getTypeDefinition(); if (complexType == null) { complexType = element.getEnclosingCTDefinition(); } return getGeometryType(complexType); }
public boolean isFeatureArrayProperty(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.FEATURE_ARRAY_PROPERTY_TYPE_QNAME)); }
public boolean getGeometryTypesFromGeometryProperty( XSElementDeclaration element, List result) { XSTypeDefinition type = element.getTypeDefinition(); if ((type instanceof XSComplexTypeDefinition)) { XSComplexTypeDefinition complexType = (XSComplexTypeDefinition) type; XSParticle particle = complexType.getParticle(); if (particle == null) return false; return getGeometryTypesFromGeometryProperty(particle, result); } return false; }
public boolean isGeometryCollection(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); if (isExtensionOf(type, getGmlType(GmlConstants.GEOMETRY_COLLECTION_TYPE_QNAME))) { return true; } return false; }
public boolean isGmlObject(XSElementDeclaration objectElement) { XSTypeDefinition type = objectElement.getTypeDefinition(); return isExtensionOf(type, getGmlType(GmlConstants.ABSTRACT_GML_TYPE_QNAME)); }
public Collection getMandatoryPropertyNames() { List properties = new ArrayList(); XSComplexTypeDefinition complexType = (XSComplexTypeDefinition) this.element .getTypeDefinition(); if (complexType == null) { complexType = this.element.getEnclosingCTDefinition(); } setMandatoryPropertyNames(properties, this.element, complexType.getParticle()); return properties; }
public Collection getProperties(XSElementDeclaration element) { List properties = new ArrayList(); XSComplexTypeDefinition complexType = (XSComplexTypeDefinition) element .getTypeDefinition(); if (complexType == null) { complexType = element.getEnclosingCTDefinition(); } setProperties(properties, complexType.getParticle()); return properties; }
public Collection getPropertyNames(XSElementDeclaration element) { List properties = new ArrayList(); if (isFeature(element)) { XSComplexTypeDefinition complexType = (XSComplexTypeDefinition) element .getTypeDefinition(); if (complexType == null) { complexType = element.getEnclosingCTDefinition(); } setPropertyNames(properties, element, complexType.getParticle()); } return properties; }
public GmlPropertyDefinition getProperty(String propertyNamespaceUri, String propertyLocalName) { XSComplexTypeDefinition complexType = (XSComplexTypeDefinition) this.element .getTypeDefinition(); if (complexType == null) { complexType = this.element.getEnclosingCTDefinition(); } return getProperty(complexType.getParticle(), propertyNamespaceUri, propertyLocalName); }
public QName getElementType(String namespaceUri, String localName) { XSElementDeclaration element = this.model.getElementDeclaration( localName, namespaceUri); XSTypeDefinition type = element.getTypeDefinition(); String typeNamespaceUri = type.getNamespace(); String typeName = type.getName(); return new QName(typeNamespaceUri, typeName); }
public boolean isFeatureMember(XSElementDeclaration element) { XSTypeDefinition type = element.getTypeDefinition(); return (isExtensionOf(type, getGmlType(GmlConstants.FEATURE_ASSOCIATION_TYPE_QNAME))) || (isExtensionOf(type, getGmlType(GmlConstants.FEATURE_PROPERTY_TYPE_QNAME))); }
private GenericXMLElement parseSimpleXMLElement( XMLStreamReaderWrapper xmlStream, XSElementDeclaration elDecl ) throws XMLStreamException { XSSimpleTypeDefinition xsType = (XSSimpleTypeDefinition) elDecl.getTypeDefinition(); TypedObjectNode child = new PrimitiveValue( xmlStream.getElementText(), new PrimitiveType( xsType ) ); return new GenericXMLElement( xmlStream.getName(), elDecl, null, Collections.singletonList( child ) ); }