private FeatureType buildFeatureType( XSElementDeclaration elDecl ) { final GMLObjectType type = objectTypeFactory.build( elDecl ); final List<XSElementDeclaration> fcDecls = gmlSchema.getFeatureCollectionElementDeclarations( null, false ); if ( fcDecls.contains( elDecl ) ) { return new GenericFeatureCollectionType( type.getName(), type.getPropertyDeclarations(), elDecl.getAbstract() ); } return new GenericFeatureType( type.getName(), type.getPropertyDeclarations(), elDecl.getAbstract() ); }
private List<Property> parseProperties( XMLStreamReaderWrapper xmlStream, ICRS crs, GMLObjectType type ) throws XMLStreamException, UnknownCRSException { Iterator<PropertyType> declIter = type.getPropertyDeclarations().iterator(); PropertyType activeDecl = declIter.next(); int propOccurences = 0;