public class SymbolCode extends AVListImpl
| Symbology Set | Coding Scheme | Standard Identity | Battle Dimension | Category | Status | Function ID | Symbol Modifier | Echelon | Country Code | Order of Battle | 
|---|---|---|---|---|---|---|---|---|---|---|
| Warfighting | YES | YES | YES | NO | YES | YES | YES | NO | YES | YES | 
| Tactical Graphics | YES | YES | NO | YES | YES | YES | NO | YES | YES | YES | 
| Signals Intelligence | YES | YES | YES | NO | YES | YES | NO | NO | YES | YES | 
| Stability Operations | YES | YES | NO | YES | YES | YES | YES | NO | YES | YES | 
| Emergency Management | YES | YES | NO | YES | YES | YES | YES | NO | YES | YES | 
| Modifier and Type | Field and Description | 
|---|---|
| protected static String | UNUSED_POSITION_CODEIndicates the character for an unused position in a MIL-STD-2525 symbol identification code | 
| Constructor and Description | 
|---|
| SymbolCode()Creates a new symbol code, but otherwise does nothing. | 
| SymbolCode(String symCode)Creates a new SymbolCode by parsing the fields of the specified MIL-STD-2525 15-character alphanumeric symbol
 identification code (SIDC). | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | appendFieldValue(StringBuilder sb,
                String value,
                int length)Appends the specified field value to the specified StringBuilder, padding or trimming the value to fit its length
 in the symbol code as necessary. | 
| protected String | composeEmergencyManagementSymCode()Composes a 15-character symbol identification code (SIDC) for the Emergency Management coding scheme. | 
| protected String | composeIntelligenceSymCode()Composes a 15-character symbol identification code (SIDC) for the Signals Intelligence coding scheme. | 
| protected String | composeMetocSymCode()Composes a 15-character symbol identification code (SIDC) for the Meteorological and Oceanographic coding scheme. | 
| protected String | composeStabilityOperationsSymCode()Composes a 15-character symbol identification code (SIDC) for the Stability Operations coding scheme. | 
| static String | composeSymbolModifierCode(SymbolCode symbolCode,
                         AVList modifiers,
                         String modifierKey) | 
| protected String | composeSymCode()Composes and returns a MIL-STD-2525 15-character symbol identification code (SIDC) from this SymbolCode's current
 field values. | 
| protected String | composeTacticalGraphicsSymCode()Composes a 15-character symbol identification code (SIDC) for the Tactical Graphics coding scheme. | 
| protected String | composeUnrecognizedSymCode()Returns  nullindicating that this SymbolCode's Coding Scheme is not recognized. | 
| protected String | composeWarfightingSymCode()Composes a 15-character symbol identification code (SIDC) for the Warfighting coding scheme. | 
| String | getBattleDimension()Indicates this symbol code's Battle Dimension field. | 
| String | getCategory()Indicates this symbol code's Category field. | 
| String | getCountryCode()Indicates this symbol code's Country Code field. | 
| String | getEchelon()Indicates this symbol code's Echelon field. | 
| String | getFunctionId()Indicates this symbol code's Function ID field. | 
| String | getGraphicType()Indicates this symbol code's Graphic Type field. | 
| String | getOrderOfBattle()Indicates this symbol code's Order of Battle field. | 
| String | getScheme()Indicates this symbol code's Coding Scheme field. | 
| String | getStandardIdentity()Indicates this symbol code's Standard Identity field. | 
| String | getStaticDynamic()Indicates this symbol code's Static/Dynamic field. | 
| String | getStatus()Indicates this symbol code's Status/Operational Condition field. | 
| String | getSymbolModifier()Indicates this symbol code's Symbol Modifier field. | 
| static boolean | isFieldEmpty(String value)Indicates whether the specified field value is empty. | 
| protected boolean | isUnitsAndEquipmentSymbolModifier(String value)Indicates whether the specified 2-character Symbol Modifier code represents a units and equipment symbol modifier
 code. | 
| protected String | parseEmergencyManagementSymCode(String symCode)Parses a symbol code encoded in the Emergency Management coding scheme. | 
| protected String | parseIntelligenceSymCode(String symCode)Parses symbol codes encoded for the Signals Intelligence coding scheme. | 
| protected String | parseMetocSymCode(String symCode)Parses a symbol code encoded in the Meteorological and Oceanographic coding scheme. | 
| protected String | parseStabilityOperationsSymCode(String symCode)Parses a symbol code encoded in the Stability Operations coding scheme. | 
| static AVList | parseSymbolModifierCode(String code,
                       AVList params)Computes and returns the modifier key-value pairs associated with the specified SymbolModifier code. | 
