Package com.luciad.format.s57
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 Summary
ConstructorDescriptionTLcdS57EnumeratedAttribute
(TLcdS57AttributeClassDescriptor aAttributeClassDescriptor, int 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
-
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
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
-