public class TLcdXMLFeaturedDescriptor extends Object implementsILcdCollectionFeaturedDescriptor
com.luciad.util.ILcdCollectionFeaturedDescriptor
that contains additional
XML-related information about the object it describes.Constructor and Description |
---|
TLcdXMLFeaturedDescriptor(TLcdXMLSchemaBasedMapping aSchemaMapping,
ILcdCollectionFeaturedDescriptor aCollectionFeaturedDescriptor,
TLcdXMLSchemaType aType)
Creates a new
TLcdXMLFeaturedDescriptor . |
Modifier and Type | Method and Description |
---|---|
Class |
getFeatureClass(int aIndex)
Returns the
Class of the feature at the given index. |
int |
getFeatureCount()
Returns the number of features.
|
Class |
getFeatureElementClass(int aFeatureIndex)
Returns class of elements in a collection returned by
ILcdFeaturedDescriptor.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.
|
String |
getFeatureName(int aIndex)
Returns the name of the feature at the given index.
|
TLcdXMLSchemaBasedMapping |
getXMLMapping()
Returns the
TLcdXMLSchemaMapping by which the object was created. |
TLcdXMLSchemaType |
getXMLType()
Returns the XML Schema type of the object this descriptor describes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFeatureUnitOfMeasure
public TLcdXMLFeaturedDescriptor(TLcdXMLSchemaBasedMapping aSchemaMapping, ILcdCollectionFeaturedDescriptor aCollectionFeaturedDescriptor, TLcdXMLSchemaType aType)
TLcdXMLFeaturedDescriptor
.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.public TLcdXMLSchemaBasedMapping getXMLMapping()
TLcdXMLSchemaMapping
by which the object was created.TLcdXMLSchemaMapping
by which the object was created.public TLcdXMLSchemaType getXMLType()
public Class getFeatureElementClass(int aFeatureIndex)
ILcdCollectionFeaturedDescriptor
ILcdFeaturedDescriptor.getFeatureClass(int)
given that all elements must implement this class. If the feature class is not a collection,
this method returns null
.getFeatureElementClass
in interface ILcdCollectionFeaturedDescriptor
aFeatureIndex
- the index of the feature to retrieve the elements class for.
Typically this should only be done for features in which ILcdFeaturedDescriptor.getFeatureClass(int)
returns some kind of collection. For other features (with single values), this method should revert to
ILcdFeaturedDescriptor.getFeatureClass(int)
.ILcdFeaturedDescriptor.getFeatureClass(int)
given that all elements must implement this class. If the feature class is not a collection,
this method returns null
.public Class getFeatureClass(int aIndex)
ILcdFeaturedDescriptor
Class
of the feature at the given index.getFeatureClass
in interface ILcdFeaturedDescriptor
aIndex
- a valid feature index.Class
of the feature at the given index.public int getFeatureCount()
ILcdFeaturedDescriptor
getFeatureCount
in interface ILcdFeaturedDescriptor
public int getFeatureIndex(String aName)
ILcdFeaturedDescriptor
getFeatureIndex
in interface ILcdFeaturedDescriptor
aName
- a feature name.public String getFeatureName(int aIndex)
ILcdFeaturedDescriptor
getFeatureName
in interface ILcdFeaturedDescriptor
aIndex
- a valid feature index.