TLcdS57Identifier
instead.public class TLcdS57EditableIdentifier extends Object implements ILcdS57Identifier,ILcdFeatured
Constructor and Description |
---|
TLcdS57EditableIdentifier(int aObjectClassCode)
Deprecated.
Constructs a new S-57 editable identifier, initialized with the given object class code.
|
TLcdS57EditableIdentifier(TLcdS57ObjectClassDescriptor aObjectClassDescriptor)
Deprecated.
Constructs a new S-57 editable identifier, initialized with the given object class descriptor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(ILcdS57Attribute aAttribute)
Deprecated.
Adds the given attribute to this S-57 identifier.
|
boolean |
canSetFeature(int aIndex)
Deprecated.
Checks whether the specified feature is editable.
|
boolean |
equals(Object o)
Deprecated.
|
Object |
getFeature(int aIndex)
Deprecated.
Returns the feature
Object at the given index. |
int |
getFeatureCount()
Deprecated.
Returns the number of features.
|
long |
getLongName()
Deprecated.
Gets the "Long Name" of this S-57 feature object.
|
TLcdS57ObjectClassDescriptor |
getObjectClassDescriptor()
Deprecated.
Returns the S-57 object class descriptor, describing this identifier.
|
ILcdS57Attribute |
getS57Attribute(int aIndex)
Deprecated.
Gets the TLcdS57Attribute at a given index.
|
int |
getS57AttributeCount()
Deprecated.
Gets the number of TLcdS57Attributes stored in this identifier.
|
ILcdS57Attribute |
getS57AttributeForCode(int aCode)
Deprecated.
Gets the TLcdS57Attribute that has the given code.
|
int |
getS57ObjectClass()
Deprecated.
Gets the object class.
|
int |
hashCode()
Deprecated.
|
boolean |
isSimilar(ILcdS57Identifier aIdentifier)
Deprecated.
Returns whether the given identifier is similar to this identifier,
meaning they have the same object class and attribute values, but that
the given identifier can have more attributes than this one.
|
void |
removeAttribute(ILcdS57Attribute aAttribute)
Deprecated.
Removes the specified attribute from this S-57 identifier.
|
void |
setFeature(int aIndex,
Object aFeature)
Deprecated.
Sets the feature
Object at the given index. |
String |
toString()
Deprecated.
|
public TLcdS57EditableIdentifier(int aObjectClassCode)
aObjectClassCode
- public TLcdS57EditableIdentifier(TLcdS57ObjectClassDescriptor aObjectClassDescriptor)
aObjectClassDescriptor
- public long getLongName()
ILcdS57Identifier
(FIDS << 48) | (FIDN << 16) | AGEN
, where:
getLongName
in interface ILcdS57Identifier
public TLcdS57ObjectClassDescriptor getObjectClassDescriptor()
public void addAttribute(ILcdS57Attribute aAttribute)
aAttribute
- the attribute to be added to this S-57 identifier.public void removeAttribute(ILcdS57Attribute aAttribute)
aAttribute
- the attribute to be removed.IllegalArgumentException
- if the specified attribute is not an attribute of this S-57
identifier.public int getS57ObjectClass()
ILcdS57Identifier
getS57ObjectClass
in interface ILcdS57Identifier
public int getS57AttributeCount()
ILcdS57Identifier
getS57AttributeCount
in interface ILcdS57Identifier
public ILcdS57Attribute getS57Attribute(int aIndex)
ILcdS57Identifier
getS57Attribute
in interface ILcdS57Identifier
public ILcdS57Attribute getS57AttributeForCode(int aCode)
ILcdS57Identifier
getS57AttributeForCode
in interface ILcdS57Identifier
public boolean isSimilar(ILcdS57Identifier aIdentifier)
ILcdS57Identifier
isSimilar
in interface ILcdS57Identifier
public boolean canSetFeature(int aIndex)
ILcdFeatured
canSetFeature
in interface ILcdFeatured
aIndex
- a valid feature index.public Object getFeature(int aIndex) throws IndexOutOfBoundsException
ILcdFeatured
Object
at the given index.getFeature
in interface ILcdFeatured
aIndex
- a valid feature index.Object
at the given index.IndexOutOfBoundsException
- when an index is chosen greater than the result of getFeatureCount.ILcdFeatured.setFeature(int, java.lang.Object)
public int getFeatureCount()
ILcdFeatured
getFeatureCount
in interface ILcdFeatured
public void setFeature(int aIndex, Object aFeature) throws IllegalArgumentException
ILcdFeatured
Object
at the given index.setFeature
in interface ILcdFeatured
aIndex
- a valid feature index.aFeature
- the new feature Object
.IllegalArgumentException
- if the feature can't be set.ILcdFeatured.getFeature(int)
,
ILcdFeatured.canSetFeature(int)