hmi.environment.avatars
Class VirtualHumanSpecHmi

java.lang.Object
  extended by hmi.xml.XMLStructureAdapter
      extended by hmi.environment.avatars.VirtualHumanSpec
          extended by hmi.environment.avatars.VirtualHumanSpecHmi
All Implemented Interfaces:
XMLStructure

public class VirtualHumanSpecHmi
extends VirtualHumanSpec

Extension specific for use with the HMI graphics environment. Adds a few sections such as the graphical specs, and adds a few parameters to already existing sections.

Author:
Dennis Reidsma

Field Summary
private static String XMLTAG
           
 
Fields inherited from class hmi.environment.avatars.VirtualHumanSpec
IMPL_VERSION
 
Fields inherited from class hmi.xml.XMLStructureAdapter
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING
 
Constructor Summary
VirtualHumanSpecHmi(Resources newRes)
           
 
Method Summary
 boolean canReadSpecType(String tag)
          Can read data in VirtualHumanSpecHMI and in VirtualHumanSpec content
(package private)  SpecLoader getLoader(String type)
          Get a Specloader, for the given element type, attached to this spec Extend this method for subclasses to add extra element types...
 String getXMLTag()
          The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object
static String xmlTag()
          The XML Stag for XML encoding -- use this static method when you want to see if a given String equals the xml tag for this class
 
Methods inherited from class hmi.environment.avatars.VirtualHumanSpec
addSpecParameter, decodeAttributes, decodeContent, getSpecParameter, getSpecParameter, getSpecResources
 
Methods inherited from class hmi.xml.XMLStructureAdapter
appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttribute, appendAttributes, appendAttributes, appendAttributeString, appendAttributeString, appendBooleans, appendCloseEmptyTag, appendCloseSTag, appendComment, appendContent, appendContent, appendDoubleElement, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendEmptyTag, appendETag, appendETag, appendFloatArrayElement, appendFloatElement, appendFloats, appendIntArrayElement, appendIntElement, appendInts, appendLongElement, appendNewLine, appendNewLine, appendNewLine, appendOpenSTag, appendOptionalDoubleElement, appendOptionalFloatElement, appendOptionalIntElement, appendOptionalLongElement, appendSpaces, appendSpaces, appendSTag, appendSTag, appendSTag, appendStringArrayElement, appendStrings, appendSystemNewLine, appendTab, appendTextElement, appendXML, appendXML, appendXML, appendXML, appendXML, appendXMLStructure, appendXMLStructureList, appendXMLTextElementList, countTokens, countTokens, decodeAttribute, decodeAttribute, decodeBoolean, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeBooleanArray, decodeDouble, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeDoubleArray, decodeFloat, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeFloatArray, decodeInt, decodeIntArray, decodeIntArray, decodeIntArray, decodeIntArray, decodeLong, decodeStringArray, decodeStringArray, decodeStringArray, decodeStringArray, decodeXMLStructureList, decodeXMLValueElement, getNamespace, getOptionalAttribute, getOptionalAttribute, getOptionalBooleanAttribute, getOptionalDoubleAttribute, getOptionalFloatAttribute, getOptionalIntAttribute, getOptionalLongAttribute, getRequiredAttribute, getRequiredBooleanAttribute, getRequiredDoubleAttribute, getRequiredFloatAttribute, getRequiredIntAttribute, getRequiredLongAttribute, getTagLine, hasContent, parseXMLElement, postProcess, preProcess, readXML, readXML, readXML, setConsoleAttributeEnabled, setDefaultRecoverMode, setRecoverMode, spaces, toString, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, toXMLString, writeXML, writeXML, writeXML, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XMLTAG

private static final String XMLTAG
See Also:
Constant Field Values
Constructor Detail

VirtualHumanSpecHmi

public VirtualHumanSpecHmi(Resources newRes)
Method Detail

getLoader

SpecLoader getLoader(String type)
Get a Specloader, for the given element type, attached to this spec Extend this method for subclasses to add extra element types... also, if you want, for a specialized type of spec, to have other loaders interpret a certain section, you can also override this method...

Overrides:
getLoader in class VirtualHumanSpec

canReadSpecType

public boolean canReadSpecType(String tag)
Can read data in VirtualHumanSpecHMI and in VirtualHumanSpec content

Overrides:
canReadSpecType in class VirtualHumanSpec

xmlTag

public static String xmlTag()
The XML Stag for XML encoding -- use this static method when you want to see if a given String equals the xml tag for this class


getXMLTag

public String getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object

Specified by:
getXMLTag in interface XMLStructure
Overrides:
getXMLTag in class VirtualHumanSpec