Class TLcdS57Attribute

java.lang.Object
com.luciad.internal.format.s57.ALcdS57Attribute
com.luciad.format.s57.TLcdS57Attribute
All Implemented Interfaces:
ILcdS57Attribute, Serializable

public class TLcdS57Attribute extends com.luciad.internal.format.s57.ALcdS57Attribute implements ILcdS57Attribute, Serializable
Implementation of an ILcdS57Attribute for attributes of type 'coded string' and 'free text'. This implementation should only be used for those 2 attribute types; other implementations are available for the other S-57 attribute types.
See Also:
  • Constructor Details

    • TLcdS57Attribute

      public TLcdS57Attribute(int aAttributeClassCode, String aValue)
      Constructs a new S-57 attribute with the given S-57 attribute class code and value.
      Parameters:
      aAttributeClassCode -
      aValue -
    • TLcdS57Attribute

      public TLcdS57Attribute(TLcdS57AttributeClassDescriptor attributeClassDescriptor, String aValue)
      Constructs a new S-57 attribute with the given S-57 attribute class descriptor and value.
      Parameters:
      attributeClassDescriptor -
      aValue -
  • 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