Class TLcdS57ObjectClassDescriptor

java.lang.Object
com.luciad.format.s57.TLcdS57ObjectClassDescriptor
All Implemented Interfaces:
ILcdFeaturedDescriptor

public class TLcdS57ObjectClassDescriptor extends Object implements 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

The ILcdFeaturedDescriptor methods of this descriptor are mapped on the S-57 attributes, contained in this object descriptor.

  • 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

      public TLcdDataType getDataType()
      Returns the datatype corresponding to this object class descriptor.
      Returns:
      the datatype corresponding to this object class descriptor.
    • getAcronym

      public String 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

      public TLcdS57AttributeClassDescriptor getAttributeClassDescriptor(int aIndex)
      Returns the attribute class descriptor at index aIndex.
      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

      public Class getFeatureClass(int aIndex)
      Returns the Java class used to represent the attribute at index aIndex.
      Specified by:
      getFeatureClass in interface ILcdFeaturedDescriptor
      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 interface ILcdFeaturedDescriptor
      Returns:
      the number of attributes in this object class descriptor.
    • getFeatureIndex

      public int getFeatureIndex(String aName)
      Returns the index of the attribute with the given acronym.
      Specified by:
      getFeatureIndex in interface ILcdFeaturedDescriptor
      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

      public String getFeatureName(int aIndex)
      Returns the acronym of the attribute at the given index.
      Specified by:
      getFeatureName in interface ILcdFeaturedDescriptor
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object