public class TLcdS57ObjectClassDescriptor extends Object implementsILcdFeaturedDescriptor
TLcdS57ObjectClassDescriptor
provides information about an
S-57 object class.
The following information is currently provided:
ILcdFeaturedDescriptor
methods of this descriptor are mapped on the
S-57 attributes, contained in this object descriptor.Constructor and Description |
---|
TLcdS57ObjectClassDescriptor(int aCode,
String aAcronym,
TLcdS57AttributeClassDescriptor[] aAttributeDescriptors,
TLcdDataType aDataType)
Creates a new S-57 object class descriptor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAcronym()
Returns the six-character acronym uniquely identifying this object class.
|
TLcdS57AttributeClassDescriptor |
getAttributeClassDescriptor(int aIndex)
Returns the attribute class descriptor at index
aIndex . |
int |
getAttributeClassDescriptorCount()
Returns the number of attributes used in this object class.
|
int |
getCode()
Returns the two-digit code uniquely indentifying this object class.
|
TLcdDataType |
getDataType()
Returns the datatype corresponding to this object class descriptor.
|
Class |
getFeatureClass(int aIndex)
Returns the Java class used to represent the attribute at index
aIndex . |
int |
getFeatureCount()
Returns the number of attributes in this object class descriptor.
|
int |
getFeatureIndex(String aName)
Returns the index of the attribute with the given acronym.
|
String |
getFeatureName(int aIndex)
Returns the acronym of the attribute at the given index.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFeatureUnitOfMeasure
public TLcdS57ObjectClassDescriptor(int aCode, String aAcronym, TLcdS57AttributeClassDescriptor[] aAttributeDescriptors, TLcdDataType aDataType)
aCode
- the integer code uniquely identifying this object class.aAcronym
- the 6-character acronym uniquely identifying this object class.aAttributeDescriptors
- the attribute descriptors describing the attributes of this
object
class, in the order they are listed in the specification.aDataType
- the data type describing this object class.public TLcdDataType getDataType()
public String getAcronym()
public int getCode()
public TLcdS57AttributeClassDescriptor getAttributeClassDescriptor(int aIndex)
aIndex
.aIndex
- the index of the attribute classdescriptor to be returned.aIndex
.public int getAttributeClassDescriptorCount()
public Class getFeatureClass(int aIndex)
aIndex
.getFeatureClass
in interface ILcdFeaturedDescriptor
aIndex
- the index of the attribute for which to return the Java class.aIndex
.public int getFeatureCount()
getFeatureCount
in interface ILcdFeaturedDescriptor
public int getFeatureIndex(String aName)
getFeatureIndex
in interface ILcdFeaturedDescriptor
aName
- the acronym of the attribute for which the index is to be returned.aName
.public String getFeatureName(int aIndex)
getFeatureName
in interface ILcdFeaturedDescriptor
aIndex
- the index of the attribute for which the acronym is to be returned.