Class TLcdXMLFeaturedDescriptor
java.lang.Object
com.luciad.format.xml.bind.schema.TLcdXMLFeaturedDescriptor
- All Implemented Interfaces:
ILcdCollectionFeaturedDescriptor
,ILcdFeaturedDescriptor
Implementation of
com.luciad.util.ILcdCollectionFeaturedDescriptor
that contains additional
XML-related information about the object it describes.- Since:
- 9.0
-
Constructor Summary
ConstructorDescriptionTLcdXMLFeaturedDescriptor
(TLcdXMLSchemaBasedMapping aSchemaMapping, ILcdCollectionFeaturedDescriptor aCollectionFeaturedDescriptor, TLcdXMLSchemaType aType) Creates a newTLcdXMLFeaturedDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptiongetFeatureClass
(int aIndex) Returns theClass
of the feature at the given index.int
Returns the number of features.getFeatureElementClass
(int aFeatureIndex) Returns class of elements in a collection returned byILcdFeaturedDescriptor.getFeatureClass(int)
given that all elements must implement this class.int
getFeatureIndex
(String aName) Returns the index of the given feature name if it exists, -1 otherwise.getFeatureName
(int aIndex) Returns the name of the feature at the given index.Returns theTLcdXMLSchemaBasedMapping
by which the object was created.Returns the XML Schema type of the object this descriptor describes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasure
-
Constructor Details
-
TLcdXMLFeaturedDescriptor
public TLcdXMLFeaturedDescriptor(TLcdXMLSchemaBasedMapping aSchemaMapping, ILcdCollectionFeaturedDescriptor aCollectionFeaturedDescriptor, TLcdXMLSchemaType aType) Creates a newTLcdXMLFeaturedDescriptor
.- Parameters:
aSchemaMapping
- the XML Mapping containing the XML Schema Type and other mapping information from which this descriptor was created.aCollectionFeaturedDescriptor
- the featured descriptor describing the features.aType
- the XML Schema type this featured descriptor describes.
-
-
Method Details
-
getXMLMapping
Returns theTLcdXMLSchemaBasedMapping
by which the object was created.- Returns:
- the
TLcdXMLSchemaBasedMapping
by which the object was created.
-
getXMLType
Returns the XML Schema type of the object this descriptor describes.- Returns:
- the XML Schema type of the object this descriptor describes.
-
getFeatureElementClass
Description copied from interface:ILcdCollectionFeaturedDescriptor
Returns class of elements in a collection returned byILcdFeaturedDescriptor.getFeatureClass(int)
given that all elements must implement this class. If the feature class is not a collection, this method returnsnull
.- Specified by:
getFeatureElementClass
in interfaceILcdCollectionFeaturedDescriptor
- Parameters:
aFeatureIndex
- the index of the feature to retrieve the elements class for. Typically this should only be done for features in whichILcdFeaturedDescriptor.getFeatureClass(int)
returns some kind of collection. For other features (with single values), this method should revert toILcdFeaturedDescriptor.getFeatureClass(int)
.- Returns:
- class of elements in a collection returned by
ILcdFeaturedDescriptor.getFeatureClass(int)
given that all elements must implement this class. If the feature class is not a collection, this method returnsnull
.
-
getFeatureClass
Description copied from interface:ILcdFeaturedDescriptor
Returns theClass
of the feature at the given index.- Specified by:
getFeatureClass
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- a valid feature index.- Returns:
- the
Class
of the feature at the given index.
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeaturedDescriptor
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeaturedDescriptor
- Returns:
- the number of features.
-
getFeatureIndex
Description copied from interface:ILcdFeaturedDescriptor
Returns the index of the given feature name if it exists, -1 otherwise.- Specified by:
getFeatureIndex
in interfaceILcdFeaturedDescriptor
- Parameters:
aName
- a feature name.- Returns:
- the index of the given feature name if it exists, -1 otherwise.
-
getFeatureName
Description copied from interface:ILcdFeaturedDescriptor
Returns the name of the feature at the given index.- Specified by:
getFeatureName
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- a valid feature index.- Returns:
- the name of the feature at the given index.
-