Package com.luciad.format.s57
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 Summary
ConstructorDescriptionTLcdS57Attribute
(int aAttributeClassCode, String aValue) Constructs a new S-57 attribute with the given S-57 attribute class code and value.TLcdS57Attribute
(TLcdS57AttributeClassDescriptor attributeClassDescriptor, String aValue) Constructs a new S-57 attribute with the given S-57 attribute class descriptor and value. -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
Returns the value of this attribute, as afloat
, orFloat.NaN
if the value could not be parsed as a float.int
Returns the value of this attribute, as anint
.Returns the value of this attribute, as aString
.int
hashCode()
Methods inherited from class com.luciad.internal.format.s57.ALcdS57Attribute
getAttributeClassDescriptor, getCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.format.s57.ILcdS57Attribute
getCode
-
Constructor Details
-
TLcdS57Attribute
Constructs a new S-57 attribute with the given S-57 attribute class code and value.- Parameters:
aAttributeClassCode
-aValue
-
-
TLcdS57Attribute
Constructs a new S-57 attribute with the given S-57 attribute class descriptor and value.- Parameters:
attributeClassDescriptor
-aValue
-
-
-
Method Details
-
getStringValue
Returns the value of this attribute, as aString
.- Specified by:
getStringValue
in interfaceILcdS57Attribute
- Returns:
- the value of this attribute, as a
String
.
-
getIntValue
public int getIntValue()Returns the value of this attribute, as anint
.- Specified by:
getIntValue
in interfaceILcdS57Attribute
- Returns:
- the value of this attribute, as an
int
.
-
getFloatValue
public float getFloatValue()Returns the value of this attribute, as afloat
, orFloat.NaN
if the value could not be parsed as a float.- Specified by:
getFloatValue
in interfaceILcdS57Attribute
- Returns:
- the value of this attribute, as a
float
.
-
equals
- Overrides:
equals
in classcom.luciad.internal.format.s57.ALcdS57Attribute
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.luciad.internal.format.s57.ALcdS57Attribute
-