|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.types.DynamicAppSchema
public class DynamicAppSchema
AppSchema that allows to add FeatureTypes during runtime.
| Constructor Summary | |
|---|---|
DynamicAppSchema()
|
|
| Method Summary | |
|---|---|
DynamicFeatureType |
addFeatureType(QName ftName)
Adds a new DynamicFeatureType for the given feature type name. |
Map<QName,org.apache.xerces.xs.XSElementDeclaration> |
getAllowedChildElementDecls(org.apache.xerces.xs.XSComplexTypeDefinition type)
Returns the child elements that the given complex type definition allows for. |
Set<String> |
getAppNamespaces()
Returns the application namespaces. |
FeatureType[] |
getConcreteSubtypes(FeatureType ft)
Retrieves all concrete substitutions for the given feature type. |
ObjectPropertyType |
getCustomElDecl(org.apache.xerces.xs.XSElementDeclaration elDecl)
Returns the ObjectPropertyType for the given element declaration (if it defines an object property). |
FeatureType[] |
getDirectSubtypes(FeatureType ft)
Retrieves the direct subtypes for the given feature type. |
DynamicFeatureType |
getFeatureType(QName ftName)
Retrieves the feature type with the given name. |
FeatureType[] |
getFeatureTypes()
Returns all feature types that are defined in this application schema. |
List<FeatureType> |
getFeatureTypes(String namespace,
boolean includeCollections,
boolean includeAbstracts)
Returns all feature types that are defined in this application schema, limited by the options. |
Map<FeatureType,FeatureType> |
getFtToSuperFt()
|
GMLSchemaInfoSet |
getGMLSchema()
Returns the underlying GMLSchemaInfoSet |
Map<String,String> |
getNamespaceBindings()
Returns the preferred namespace bindings for all namespaces. |
List<String> |
getNamespacesDependencies(String ns)
Returns the namespaces that the definitions in the given namespace depend upon (excluding transitive dependencies). |
List<PropertyType> |
getNewPropertyDecls(FeatureType ft)
Returns the PropertyTypes from the specified FeatureType declaration that are *not* present in
the parent FeatureType or its ancestors. |
FeatureType |
getParent(FeatureType ft)
Retrieves the parent feature type for the specified feature type. |
FeatureType[] |
getRootFeatureTypes()
Returns all root feature types that are defined in this application schema. |
FeatureType[] |
getSubtypes(FeatureType ft)
Retrieves all substitutions (abstract and non-abstract ones) for the given feature type. |
boolean |
isSubType(FeatureType ft,
FeatureType substitution)
Determines whether a feature type is substitutable for another feature type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicAppSchema()
| Method Detail |
|---|
public DynamicFeatureType addFeatureType(QName ftName)
DynamicFeatureType for the given feature type name.
ftName - feature type name, must not be null
nullpublic FeatureType[] getFeatureTypes()
AppSchema
getFeatureTypes in interface AppSchemanull
public List<FeatureType> getFeatureTypes(String namespace,
boolean includeCollections,
boolean includeAbstracts)
AppSchema
getFeatureTypes in interface AppSchemanamespace - may be null (include all feature types from all namespaces)includeCollections - set to true, if feature collection types shall be included, false otherwiseincludeAbstracts - set to true, if abstract types shall be included, false otherwise
nullpublic FeatureType[] getRootFeatureTypes()
AppSchema
getRootFeatureTypes in interface AppSchemanullpublic DynamicFeatureType getFeatureType(QName ftName)
AppSchema
getFeatureType in interface AppSchemaftName - feature type name to look up, must not be null
null if no such feature type existspublic FeatureType[] getDirectSubtypes(FeatureType ft)
AppSchema
getDirectSubtypes in interface AppSchemaft - feature type, must not be null
public FeatureType getParent(FeatureType ft)
AppSchema
getParent in interface AppSchemaft - feature type, must not be null
nullpublic FeatureType[] getSubtypes(FeatureType ft)
AppSchema
getSubtypes in interface AppSchemaft - feature type, must not be null
nullpublic FeatureType[] getConcreteSubtypes(FeatureType ft)
AppSchema
getConcreteSubtypes in interface AppSchemaft - feature type, must not be null
nullpublic GMLSchemaInfoSet getGMLSchema()
AppSchemaGMLSchemaInfoSet
getGMLSchema in interface AppSchemanull (not based on a GML schema)
public boolean isSubType(FeatureType ft,
FeatureType substitution)
AppSchema
This is true, iff substitution is either:
ftftft
isSubType in interface AppSchemaft - base feature type, must be part of this schemasubstitution - feature type to be checked, must be part of this schema
true, if the second feature type is a valid substitution for the first onepublic List<PropertyType> getNewPropertyDecls(FeatureType ft)
AppSchemaPropertyTypes from the specified FeatureType declaration that are *not* present in
the parent FeatureType or its ancestors.
getNewPropertyDecls in interface AppSchemaft - feature type, must not be null
nullpublic Map<FeatureType,FeatureType> getFtToSuperFt()
getFtToSuperFt in interface AppSchemapublic Map<String,String> getNamespaceBindings()
AppSchema
getNamespaceBindings in interface AppSchemanullpublic Map<QName,org.apache.xerces.xs.XSElementDeclaration> getAllowedChildElementDecls(org.apache.xerces.xs.XSComplexTypeDefinition type)
AppSchemaTODO: Respect order and cardinality of child elements.
getAllowedChildElementDecls in interface AppSchematype - complex type definition, must not be null
nullpublic Set<String> getAppNamespaces()
AppSchemaNOTE: This excludes the GML core namespaces.
getAppNamespaces in interface AppSchemanullpublic List<String> getNamespacesDependencies(String ns)
AppSchema
getNamespacesDependencies in interface AppSchemans - application namespace, must not be null
nullpublic ObjectPropertyType getCustomElDecl(org.apache.xerces.xs.XSElementDeclaration elDecl)
AppSchemaObjectPropertyType for the given element declaration (if it defines an object property).
getCustomElDecl in interface AppSchemaelDecl - element declaration, must not be null
null (if the element does not declare an ObjectPropertyType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||