public class TLcdGDFDatasetModelDescriptor extends TLcdModelDescriptor
ILcdModelDescriptor
describes GDF models on the dataset level.Modifier and Type | Method and Description |
---|---|
TLcdGDFAttributeType |
getAttributeType(int aIndex)
Returns the attribute type at the given index.
|
int |
getAttributeTypeCount()
Returns the number of attribute types involved in the dataset.
|
TLcdGDFAttributeType |
getAttributeTypeForCode(String aAttributeTypeCode)
Returns the attribute type with the given attribute type code.
|
TLcdGDFCountry |
getCountry(int aIndex)
Returns the country at the given index.
|
int |
getCountryCount()
Returns the number of countries involved in the dataset.
|
TLcdDataModel |
getDataModel()
Returns the data model that describes the elements of the model.
|
TLcdGDFDatasetKey |
getDatasetKey()
Returns the dataset key of this model.
|
TLcdGDFFeatureClass |
getFeatureClass(int aIndex)
Returns the feature class at the given index.
|
int |
getFeatureClassCount()
Returns the number of feature classes involved in the dataset.
|
TLcdGDFFeatureClass |
getFeatureClassForCode(int aFeatureClassCode)
Returns the feature class with the given feature class code.
|
String |
getInternationalDatasetIdentifier()
Returns the international dataset identification number of this dataset.
|
TLcdGDFLanguage |
getLanguage(int aIndex)
Returns the language at the given index.
|
int |
getLanguageCount()
Returns the number of languages used in the dataset.
|
Set<TLcdDataType> |
getModelElementTypes()
Returns a set containing all the data types of which instances can be elements in the model
associated with this descriptor.
|
Set<TLcdDataType> |
getModelTypes()
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.
|
TLcdGDFRelationshipType |
getRelationship(int aIndex)
Returns the relationship type at the given index.
|
int |
getRelationshipTypeCount()
Returns the number of relationship types involved in the dataset.
|
TLcdGDFRelationshipType |
getRelationshipTypeForCode(int aRelationshipTypeCode)
Returns the relationship type with the given relationship type code.
|
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getSourceName, getTypeName
public String getInternationalDatasetIdentifier()
public TLcdGDFDatasetKey getDatasetKey()
public int getLanguageCount()
public TLcdGDFLanguage getLanguage(int aIndex)
aIndex
- the index of the language to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getLanguageCount()
.public int getCountryCount()
public TLcdGDFCountry getCountry(int aIndex)
aIndex
- the index of the country to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getCountryCount()
.public int getAttributeTypeCount()
public TLcdGDFAttributeType getAttributeType(int aIndex)
aIndex
- the index of the attribute type to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getAtttributeTypeCount()
.public TLcdGDFAttributeType getAttributeTypeForCode(String aAttributeTypeCode)
aAttributeTypeCode
- the attribute type code of the attribute to be returned.IllegalArgumentException
- if no attribute type is available for the given attribute
type
code.public int getFeatureClassCount()
public TLcdGDFFeatureClass getFeatureClass(int aIndex)
aIndex
- the index of the feature class to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getFeatureClassCount()
.public TLcdGDFFeatureClass getFeatureClassForCode(int aFeatureClassCode)
aFeatureClassCode
- the feature class code of the feature class to be returned.IllegalArgumentException
- if no feature class is available for the given feature class
code.public int getRelationshipTypeCount()
public TLcdGDFRelationshipType getRelationship(int aIndex)
aIndex
- the index of the relationship type to be returned.IndexOutOfBoundsException
- if aIndex < 0 || aIndex >= getRElationshipTypeCount()
.public TLcdGDFRelationshipType getRelationshipTypeForCode(int aRelationshipTypeCode)
aRelationshipTypeCode
- the relationship type code of the relationship type to be
returned.IllegalArgumentException
- if no relationship type is available for the given
relationship type code.public Set<TLcdDataType> getModelElementTypes()
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() )
.
getModelElementTypes
in interface ILcdDataModelDescriptor
public TLcdDataModel getDataModel()
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)
).
getDataModel
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelTypes()
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.
getModelTypes
in interface ILcdDataModelDescriptor