|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AppSchema
Defines a number of FeatureType
s and their derivation hierarchy.
Some notes:
GMLSchemaInfoSet
. If it is build from a GML schema, use getGMLSchema()
to
access to the full XML schema infoset.gml:_Feature
, since 3.2: gml:AbstractFeature
). This is not necessary, as each
FeatureType
object is already identified being a feature type by its class.
Method Summary | |
---|---|
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. |
FeatureType |
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. |
Method Detail |
---|
FeatureType[] getFeatureTypes()
null
List<FeatureType> getFeatureTypes(String namespace, boolean includeCollections, boolean includeAbstracts)
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
FeatureType[] getRootFeatureTypes()
null
FeatureType getFeatureType(QName ftName)
ftName
- feature type name to look up, must not be null
null
if no such feature type existsFeatureType[] getDirectSubtypes(FeatureType ft)
ft
- feature type, must not be null
FeatureType getParent(FeatureType ft)
ft
- feature type, must not be null
null
FeatureType[] getSubtypes(FeatureType ft)
ft
- feature type, must not be null
null
FeatureType[] getConcreteSubtypes(FeatureType ft)
ft
- feature type, must not be null
null
GMLSchemaInfoSet getGMLSchema()
GMLSchemaInfoSet
null
(not based on a GML schema)boolean isSubType(FeatureType ft, FeatureType substitution)
This is true, iff substitution
is either:
ft
ft
ft
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 oneList<PropertyType> getNewPropertyDecls(FeatureType ft)
PropertyType
s from the specified FeatureType
declaration that are *not* present in
the parent FeatureType
or its ancestors.
ft
- feature type, must not be null
null
Map<FeatureType,FeatureType> getFtToSuperFt()
Map<String,String> getNamespaceBindings()
null
Map<QName,org.apache.xerces.xs.XSElementDeclaration> getAllowedChildElementDecls(org.apache.xerces.xs.XSComplexTypeDefinition type)
TODO: Respect order and cardinality of child elements.
type
- complex type definition, must not be null
null
Set<String> getAppNamespaces()
NOTE: This excludes the GML core namespaces.
null
List<String> getNamespacesDependencies(String ns)
ns
- application namespace, must not be null
null
ObjectPropertyType getCustomElDecl(org.apache.xerces.xs.XSElementDeclaration elDecl)
ObjectPropertyType
for the given element declaration (if it defines an object property).
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 |