|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.types.ApplicationSchema
public class ApplicationSchema
Defines a number of FeatureTypes and their derivation hierarchy.
Some notes:
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.
| Constructor Summary | |
|---|---|
ApplicationSchema(FeatureType[] fts,
Map<FeatureType,FeatureType> ftToSuperFt)
Creates a new ApplicationSchema instance from the given FeatureTypes and their derivation
hierarchy. |
|
| Method Summary | |
|---|---|
FeatureType |
getConcreteSubtypes(FeatureType ft)
Retrieves all concrete substitutions for the given feature type. |
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. |
ArrayList<FeatureType> |
getFeatureTypes(boolean includeCollections,
boolean includeAbstracts)
Returns all feature types that are defined in this application schema, limited by the options. |
List<PropertyType<?>> |
getNewPropertyDeclarations(FeatureType ft)
Returns the PropertyTypes from the specified FeatureType declaration that are *not* present in
the parent FeatureType or its ancestors. |
FeatureType |
getParentFt(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 ApplicationSchema(FeatureType[] fts,
Map<FeatureType,FeatureType> ftToSuperFt)
throws IllegalArgumentException
ApplicationSchema instance from the given FeatureTypes and their derivation
hierarchy.
fts - all application feature types (abstract and non-abstract), this must not include any GML base feature
types (e.g. gml:_Feature or gml:FeatureCollection)ftToSuperFt - key: feature type A, value: feature type B (A extends B), this must not include any GML base feature
types (e.g. gml:_Feature or gml:FeatureCollection)
IllegalArgumentException - if a feature type cannot be resolved (i.e. it is referenced in a property type, but not defined)| Method Detail |
|---|
public FeatureType[] getFeatureTypes()
null
public ArrayList<FeatureType> getFeatureTypes(boolean includeCollections,
boolean includeAbstracts)
includeCollections - includeAbstracts -
nullpublic FeatureType[] getRootFeatureTypes()
nullpublic FeatureType getFeatureType(QName ftName)
ftName - feature type name to look up
public FeatureType[] getDirectSubtypes(FeatureType ft)
ft - feature type, must not be null
public FeatureType getParentFt(FeatureType ft)
ft - feature type, must not be null
nullpublic FeatureType getSubtypes(FeatureType ft)
ft - feature type, must not be null
public FeatureType getConcreteSubtypes(FeatureType ft)
ft - feature type, must not be null
public boolean isSubType(FeatureType ft,
FeatureType substitution)
This is true, iff substitution is either:
ftftft
ft - base feature type, must be part of this schemasubstitution - feature type to be checked, must be part of this schema
public List<PropertyType<?>> getNewPropertyDeclarations(FeatureType ft)
PropertyTypes from the specified FeatureType declaration that are *not* present in
the parent FeatureType or its ancestors.
ft - feature type, must not be null
null
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||