| protected String | parseSymCode(String symCode)Parses a symbol code encoded into its individual fields, populating this SymbolCode's fields with the value of
 each field. | 
| protected String | parseTacticalGraphicsSymCode(String symCode)Parses a symbol code encoded in the Tactical Graphics coding scheme. | 
| protected String | parseUnrecognizedSymCode(String symCode)Returns a error string indicating that the symbol code's scheme is not recognized. | 
| protected String | parseWarfightingSymCode(String symCode)Parses a symbol code encoded in the Warfighting coding scheme. | 
| void | setBattleDimension(String value)Specifies this symbol code's Battle Dimension field. | 
| void | setCategory(String value)Specifies this symbol code's Category field. | 
| void | setCountryCode(String value)Specifies this symbol code's Country Code field. | 
| void | setEchelon(String value)Specifies this symbol code's Echelon field. | 
| void | setFunctionId(String value)Specifies this symbol code's Function ID field. | 
| void | setGraphicType(String value)Specifies this symbol code's Graphic Type field. | 
| void | setOrderOfBattle(String value)Specifies this symbol code's Order of Battle field. | 
| void | setScheme(String value)Specifies this symbol code's Coding Scheme field. | 
| void | setStandardIdentity(String value)Specifies this symbol code's Standard Identity field. | 
| void | setStaticDynamic(String value)Specifies this symbol code's Static/Dynamic field. | 
| void | setStatus(String value)Specifies this symbol code's Status/Operational Condition field. | 
| void | setSymbolModifier(String value)Specifies this symbol code's Symbol Modifier field. | 
| String | toMaskedString()Indicates a string representation of the symbol code with positions that do not uniquely identify a particular
 symbol or graphic replaced with hyphens. | 
| String | toString()Returns the MIL-STD-2525 15-character symbol identification code (SIDC) corresponding to this SymbolCode's
 current field values. | 
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected static final String UNUSED_POSITION_CODE
public SymbolCode()
null.public SymbolCode(String symCode)
symCode - the symbol identification code to parse.IllegalArgumentException - if the symCode is null or has a length other than 15.WWUnrecognizedException - if any field in the symCode is invalid or cannot be recognized.public static void appendFieldValue(StringBuilder sb, String value, int length)
null or empty, this appends unused characters to fill
 the entire space used by the field.sb - the StringBuilder representing a MIL-STD-2525 symbol identification code (SIDC).value - the field value to append.length - the number of positions used by the field in the SIDC.protected String composeEmergencyManagementSymCode()
protected String composeIntelligenceSymCode()
protected String composeMetocSymCode()
protected String composeStabilityOperationsSymCode()
public static String composeSymbolModifierCode(SymbolCode symbolCode, AVList modifiers, String modifierKey)
protected String composeSymCode()
null if this SymbolCode's Coding Scheme is null or unrecognized.null if the Coding Scheme is unrecognized.protected String composeTacticalGraphicsSymCode()
protected String composeUnrecognizedSymCode()
null indicating that this SymbolCode's Coding Scheme is not recognized.null.protected String composeWarfightingSymCode()
public String getBattleDimension()
null.setBattleDimension(String)public String getCategory()
null.setCategory(String)public String getCountryCode()
null.setCountryCode(String)public String getEchelon()
null.setEchelon(String)public String getFunctionId()
null.setFunctionId(String)public String getGraphicType()
null.setStaticDynamic(String)public String getOrderOfBattle()
null.setOrderOfBattle(String)public String getScheme()
null.setScheme(String)public String getStandardIdentity()
null.setStandardIdentity(String)public String getStaticDynamic()
null.setStaticDynamic(String)public String getStatus()
null.setStatus(String)public String getSymbolModifier()
null.setSymbolModifier(String)public static boolean isFieldEmpty(String value)
true if the specified value is
 null, is the empty string, or is filled entirely with the unused character "-".value - the value to test. May be null.true if the value is empty, and false otherwise.protected boolean isUnitsAndEquipmentSymbolModifier(String value)
