Package com.luciad.format.s57
Interface ILcdS57Attribute
- All Known Implementing Classes:
com.luciad.internal.format.s57.ALcdS57Attribute,TLcdS57Attribute,TLcdS57EnumeratedAttribute,TLcdS57FloatAttribute,TLcdS57IntAttribute,TLcdS57ListAttribute
public interface ILcdS57Attribute
This class represents an S-57 attribute. It is composed of a code and a
value. The user should know the type of the attribute value to call the
correct value retrieval method. In any case, the
getStringValue()
method will work as well.-
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Returns the S-57 code for this attribute.floatReturns the value of this attribute as afloat.intReturns the value of this attribute as anint.Returns the value of this attribute as aString.
-
Method Details
-
getCode
int getCode()Returns the S-57 code for this attribute.- Returns:
- the S-57 code for this attribute.
-
getStringValue
String getStringValue()Returns the value of this attribute as aString.- Returns:
- the value of this attribute as a
String.
-
getIntValue
int getIntValue()Returns the value of this attribute as anint. This method should only be used when the attribute value is parsable.- Returns:
- the value of this attribute as an
int.
-
getFloatValue
float getFloatValue()Returns the value of this attribute as afloat. This method should only be used when the attribute value is parsable.- Returns:
- the value of this attribute as a
float.
-