Class TLcdGDFDatasetModelDescriptor
- All Implemented Interfaces:
ILcdDataModelDescriptor
,ILcdModelDescriptor
,Serializable
ILcdModelDescriptor
describes GDF models on the dataset level.- Since:
- 5.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeType
(int aIndex) Returns the attribute type at the given index.int
Returns the number of attribute types involved in the dataset.getAttributeTypeForCode
(String aAttributeTypeCode) Returns the attribute type with the given attribute type code.getCountry
(int aIndex) Returns the country at the given index.int
Returns the number of countries involved in the dataset.Returns the data model that describes the elements of the model.Returns the dataset key of this model.getFeatureClass
(int aIndex) Returns the feature class at the given index.int
Returns the number of feature classes involved in the dataset.getFeatureClassForCode
(int aFeatureClassCode) Returns the feature class with the given feature class code.Returns the international dataset identification number of this dataset.getLanguage
(int aIndex) Returns the language at the given index.int
Returns the number of languages used in the dataset.Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor.Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor.getRelationship
(int aIndex) Returns the relationship type at the given index.int
Returns the number of relationship types involved in the dataset.getRelationshipTypeForCode
(int aRelationshipTypeCode) Returns the relationship type with the given relationship type code.Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Method Details
-
getInternationalDatasetIdentifier
Returns the international dataset identification number of this dataset.- Returns:
- the international dataset identification number of this dataset.
-
getDatasetKey
Returns the dataset key of this model.- Returns:
- the dataset key of this model.
-
getLanguageCount
public int getLanguageCount()Returns the number of languages used in the dataset.- Returns:
- the number of languages used in the dataset.
-
getLanguage
Returns the language at the given index.- Parameters:
aIndex
- the index of the language to be returned.- Returns:
- the language at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getLanguageCount()
.
-
getCountryCount
public int getCountryCount()Returns the number of countries involved in the dataset.- Returns:
- the number of countries involved in the dataset.
-
getCountry
Returns the country at the given index.- Parameters:
aIndex
- the index of the country to be returned.- Returns:
- the country at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getCountryCount()
.
-
getAttributeTypeCount
public int getAttributeTypeCount()Returns the number of attribute types involved in the dataset.- Returns:
- the number of attribute types involved in the dataset.
-
getAttributeType
Returns the attribute type at the given index.- Parameters:
aIndex
- the index of the attribute type to be returned.- Returns:
- the attribute type at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getAtttributeTypeCount()
.
-
getAttributeTypeForCode
Returns the attribute type with the given attribute type code.- Parameters:
aAttributeTypeCode
- the attribute type code of the attribute to be returned.- Returns:
- the attribute type with the given attribute type code.
- Throws:
IllegalArgumentException
- if no attribute type is available for the given attribute type code.
-
getFeatureClassCount
public int getFeatureClassCount()Returns the number of feature classes involved in the dataset.- Returns:
- the number of feature classes involved in the dataset.
-
getFeatureClass
Returns the feature class at the given index.- Parameters:
aIndex
- the index of the feature class to be returned.- Returns:
- the feature class at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getFeatureClassCount()
.
-
getFeatureClassForCode
Returns the feature class with the given feature class code.- Parameters:
aFeatureClassCode
- the feature class code of the feature class to be returned.- Returns:
- the feature class with the given feature type code.
- Throws:
IllegalArgumentException
- if no feature class is available for the given feature class code.
-
getRelationshipTypeCount
public int getRelationshipTypeCount()Returns the number of relationship types involved in the dataset.- Returns:
- the number of relationship types involved in the dataset.
-
getRelationship
Returns the relationship type at the given index.- Parameters:
aIndex
- the index of the relationship type to be returned.- Returns:
- the relationship type at the given index.
- Throws:
IndexOutOfBoundsException
- ifaIndex < 0 || aIndex >= getRElationshipTypeCount()
.
-
getRelationshipTypeForCode
Returns the relationship type with the given relationship type code.- Parameters:
aRelationshipTypeCode
- the relationship type code of the relationship type to be returned.- Returns:
- the relationship type with the given relationship type code.
- Throws:
IllegalArgumentException
- if no relationship type is available for the given relationship type code.
-
getModelElementTypes
Description copied from interface:ILcdDataModelDescriptor
Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually elements in the model; but they are not required to do so.
Implementations should return
null
in case they don't know which element types are present in the model.For each element of the model associated with this model descriptor, the following holds true :
getModelElementTypes().contains( element.getDataType() )
.- Specified by:
getModelElementTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be elements in the model associated with this descriptor
-
getDataModel
Description copied from interface:ILcdDataModelDescriptor
Returns the data model that describes the elements of the model. Note that not necessarily all data in the model will be of a type of this data model. Very likely, types from the dependencies of the returned data model are used as well.
In case the model accepts objects from multiple data models, an anonymous data model that depends on all these data models should be returned (see
TLcdDataModelBuilder.createAnonymousDataModel(java.util.Collection)
).- Specified by:
getDataModel
in interfaceILcdDataModelDescriptor
- Returns:
- the data model that describes the elements of the model
-
getModelTypes
Description copied from interface:ILcdDataModelDescriptor
Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually instances in the model; but they are not required to do so.
A simple and correct implementation would be to return
getDataModel().getTypes()
. Implementations are encouraged to return a subset of this set if they can do so without spending an unreasonable amount of resources.Implementations should return
null
in case they don't know which types are present in the model.- Specified by:
getModelTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-