value - the modifier code to test.  Must be non-null and have length of 2 or greater. Any
              characters after the 2nd character are ignored.true if the specified code represents a units and equipment modifier code, and
         false otherwise.protected String parseEmergencyManagementSymCode(String symCode)
null.
 
 The Emergency Management coding scheme is defined in MIL-STD-2525C table G-I (page 1032).symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any
                characters after the 15th character are ignored.null if the symbol code is recognized, otherwise a non-null string listing the
         unrecognized symbol elements.protected String parseIntelligenceSymCode(String symCode)
null.
 
 The Signals Intelligence coding scheme is defined in MIL-STD-2525C table D-I (page 964).symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any
                characters after the 15th character are ignored.null if the symbol code is recognized, otherwise a non-null string listing the
         unrecognized symbol elements.protected String parseMetocSymCode(String symCode)
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any
                characters after the 15th character are ignored.protected String parseStabilityOperationsSymCode(String symCode)
null.
 
 The Stability Operations coding scheme is defined in MIL-STD-2525C table E-I (page 991).symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any
                characters after the 15th character are ignored.null if the symbol code is recognized, otherwise a non-null string listing the
         unrecognized symbol elements.public static AVList parseSymbolModifierCode(String code, AVList params)
| Modifier | Key | Value | 
|---|---|---|
| Echelon | SymbologyConstants.ECHELON | See SymbologyConstants.ECHELON | 
| Headquarters | SymbologyConstants.HEADQUARTERS | Boolean.TRUE
 or null | 
| Task Force | SymbologyConstants.TASK_FORCE | Boolean.TRUE or null | 
| Feint/Dummy | SymbologyConstants.FEINT_DUMMY | Boolean.TRUE or null | 
| Installation | SymbologyConstants.INSTALLATION | See SymbologyConstants.INSTALLATION | 
| Equipment Mobility | SymbologyConstants.MOBILITY | See SymbologyConstants.MOBILITY | 
| Auxiliary Equipment | SymbologyConstants.AUXILIARY_EQUIPMENT | See SymbologyConstants.AUXILIARY_EQUIPMENT | 
code - the symbol modifier code to parse.params - a parameter list in which to place the modifier key-value pairs, or null to allocate
               and return a new parameter list.protected String parseSymCode(String symCode)
symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any
                characters after the 15th character are ignored.null if the symbol code is recognized, otherwise a non-null string listing the
         unrecognized symbol code fields.protected String parseTacticalGraphicsSymCode(String symCode)
null.
 
 The Tactical Graphics coding scheme is defined in MIL-STD-2525C table B-I (page 305).symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any
                characters after the 15th character are ignored.null if the symbol code is recognized, otherwise a non-null string listing the
         unrecognized symbol elements.protected String parseUnrecognizedSymCode(String symCode)
symCode - the unknown symbol code.protected String parseWarfightingSymCode(String symCode)
null.
 
 The Warfighting coding scheme is defined in MIL-STD-2525C table A-I (page 51).symCode - the symbol code to parse. Must be non-null and have length of 15 or greater. Any
                characters after the 15th character are ignored.null if the symbol code is recognized, otherwise a non-null string listing the
         unrecognized symbol code fields.public void setBattleDimension(String value)
null or one of the following:
 
 value - the new value for the Battle Dimension field. May be null.public void setCategory(String value)
value - the new value for the Category field. May be null.public void setCountryCode(String value)
value - the new value for the Country Code field. May be null.public void setEchelon(String value)
null or one of the following:
 
 value - the new value for the Echelon field. May be null.public void setFunctionId(String value)
value - the new value for the Function ID field. May be null.public void setGraphicType(String value)
value - the new value for the Graphic Type field. May be null.public void setOrderOfBattle(String value)
value - the new value for the Order of Battle field. May be null.public void setScheme(String value)
null or one of the following:
 
 value - the new value for the Coding Scheme field. May be null.public void setStandardIdentity(String value)
null or one of the following:
 
 value - the new value for the Standard Identity field. May be null.public void setStaticDynamic(String value)
value - the new value for the Static/Dynamic field. May be null.public void setStatus(String value)
value - the new value for the Status/Operational Condition field. May be null.public void setSymbolModifier(String value)
value - the new value for the Symbol Modifier field. May be null.public String toMaskedString()
public String toString()
null if this SymbolCode's Coding Scheme is null or unrecognized.