Package com.luciad.format.s57
Class TLcdS57ObjectClassDescriptor
java.lang.Object
com.luciad.format.s57.TLcdS57ObjectClassDescriptor
- All Implemented Interfaces:
ILcdFeaturedDescriptor
TLcdS57ObjectClassDescriptor
provides information about an
S-57 object class.
The following information is currently provided:
- Object code
- Acronym
- Attribute classes used in this object class
ILcdFeaturedDescriptor
methods of this descriptor are mapped on the
S-57 attributes, contained in this object descriptor.-
Constructor Summary
ConstructorDescriptionTLcdS57ObjectClassDescriptor
(int aCode, String aAcronym, TLcdS57AttributeClassDescriptor[] aAttributeDescriptors, TLcdDataType aDataType) Creates a new S-57 object class descriptor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the six-character acronym uniquely identifying this object class.getAttributeClassDescriptor
(int aIndex) Returns the attribute class descriptor at indexaIndex
.int
Returns the number of attributes used in this object class.int
getCode()
Returns the two-digit code uniquely indentifying this object class.Returns the datatype corresponding to this object class descriptor.getFeatureClass
(int aIndex) Returns the Java class used to represent the attribute at indexaIndex
.int
Returns the number of attributes in this object class descriptor.int
getFeatureIndex
(String aName) Returns the index of the attribute with the given acronym.getFeatureName
(int aIndex) Returns the acronym of the attribute at the given index.int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasure
-
Constructor Details
-
TLcdS57ObjectClassDescriptor
public TLcdS57ObjectClassDescriptor(int aCode, String aAcronym, TLcdS57AttributeClassDescriptor[] aAttributeDescriptors, TLcdDataType aDataType) Creates a new S-57 object class descriptor.- Parameters:
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.
-
-
Method Details
-
getDataType
Returns the datatype corresponding to this object class descriptor.- Returns:
- the datatype corresponding to this object class descriptor.
-
getAcronym
Returns the six-character acronym uniquely identifying this object class.- Returns:
- the six-character acronym uniquely identifying this object class.
-
getCode
public int getCode()Returns the two-digit code uniquely indentifying this object class.- Returns:
- the two-digit code uniquely indentifying this object class.
-
getAttributeClassDescriptor
Returns the attribute class descriptor at indexaIndex
.- Parameters:
aIndex
- the index of the attribute classdescriptor to be returned.- Returns:
- the attribute class at index
aIndex
.
-
getAttributeClassDescriptorCount
public int getAttributeClassDescriptorCount()Returns the number of attributes used in this object class.- Returns:
- the number of attributes used in this object class.
-
getFeatureClass
Returns the Java class used to represent the attribute at indexaIndex
.- Specified by:
getFeatureClass
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- the index of the attribute for which to return the Java class.- Returns:
- the Java class used to represent the attribute at index
aIndex
.
-
getFeatureCount
public int getFeatureCount()Returns the number of attributes in this object class descriptor.- Specified by:
getFeatureCount
in interfaceILcdFeaturedDescriptor
- Returns:
- the number of attributes in this object class descriptor.
-
getFeatureIndex
Returns the index of the attribute with the given acronym.- Specified by:
getFeatureIndex
in interfaceILcdFeaturedDescriptor
- Parameters:
aName
- the acronym of the attribute for which the index is to be returned.- Returns:
- the index of the attribute with acronym
aName
.
-
getFeatureName
Returns the acronym of the attribute at the given index.- Specified by:
getFeatureName
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- the index of the attribute for which the acronym is to be returned.- Returns:
- the acronym of the attribute at the given index.
-
equals
-
hashCode
public int hashCode() -
toString
-