public static boolean isGeometryType(AttributeType type) { if (type instanceof GeometryType) { return true; } if (type instanceof ComplexTypeProxy) { if (((ComplexTypeProxy) type).getSubject() instanceof GeometryType) { return true; } } return false; }
@Override public PropertyDescriptor getDescriptor(Name name) { if (name.equals(ComplexFeatureConstants.FEATURE_CHAINING_LINK_NAME)) { return ComplexFeatureConstants.FEATURE_CHAINING_LINK; } return super.getDescriptor(name); }
private AttributeType createProxiedType( final Name assignedName, final XSDTypeDefinition typeDefinition, Map typeRegistry) { AttributeType type; if (null == typeDefinition.getSimpleType() && typeDefinition instanceof XSDComplexTypeDefinition) { if (helper.isFeatureType(typeDefinition)) { type = new FeatureTypeProxy(assignedName, typeRegistry); } else { type = new ComplexTypeProxy(assignedName, typeRegistry); } } else { if (helper.isGeometryType(typeDefinition)) { type = new GeometryTypeProxy(assignedName, typeRegistry); } else { type = new AttributeTypeProxy(assignedName, typeRegistry); } } return type; }
private AttributeType createProxiedType(final Name assignedName, final XSDTypeDefinition typeDefinition, Map typeRegistry) { AttributeType type; if (null == typeDefinition.getSimpleType() && typeDefinition instanceof XSDComplexTypeDefinition) { boolean isFeatureType = isDerivedFrom(typeDefinition, GML.getAbstractFeatureType()); if (isFeatureType) { type = new FeatureTypeProxy(assignedName, typeRegistry); } else { type = new ComplexTypeProxy(assignedName, typeRegistry); } } else { boolean isGeometryType = isDerivedFrom(typeDefinition, GML.getAbstractGeometryType()); if (isGeometryType) { type = new GeometryTypeProxy(assignedName, typeRegistry); } else { type = new AttributeTypeProxy(assignedName, typeRegistry); } } return type; }
public boolean isInline() { return ((ComplexType) getSubject()).isInline(); } }
public PropertyDescriptor getDescriptor(String name) { return ((ComplexType) getSubject()).getDescriptor(name); }
public PropertyDescriptor getDescriptor(Name name) { return ((ComplexType) getSubject()).getDescriptor(name); }
public Collection<PropertyDescriptor> getDescriptors() { return ((ComplexType) getSubject()).getDescriptors(); }
public PropertyDescriptor getDescriptor(Name name) { return ((ComplexType) getSubject()).getDescriptor(name); }
public Collection<PropertyDescriptor> getDescriptors() { return ((ComplexType) getSubject()).getDescriptors(); }
public boolean isInline() { return ((ComplexType) getSubject()).isInline(); }
public PropertyDescriptor getDescriptor(String name) { return ((ComplexType) getSubject()).getDescriptor(name); }