Package com.luciad.format.s57
Class TLcdS57EditableIdentifier
java.lang.Object
com.luciad.format.s57.TLcdS57EditableIdentifier
- All Implemented Interfaces:
ILcdS57Identifier,ILcdFeatured,Serializable
Deprecated.
Implementation of an ILcdS57Identifier that can contain more than one attribute.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdS57EditableIdentifier(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(ILcdS57Attribute aAttribute) Deprecated.Adds the given attribute to this S-57 identifier.booleancanSetFeature(int aIndex) Deprecated.Checks whether the specified feature is editable.booleanDeprecated.getFeature(int aIndex) Deprecated.Returns the featureObjectat the given index.intDeprecated.Returns the number of features.longDeprecated.Gets the "Long Name" of this S-57 feature object.Deprecated.Returns the S-57 object class descriptor, describing this identifier.getS57Attribute(int aIndex) Deprecated.Gets the TLcdS57Attribute at a given index.intDeprecated.Gets the number of TLcdS57Attributes stored in this identifier.getS57AttributeForCode(int aCode) Deprecated.Gets the TLcdS57Attribute that has the given code.intDeprecated.Gets the object class.inthashCode()Deprecated.booleanisSimilar(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.voidremoveAttribute(ILcdS57Attribute aAttribute) Deprecated.Removes the specified attribute from this S-57 identifier.voidsetFeature(int aIndex, Object aFeature) Deprecated.Sets the featureObjectat the given index.toString()Deprecated.
-
Constructor Details
-
TLcdS57EditableIdentifier
public TLcdS57EditableIdentifier(int aObjectClassCode) Deprecated.Constructs a new S-57 editable identifier, initialized with the given object class code.- Parameters:
aObjectClassCode-
-
TLcdS57EditableIdentifier
Deprecated.Constructs a new S-57 editable identifier, initialized with the given object class descriptor.- Parameters:
aObjectClassDescriptor-
-
-
Method Details
-
getLongName
public long getLongName()Deprecated.Description copied from interface:ILcdS57IdentifierGets the "Long Name" of this S-57 feature object. The "Long Name" is also known as "feature object identifier", or LNAM. It is a representation of the FOID (Feature Object Identifier) fields. More specifically, it is a "binary concatenation"(FIDS << 48) | (FIDN << 16) | AGEN, where:- AGEN (Producing Agency)
- FIDN (Feature Identification Number)
- FIDS (Feature Identification Subdivision)
- Specified by:
getLongNamein interfaceILcdS57Identifier- Returns:
- The long name, or -1 if unknown
-
getObjectClassDescriptor
Deprecated.Returns the S-57 object class descriptor, describing this identifier.- Returns:
- the S-57 object class descriptor, describing this identifier.
-
addAttribute
Deprecated.Adds the given attribute to this S-57 identifier. If an attribute with the same code already exists, it is replaced by the new one.- Parameters:
aAttribute- the attribute to be added to this S-57 identifier.
-
removeAttribute
Deprecated.Removes the specified attribute from this S-57 identifier.- Parameters:
aAttribute- the attribute to be removed.- Throws:
IllegalArgumentException- if the specified attribute is not an attribute of this S-57 identifier.
-
getS57ObjectClass
public int getS57ObjectClass()Deprecated.Description copied from interface:ILcdS57IdentifierGets the object class.- Specified by:
getS57ObjectClassin interfaceILcdS57Identifier
-
getS57AttributeCount
public int getS57AttributeCount()Deprecated.Description copied from interface:ILcdS57IdentifierGets the number of TLcdS57Attributes stored in this identifier.- Specified by:
getS57AttributeCountin interfaceILcdS57Identifier
-
getS57Attribute
Deprecated.Description copied from interface:ILcdS57IdentifierGets the TLcdS57Attribute at a given index.- Specified by:
getS57Attributein interfaceILcdS57Identifier
-
getS57AttributeForCode
Deprecated.Description copied from interface:ILcdS57IdentifierGets the TLcdS57Attribute that has the given code.- Specified by:
getS57AttributeForCodein interfaceILcdS57Identifier
-
isSimilar
Deprecated.Description copied from interface:ILcdS57IdentifierReturns 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.- Specified by:
isSimilarin interfaceILcdS57Identifier
-
canSetFeature
public boolean canSetFeature(int aIndex) Deprecated.Description copied from interface:ILcdFeaturedChecks whether the specified feature is editable.- Specified by:
canSetFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- true if the feature can be set, false otherwise.
-
getFeature
Deprecated.Description copied from interface:ILcdFeaturedReturns the featureObjectat the given index.- Specified by:
getFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.- Returns:
- the feature
Objectat the given index. - Throws:
IndexOutOfBoundsException- when an index is chosen greater than the result of getFeatureCount.- See Also:
-
getFeatureCount
public int getFeatureCount()Deprecated.Description copied from interface:ILcdFeaturedReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeatured- Returns:
- the number of features.
-
setFeature
Deprecated.Description copied from interface:ILcdFeaturedSets the featureObjectat the given index.- Specified by:
setFeaturein interfaceILcdFeatured- Parameters:
aIndex- a valid feature index.aFeature- the new featureObject.- Throws:
IllegalArgumentException- if the feature can't be set.- See Also:
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
TLcdS57Identifierinstead.