|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 PropertyType s 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
null
public FeatureType[] getFeatureTypes()
AppSchema
getFeatureTypes
in interface AppSchema
null
public List<FeatureType> getFeatureTypes(String namespace, boolean includeCollections, boolean includeAbstracts)
AppSchema
getFeatureTypes
in interface AppSchema
namespace
- 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
null
public FeatureType[] getRootFeatureTypes()
AppSchema
getRootFeatureTypes
in interface AppSchema
null
public DynamicFeatureType getFeatureType(QName ftName)
AppSchema
getFeatureType
in interface AppSchema
ftName
- 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 AppSchema
ft
- feature type, must not be null
public FeatureType getParent(FeatureType ft)
AppSchema
getParent
in interface AppSchema
ft
- feature type, must not be null
null
public FeatureType[] getSubtypes(FeatureType ft)
AppSchema
getSubtypes
in interface AppSchema
ft
- feature type, must not be null
null
public FeatureType[] getConcreteSubtypes(FeatureType ft)
AppSchema
getConcreteSubtypes
in interface AppSchema
ft
- feature type, must not be null
null
public GMLSchemaInfoSet getGMLSchema()
AppSchema
GMLSchemaInfoSet
getGMLSchema
in interface AppSchema
null
(not based on a GML schema)public boolean isSubType(FeatureType ft, FeatureType substitution)
AppSchema
This is true, iff substitution
is either:
ft
ft
ft
isSubType
in interface AppSchema
ft
- 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)
AppSchema
PropertyType
s from the specified FeatureType
declaration that are *not* present in
the parent FeatureType
or its ancestors.
getNewPropertyDecls
in interface AppSchema
ft
- feature type, must not be null
null
public Map<FeatureType,FeatureType> getFtToSuperFt()
getFtToSuperFt
in interface AppSchema
public Map<String,String> getNamespaceBindings()
AppSchema
getNamespaceBindings
in interface AppSchema
null
public Map<QName,org.apache.xerces.xs.XSElementDeclaration> getAllowedChildElementDecls(org.apache.xerces.xs.XSComplexTypeDefinition type)
AppSchema
TODO: Respect order and cardinality of child elements.
getAllowedChildElementDecls
in interface AppSchema
type
- complex type definition, must not be null
null
public Set<String> getAppNamespaces()
AppSchema
NOTE: This excludes the GML core namespaces.
getAppNamespaces
in interface AppSchema
null
public List<String> getNamespacesDependencies(String ns)
AppSchema
getNamespacesDependencies
in interface AppSchema
ns
- application namespace, must not be null
null
public ObjectPropertyType getCustomElDecl(org.apache.xerces.xs.XSElementDeclaration elDecl)
AppSchema
ObjectPropertyType
for the given element declaration (if it defines an object property).
getCustomElDecl
in interface AppSchema
elDecl
- 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 |