Class TLcdS57EnumeratedAttribute

java.lang.Object
com.luciad.internal.format.s57.ALcdS57Attribute
com.luciad.format.s57.TLcdS57EnumeratedAttribute
All Implemented Interfaces:
ILcdS57Attribute

public class TLcdS57EnumeratedAttribute extends com.luciad.internal.format.s57.ALcdS57Attribute implements ILcdS57Attribute
Implementation of ILcdS57Attribute for an enumerated value.
Since:
2013.0
  • Constructor Details

    • TLcdS57EnumeratedAttribute

      public TLcdS57EnumeratedAttribute(TLcdS57AttributeClassDescriptor aAttributeClassDescriptor, int aValue)
      Constructs a new S-57 attribute with the given S-57 attribute class descriptor and value.
      Parameters:
      aAttributeClassDescriptor - the attribute class descriptor describing the type of this attribute.
      aValue - the attribute's value.
  • Method Details

    • getStringValue

      public String getStringValue()
      Returns the value of this attribute, as a String.
      Specified by:
      getStringValue in interface ILcdS57Attribute
      Returns:
      the value of this attribute, as a String.
    • getIntValue

      public int getIntValue()
      Returns the value of this attribute, as an int.
      Specified by:
      getIntValue in interface ILcdS57Attribute
      Returns:
      the value of this attribute, as an int.
    • getFloatValue

      public float getFloatValue()
      Returns the value of this attribute, as a float, or Float.NaN if the value could not be parsed as a float.
      Specified by:
      getFloatValue in interface ILcdS57Attribute
      Returns:
      the value of this attribute, as a float.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.luciad.internal.format.s57.ALcdS57Attribute
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.luciad.internal.format.s57.ALcdS57Attribute