public class TLcdS57Attribute extends com.luciad.internal.format.s57.ALcdS57Attribute implements ILcdS57Attribute, Serializable
Constructor and Description |
---|
TLcdS57Attribute(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
float |
getFloatValue()
Returns the value of this attribute, as a
float , or
Float.NaN if the value could not be parsed as a float. |
int |
getIntValue()
Returns the value of this attribute, as an
int . |
String |
getStringValue()
Returns the value of this attribute, as a
String . |
int |
hashCode() |
getAttributeClassDescriptor, getCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCode
public TLcdS57Attribute(int aAttributeClassCode, String aValue)
aAttributeClassCode
- aValue
- public TLcdS57Attribute(TLcdS57AttributeClassDescriptor attributeClassDescriptor, String aValue)
attributeClassDescriptor
- aValue
- public String getStringValue()
String
.getStringValue
in interface ILcdS57Attribute
String
.public int getIntValue()
int
.getIntValue
in interface ILcdS57Attribute
int
.public float getFloatValue()
float
, or
Float.NaN
if the value could not be parsed as a float.getFloatValue
in interface ILcdS57Attribute
float
.public boolean equals(Object o)
equals
in class com.luciad.internal.format.s57.ALcdS57Attribute
public int hashCode()
hashCode
in class com.luciad.internal.format.s57.ALcdS57Attribute