public class TLcdEditableMS2525bObject extends TLcdLonLatPolyline implements ILcdEditableMS2525bShape, ILcdEditableMS2525bCoded,ILcdFeatured, ILcdOriented, ILcdOrientationSettable, ILcdDataObject
getMS2525Code()
; the used symbology standard can be retrieved through
getMS2525Standard()
.
ELcdMS2525Standard
instance.
Note that although this class (including its documentation) and many other classes / methods have an
explicit reference to MIL-STD 2525b, it can be equally used for all symbology standards defined
in ELcdMS2525Standard
.
If the symbology standard is not explicitly supplied at construction time,
the used standard is defined by the boolean System property
com.luciad.symbology.milstd2525b.ms2525c
. If false, MIL-STD 2525b is used;
otherwise, MIL-STD 2525c is used.
changed
afterwards.
Convenience methods are available to enumerate
,
retrieve
, and
change
parts of the symbol code.
This class also adds some convenience getters and setters for some common modifiers, such as the
status
.
TLcdMS2525bNode
and TLcdMS2525bEchelonNode
for more information on the symbol hierarchy
and echelons, and to ILcdMS2525bCoded
for the superset of possible SIDC modifier names.
UniqueDesignation
or AdditionalInformation
.
These modifiers can be enumerated
,
retrieved
and changed
as well.
Also, through the interface ILcdDataObject
, this class provides
generic access to all its properties. The available properties can be found in the object's data
type, accessible through the method getDataType()
. A specific property can be retrieved
through the method getValue(com.luciad.datamodel.TLcdDataProperty)
. See also
ILcdMS2525bCoded
for the superset of possible text modifier names.
TLcdLonLatPolyline
, which is used to define the
geometry of the symbol. The (minimal) number of points in the polyline depends on the
symbol code. This number can be queried through the method
getPointList()
, which returns an instance of the type
ILcdRestrictedLengthPointList
. This interface provides a method
getMinPointCount()
, which returns the minimal number of points needed to have a
valid symbol.
To quickly check whether this symbol is a point symbol or a line/polyline/polygon
(two points or more), one can use the method isLine()
.
Some symbols defined in the MIL-STD 2525b specification are represented by a line with a
width. This width can be retrieved or set through the methods getWidth()
and
setWidth(double)
. A common example of such symbols are the arrow
symbols, which use the width property to define the distance between the axis of the arrow
and the edge of the bounding box around the arrow. Note that this property is not taken into account for points,
lines and general areas.ELcdMS2525Standard
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
TLcdEditableMS2525bObject.TextModifier
Encapsulates the type and constraints of a modifier, regardless of its origin
(i.e. encoded in the symbol code (SIDC) or as a separate value).
|
static class |
TLcdEditableMS2525bObject.TextModifierType
Describes the constraints of a modifier value.
|
fBounds, fFocusPoint
sAdditionalInformation, sAffiliation, sAltitudeDepth, sAttitude, sCombatEffectiveness, sCommonIdentifier, sCountry, sDateTimeGroup, sEchelon, sEffectiveTime, sEngagementBar, sEvaluationRating, sFrameShapeModifier, sGuardedUnit, sHigherFormation, sHostile, sHqTaskForceDummy, sIFFSIF, sLength, sLocationLabel, sMobilityIndicator, sMovementDirection, sOrderOfBattle, sPlatformType, sQuantity, sReinforcedOrReduced, sSector1, sSector2, sSignatureEquipment, sSpecialDesignator, sSpecialHeadquarters, sSpeedLabel, sStaffComments, sStandardIdentity1, sStandardIdentity2, sStatus, sTargetDesignator, sTeardownTime, sTypeLabel, sUniqueDesignation, sWidth
INTERPOLATION_CIRCLE_BY_3POINTS, INTERPOLATION_CIRCLE_BY_CENTERPOINT, INTERPOLATION_CIRCULARARC_BY_3POINTS, INTERPOLATION_CIRCULARARC_BY_BULGE, INTERPOLATION_CIRCULARARC_BY_CENTERPOINT, INTERPOLATION_ELLIPTICAL, INTERPOLATION_GEODESIC, INTERPOLATION_LINEAR, INTERPOLATION_MIXED, INTERPOLATION_RHUMB
Constructor and Description |
---|
TLcdEditableMS2525bObject()
Creates a new MIL-STD 2525b object using the default symbol code.
|
TLcdEditableMS2525bObject(double aLon,
double aLat)
Creates a MIL-STD 2525b object with the default code.
|
TLcdEditableMS2525bObject(double aLon,
double aLat,
double aHeight)
Creates a MIL-STD 2525b object with the default code.
|
TLcdEditableMS2525bObject(ELcdMS2525Standard aStandard)
Creates a new MIL-STD 2525 object for the given symbology version.
|
TLcdEditableMS2525bObject(ILcdMS2525bCoded aMS2525bCoded)
Creates a MIL-STD 2525b object given an
ILcdMS2525bCoded object. |
TLcdEditableMS2525bObject(ILcdPoint aPoint)
Creates a MIL-STD 2525b object with the default code.
|
TLcdEditableMS2525bObject(String aMS2525bCode)
Creates a new MIL-STD 2525b object with the given code.
|
TLcdEditableMS2525bObject(String aMS2525bCode,
ELcdMS2525Standard aStandard)
Creates a new MIL-STD 2525 object with the given code and version.
|
TLcdEditableMS2525bObject(String aMS2525bCode,
ILcdPoint[] aPoints)
Creates a MIL-STD 2525b object with the given code.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canReversePointOrder()
The point order of arrows and lines can be reversed by calling
reversePointOrder() . |
boolean |
canSetFeature(int aIndex)
Features are set through the method
setMS2525Code(java.lang.String, com.luciad.symbology.milstd2525b.model.ELcdMS2525Standard) . |
Object |
clone()
Creates and returns a copy of this object.
|
boolean |
equals(Object aObject)
Returns whether the given object is equal to this object.
|
String |
getAffiliationValue()
Returns the current affiliation of this symbol,
or "Undefined" if the affiliation is not defined for this type of symbol.
|
String |
getCountry()
Returns the current country for this object, or "Undefined" if this object has no country information.
|
TLcdDataType |
getDataType()
Returns the type of this data object.
|
static String |
getDefaultMS2525bCode()
Deprecated.
use
getDefaultMS2525Code(ELcdMS2525Standard) instead. |
static String |
getDefaultMS2525Code(ELcdMS2525Standard aMS2525Standard)
Returns the default MIL-STD 2525 code for the given standard that is used by the constructor when no code is given.
|
TLcdMS2525bEchelonNode |
getEchelon()
Retrieves the configured echelon value
|
Object |
getFeature(int aIndex)
Returns the feature
Object at the given index. |
int |
getFeatureCount()
Returns the number of features: 5.
|
String |
getFormattedSIDC()
Returns a user-friendly representation of the symbol code of the object (SIDC).
|
TLcdMS2525bNode |
getHierarchyType()
Returns the type of this symbol in the symbol hierarchy (e.g. air track, road block, ...
|
String |
getMS2525Code()
Returns the symbol code of the object (SIDC).
|
ELcdMS2525Standard |
getMS2525Standard()
Returns the symbology standard used by this object.
|
String |
getOrderOfBattleValue()
Returns the current order of battle of this symbol,
or "Undefined" if no order of battle is assigned.
|
double |
getOrientation()
Returns the direction of movement for this object.
|
ILcdPointList |
getPointList()
Returns the point list this shape is based on.
|
Collection<String> |
getPossibleAffiliationValues()
Returns the possible order of affiliation values for this symbol (e.g. Unknown, Hostile, Neutral, ...)
If the "Unknown" value is allowed, it is the first value in the list.
|
Collection<String> |
getPossibleCountries()
Returns the possible countries this object can be assigned to.
|
Collection<TLcdEditableMS2525bObject.TextModifier> |
getPossibleModifiers()
Returns a collection of the possible modifiers of this symbol, i.e. all SIDC and text modifiers
|
Collection<String> |
getPossibleOrderOfBattleValues()
Returns the possible order of battle values for this symbol (e.g. Air OB, Ground OB, ...).
|
Collection<TLcdEditableMS2525bObject.TextModifier> |
getPossibleSIDCModifiers()
Returns a collection of the possible SIDC modifiers of this symbol, e.g.
the affiliation, status, and so on.
|
Collection<String> |
getPossibleStatusValues()
Returns the possible status values for this symbol (for example, present or anticipated).
|
Collection<TLcdEditableMS2525bObject.TextModifier> |
getPossibleTextModifiers()
Returns a collection of the possible text modifiers of this symbol, i.e. modifiers that are not encoded in
the symbol code.
|
String |
getStatusValue()
Returns the current status value of this symbol,
or "Undefined" if no status is assigned.
|
TLcdEditableMS2525bObject.TextModifier |
getTextModifier(String aModifierName)
Returns a description of the modifier with the given name.
|
int |
getTextModifierCount()
Returns the number of text modifiers for this object in the MIL-STD-2525B standard.
|
String |
getTextModifierKey(int aIndex)
Returns the text modifier key at the given index.
|
String |
getTextModifierKeyDisplayName(String aModifierName)
Returns the display name of the modifier with the given key.
|
String |
getTextModifierValue(int aIndex)
Returns the value of the text modifier at the given index.
|
String |
getTextModifierValue(String aModifierKey)
Returns the value of the modifier with the given key.
|
String |
getTextModifierValue(TLcdEditableMS2525bObject.TextModifier aModifier)
Returns the object's value for the given text modifier.
|
Object |
getValue(String aPropertyName)
Convenience method that returns the value of the property with the given name.
|
Object |
getValue(TLcdDataProperty aProperty)
Returns the value of the given property.
|
double |
getWidth()
Returns the buffer width.
|
int |
hashCode()
Returns the same hash code for the given object as returned by the default method
Object#hashCode().
|
boolean |
hasValue(String aPropertyName)
Indicates whether this data object has a value for the given property.
|
boolean |
hasValue(TLcdDataProperty aProperty)
Indicates whether this data object has a value for the given property.
|
boolean |
isLine()
Returns whether this object is represented as a line or not.
|
void |
putTextModifier(String aModifierKey,
String aModifierValue)
Adds the given value of the modifier with the given key.
|
void |
putTextModifier(TLcdEditableMS2525bObject.TextModifier aModifier,
String aValue)
Sets the given value for the given modifier.
|
void |
reversePointOrder()
Reverses the order of the points of the symbol if the geometry is suitable for this operation.
|
void |
set2DEditablePointList(ILcd2DEditablePointList a2DEditablePointList)
Sets the point list for this shape.
|
void |
setAffiliationValue(String aValue)
Sets the current affiliation of this symbol.
|
void |
setCountry(String aValue)
Sets the current country for this object,
or "Undefined" if no country is assigned.
|
static void |
setDefaultMS2525bCode(String aDefaultMS2525Code)
Deprecated.
use
setDefaultMS2525Code(String, ELcdMS2525Standard) instead. |
static void |
setDefaultMS2525Code(String aDefaultMS2525Code,
ELcdMS2525Standard aMS2525Standard)
Sets the default MIL-STD 2525 code to use when no code is given on construction.
|
void |
setEchelon(TLcdMS2525bEchelonNode aValue)
Sets the echelon value for this symbol
|
void |
setFeature(int aIndex,
Object aFeature)
Features cannot be set on this object through this method.
|
void |
setHierarchyType(TLcdMS2525bNode aType)
Sets the type of this symbol in the symbol hierarchy
It leaves other symbol modifier values untouched, unless they become invalid.
|
void |
setMS2525Code(String aMS2525Code)
Sets the MIL-STD 2525 code on this object.
|
void |
setOrderOfBattleValue(String aValue)
Sets the current order of battle value of this symbol,
or "Undefined" if no order of battle is assigned.
|
void |
setOrientation(double aOrientation)
Sets the direction of movement.
|
void |
setStatusValue(String aValue)
Sets the current status value of this symbol,
or "Undefined if no status is assigned.
|
void |
setValue(String aPropertyName,
Object aValue)
Convenience method that sets the value of the property with the given name.
|
void |
setValue(TLcdDataProperty aProperty,
Object aValue)
Sets the value of the given property for this data object.
|
void |
setWidth(double width)
Sets the buffer width.
|
String |
toString()
Prints out the name and affiliation.
|
calculateBounds, computePointSFCT, contains2D, contains2D, getEllipsoid, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getStartPoint, getStartTangent2D, getTangent2D, invalidateBounds, setEllipsoid
calculateFocusPoint
clearCache, get2DEditablePointList, getBounds, getCachedObject, getFocusPoint, getPoint, getPointCount, getPointSFCT, getX, getY, getZ, insert2DPoint, insertIntoCache, invalidateObject, move2D, move2DPoint, removeCachedObject, removePointAt, setFocusPoint, translate2D, translate2DPoint
contains3D, move2D
contains3D, fromDomainObject
finalize, getClass, notify, notifyAll, wait, wait, wait
move2D, move2D, translate2D
contains3D, contains3D, getFocusPoint
getBounds
append2DPoint, insert2DPoint, move2DPoint, removePointAt, translate2D, translate2DPoint
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
clearCache, getCachedObject, insertIntoCache, removeCachedObject
public TLcdEditableMS2525bObject()
getDefaultMS2525bCode()
public TLcdEditableMS2525bObject(ELcdMS2525Standard aStandard)
aStandard
- a MIL-STD 2525 versiongetDefaultMS2525bCode()
public TLcdEditableMS2525bObject(String aMS2525bCode)
aMS2525bCode
- a 15 character code which describes the military functionality of the
shape. Characters on positions which are not explicitly needed should be
the '\0' character. The character '-' will be accepted but it will be
replaced by the '\0' character. Subsequent calls to getMS2525Code()
will not contain '-' characters.IllegalArgumentException
- when the code passed is null or is not part of the default MIL-STD 2525 standardpublic TLcdEditableMS2525bObject(String aMS2525bCode, ELcdMS2525Standard aStandard)
aStandard
- a MIL-STD 2525 versionaMS2525bCode
- a 15 character code which describes the military functionality of the
shape. Characters on positions which are not explicitly needed should be
the '\0' character. The character '-' will be accepted but it will be
replaced by the '\0' character. Subsequent calls to getMS2525Code()
will not contain '-' characters.IllegalArgumentException
- when the code passed is null or is not part of the given MIL-STD 2525 standardpublic TLcdEditableMS2525bObject(double aLon, double aLat)
aLon
- the longitude of the first point of the object.aLat
- the latitude of the first point of the object.getDefaultMS2525bCode()
public TLcdEditableMS2525bObject(ILcdPoint aPoint)
aPoint
- the location of the first point representing the object with the default code.getDefaultMS2525bCode()
public TLcdEditableMS2525bObject(double aLon, double aLat, double aHeight)
aLon
- the longitude of the first point of the object.aLat
- the latitude of the first point of the object.aHeight
- the height of the first point of the object.getDefaultMS2525bCode()
public TLcdEditableMS2525bObject(ILcdMS2525bCoded aMS2525bCoded)
ILcdMS2525bCoded
object. Both the code and
the text modifiers are copied from aMS2525bCoded
.aMS2525bCoded
- a MIL-STD 2525b object.public TLcdEditableMS2525bObject(String aMS2525bCode, ILcdPoint[] aPoints)
aPoints
- the points whose coordinates are used to locate the point list. Only as many
points as needed will be used.aMS2525bCode
- a 15 character code which describes the military functionality of the
shape. Characters on positions which are not explicitly needed should be
the '\0' character. The character '-' will be accepted but it will be
replaced by the '\0' character. Subsequent calls to getMS2525Code()
will not contain '-' characters. If the code is null, it
will be replaced by the default code.public static String getDefaultMS2525bCode()
getDefaultMS2525Code(ELcdMS2525Standard)
instead.public static void setDefaultMS2525bCode(String aDefaultMS2525Code)
setDefaultMS2525Code(String, ELcdMS2525Standard)
instead.
Note that this code is not specifically tied to one of the specific MIL-STD 2525 standards
defined in ELcdMS2525Standard
. The supplied code will be accepted if it is valid
according to at least one of these standards. It is thus up to the user to make
sure that, if he/she relies on the default code, instances of this class are created
according to a compatible symbology standard.
By default, the code "SUPP-----------" is used, which is defined in all supported MIL-STD 2525 symbology standards.
aDefaultMS2525Code
- the default MIL-STD 2525 code to use when no code is given on
construction.IllegalArgumentException
- when the code passed is null or isn't a valid MIL-STD 2525
code.public boolean canReversePointOrder()
reversePointOrder()
. For the other symbols
(single point, T shaped, polygon etc.), the point order is always the same. This method ensures if a call to
reversePointOrder()
is going to have an effect on the symbol or not.reversePointOrder()
can reverse the order of the points of this symbol, false otherwise.reversePointOrder()
public void reversePointOrder()
For example arrow shaped symbols point to the reverse direction after invoking this method. A symbol should
always be checked with canReversePointOrder()
before invoking this method. If canReversePointOrder()
returns false
, this method throws an IllegalStateException
Note: Each subsequent call to this method reverses the order of the points again.
IllegalStateException
- if canReversePointOrder()
returns false for this objectpublic static void setDefaultMS2525Code(String aDefaultMS2525Code, ELcdMS2525Standard aMS2525Standard)
Note that this code is tied to one of the specific APP-6 standards
defined in ELcdMS2525Standard
.
aDefaultMS2525Code
- the default code to useaMS2525Standard
- the standard for which the default code is usedpublic static String getDefaultMS2525Code(ELcdMS2525Standard aMS2525Standard)
aMS2525Standard
- the standardpublic int getFeatureCount()
getFeatureCount
in interface ILcdFeatured
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 void setFeature(int aIndex, Object aFeature) throws IllegalArgumentException
setMS2525Code(java.lang.String, com.luciad.symbology.milstd2525b.model.ELcdMS2525Standard)
. This implementation is empty.setFeature
in interface ILcdFeatured
aIndex
- not of importance.aFeature
- not of importance.IllegalArgumentException
- This exception is never thrown, the implementation is empty.ILcdFeatured.getFeature(int)
,
ILcdFeatured.canSetFeature(int)
public boolean canSetFeature(int aIndex)
setMS2525Code(java.lang.String, com.luciad.symbology.milstd2525b.model.ELcdMS2525Standard)
. This method will always return
false.canSetFeature
in interface ILcdFeatured
aIndex
- not of importance.public ILcdPointList getPointList()
ILcdEditableRestrictedLengthPointList
and ILcd2DEditablePointList
.getPointList
in interface ILcdMS2525bShape
public void set2DEditablePointList(ILcd2DEditablePointList a2DEditablePointList)
set2DEditablePointList
in class ALcd2DEditablePolypoint
a2DEditablePointList
- A point list that implements ILcd2DEditablePointList
public double getWidth()
ILcdMS2525bShape
getWidth
in interface ILcdMS2525bShape
public void setWidth(double width)
ILcdEditableMS2525bShape
setWidth
in interface ILcdEditableMS2525bShape
width
- the new width in meters.public boolean isLine()
ILcdMS2525bShape
false
, the symbol is represented by one point.
When returning true
, the symbol is represented by two or more points,
e.g. a polyline, polygon (area symbol) or buffer (arrow symbol).isLine
in interface ILcdMS2525bShape
public String getMS2525Code()
ILcdMS2525bCoded
The symbol code has to be interpreted according to the symbology standard used by this object,
which can be retrieved through ILcdMS2525bCoded.getMS2525Standard()
.
getMS2525Code
in interface ILcdMS2525bCoded
ILcdMS2525bCoded.getMS2525Standard()
public ELcdMS2525Standard getMS2525Standard()
ILcdMS2525bCoded
getMS2525Standard
in interface ILcdMS2525bCoded
ELcdMS2525Standard
public int getTextModifierCount()
ILcdMS2525bCoded
getTextModifierCount
in interface ILcdMS2525bCoded
public String getTextModifierKey(int aIndex)
ILcdMS2525bCoded
getTextModifierKey
in interface ILcdMS2525bCoded
aIndex
- the index of key of the text modifier to retrieve.ILcdMS2525bCoded.getTextModifierCount()
public TLcdEditableMS2525bObject.TextModifier getTextModifier(String aModifierName)
aModifierName
- the modifier's name (see ILcdMS2525bCoded
)public String getTextModifierKeyDisplayName(String aModifierName)
getTextModifierKeyDisplayName
in interface ILcdMS2525bCoded
aModifierName
- the modifier's name (see ILcdMS2525bCoded
)public String getTextModifierValue(String aModifierKey)
getTextModifierValue
in interface ILcdMS2525bCoded
aModifierKey
- the key of the modifier to retrieve the value of.public String getTextModifierValue(TLcdEditableMS2525bObject.TextModifier aModifier)
aModifier
- the modifier to return the value forpublic String getTextModifierValue(int aIndex)
ILcdMS2525bCoded
getTextModifierValue
in interface ILcdMS2525bCoded
aIndex
- the index of the value of the text modifier to retrieve.ILcdMS2525bCoded.getTextModifierCount()
public void setMS2525Code(String aMS2525Code)
setMS2525Code
in interface ILcdEditableMS2525bCoded
aMS2525Code
- a 15 character code denoting the function of this shape.
Undefined positions should carry the character '-'. *IllegalArgumentException
- when the code passed is null or isn't a valid MIL-STD 2525
code.public void putTextModifier(String aModifierKey, String aModifierValue)
putTextModifier
in interface ILcdEditableMS2525bCoded
aModifierKey
- the key of the modifier to add.aModifierValue
- the value of the modifier to add.IllegalArgumentException
- if the symbol does not support the given modifierpublic void putTextModifier(TLcdEditableMS2525bObject.TextModifier aModifier, String aValue)
aModifier
- the modifier to set the value foraValue
- the value of the modifier to addIllegalArgumentException
- if the symbol does not support the given modifierpublic double getOrientation()
getTextModifierValue(java.lang.String)
method.getOrientation
in interface ILcdOriented
ILcdMS2525bCoded.sMovementDirection
. If this
value is not a number or not defined Double.NaN is returned.setOrientation(double)
public void setOrientation(double aOrientation)
putTextModifier(java.lang.String, java.lang.String)
method, using the ILcdMS2525bCoded.sMovementDirection
key. The value of that modifier will be adapted to reflected the orientation entered in this
method.setOrientation
in interface ILcdOrientationSettable
aOrientation
- the new direction of movement.getOrientation()
public Object clone()
clone
in interface ILcdEditableMS2525bCoded
clone
in interface ILcdCloneable
clone
in class TLcdLonLatPolyline
Object.clone()
public String toString()
Do not rely on the implementation of this method: it may change without notice.
toString
in class ALcd2DEditablePolypoint
public boolean equals(Object aObject)
this == aObject
has the value true
).equals
in class TLcdLonLatPolyline
aObject
- the reference object with which to compare.true
if this object is the same as the aObject argument;
false
otherwise.Object.equals(Object)
public int hashCode()
hashCode
in class TLcdLonLatPolyline
Object.hashCode()
public Object getValue(TLcdDataProperty aProperty)
ILcdDataObject
Returns the value of the given property.
If the property is a collection, the returned value will never be null. If the property has not been set, an empty collection of the appropriate type will be returned (Set, List or Map).
The property must not be null, and must be declared in the data object's type
or in one of its super types.
Otherwise an IllegalArgumentException
is thrown.
getValue
in interface ILcdDataObject
aProperty
- the property for which the value is to be returnedpublic TLcdDataType getDataType()
ILcdDataObject
null
.getDataType
in interface ILcdDataObject
public void setValue(TLcdDataProperty aProperty, Object aValue)
ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In
other words, getDataType().getProperties().contains( aProperty ) should always be true.
Otherwise, the implementation should throw an IllegalArgumentException
.setValue
in interface ILcdDataObject
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public Object getValue(String aPropertyName)
ILcdDataObject
Convenience method that returns the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.getValue(TLcdDataProperty)
for more information.getValue
in interface ILcdDataObject
aPropertyName
- the name of the property of which the value is to be returnedTLcdDataType.getProperty(String)
public void setValue(String aPropertyName, Object aValue)
ILcdDataObject
Convenience method that sets the value of the property with the given name.
If more than one property exists with the given name, the most specific property should be used (this is the property defined by the most specialized type in this object's data type hierarchy). SeeILcdDataObject.setValue(TLcdDataProperty, Object)
for more information.setValue
in interface ILcdDataObject
aPropertyName
- the name of the property of which the value is to be setaValue
- the value to setpublic boolean hasValue(TLcdDataProperty aProperty)
ILcdDataObject
aProperty
is from the right data type
, and this instance has a value for it: returns true
aProperty
is from the right data type
, and this instance has no value for it: returns false
aProperty
is not from the right data type
: not allowed, you will get IllegalArgumentExceptionaProperty
is null
: not allowed, you will get NullPointerExceptionhasValue
in interface ILcdDataObject
aProperty
- the property for which to return whether a value is present or not.true
if this data object has a value for the given property, false
otherwise.public boolean hasValue(String aPropertyName)
ILcdDataObject
ILcdDataObject.hasValue(TLcdDataProperty)
for more information.hasValue
in interface ILcdDataObject
aPropertyName
- the name of the property for which to return whether a value is present
or not.true
if this data object has a value for the property with the given name,
false
otherwise.public String getFormattedSIDC()
()
public TLcdMS2525bEchelonNode getEchelon()
TLcdMS2525bEchelonNode.get(com.luciad.symbology.milstd2525b.model.ILcdMS2525bCoded)
public void setEchelon(TLcdMS2525bEchelonNode aValue)
aValue
- the new valueTLcdMS2525bEchelonNode.applyOn(com.luciad.symbology.milstd2525b.model.ILcdEditableMS2525bCoded)
public TLcdMS2525bNode getHierarchyType()
TLcdMS2525bNode.get(java.lang.String, com.luciad.symbology.milstd2525b.model.ELcdMS2525Standard)
public void setHierarchyType(TLcdMS2525bNode aType)
aType
- the new hierarchy type. The type must not be a folder.TLcdMS2525bNode.isFolderOnly()
,
TLcdMS2525bNode.applyOn(com.luciad.symbology.milstd2525b.model.ILcdEditableMS2525bCoded)
public String getCountry()
getPossibleCountries()
setCountry(String)
public Collection<String> getPossibleCountries()
setCountry(String)
public void setCountry(String aValue)
aValue
- one of getPossibleCountries()
getPossibleCountries()
public Collection<String> getPossibleStatusValues()
public String getStatusValue()
getPossibleStatusValues()
public void setStatusValue(String aValue)
aValue
- one of getPossibleStatusValues()
public String getOrderOfBattleValue()
getPossibleOrderOfBattleValues()
public Collection<String> getPossibleOrderOfBattleValues()
public void setOrderOfBattleValue(String aValue)
aValue
- one of getPossibleOrderOfBattleValues()
public Collection<String> getPossibleAffiliationValues()
public String getAffiliationValue()
getPossibleAffiliationValues()
public void setAffiliationValue(String aValue)
aValue
- one of getPossibleAffiliationValues()
public Collection<TLcdEditableMS2525bObject.TextModifier> getPossibleModifiers()
public Collection<TLcdEditableMS2525bObject.TextModifier> getPossibleSIDCModifiers()
public Collection<TLcdEditableMS2525bObject.TextModifier> getPossibleTextModifiers()