eu.semaine.datatypes.stateinfo
Class AgentStateInfo
java.lang.Object
eu.semaine.datatypes.stateinfo.StateInfo
eu.semaine.datatypes.stateinfo.AgentStateInfo
public class AgentStateInfo
- extends StateInfo
- Author:
- marc
Method Summary |
protected boolean |
analyseElement(org.w3c.dom.Element el)
Make sense of elements in the markup that come directly below the
document element. |
protected void |
createDocumentFromInfo()
|
protected void |
setupInfoKeys()
Set up the possible values that we can know about. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
APIVersion
public static final java.lang.String APIVersion
- See Also:
- Constant Field Values
AgentStateInfo
public AgentStateInfo(org.w3c.dom.Document doc)
throws MessageFormatException
- Parameters:
doc
-
- Throws:
MessageFormatException
javax.jms.JMSException
AgentStateInfo
public AgentStateInfo(java.util.Map<java.lang.String,java.lang.String> infoItems)
throws javax.jms.JMSException
- Parameters:
infoItems
-
- Throws:
javax.jms.JMSException
createDocumentFromInfo
protected void createDocumentFromInfo()
- Specified by:
createDocumentFromInfo
in class StateInfo
- See Also:
StateInfo.createDocumentFromInfo()
setupInfoKeys
protected void setupInfoKeys()
- Set up the possible values that we can know about.
Things that are not previewed here will not be read from the document.
When this changes, the APIVersion must change with it.
- Specified by:
setupInfoKeys
in class StateInfo
analyseElement
protected boolean analyseElement(org.w3c.dom.Element el)
throws MessageFormatException
- Description copied from class:
StateInfo
- Make sense of elements in the markup that come directly below the
document element.
This base version can interpret markup for which
the 'set' attribute is a key in the info map.
Subclasses will need to override this method to get additional
analysis functionality. They can call
super.analyseElement(el)
to access this implementation.
- Overrides:
analyseElement
in class StateInfo
- Parameters:
el
- an element whose parent is the document element.
- Returns:
- true if the element could be analysed, false otherwise.
- Throws:
MessageFormatException