|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.semaine.datatypes.stateinfo.StateInfo
public abstract class StateInfo
A class representing one of the information states. It can be created either from an XML document or from a Map of information items, and can be read either as an XML document or as a Map of information items.
Field Summary | |
---|---|
protected java.lang.String |
apiVersion
|
protected org.w3c.dom.Document |
doc
|
protected java.util.Map<java.lang.String,java.lang.String> |
info
|
protected JMSLogger |
log
|
protected java.lang.String |
stateName
|
Constructor Summary | |
---|---|
protected |
StateInfo(org.w3c.dom.Document doc,
java.lang.String whatState,
java.lang.String apiVersion,
java.lang.String rootName,
java.lang.String rootNamespace)
|
|
StateInfo(java.util.Map<java.lang.String,java.lang.String> infoItems,
java.lang.String whatState,
java.lang.String apiVersion)
|
Method Summary | |
---|---|
protected void |
analyseDocument(java.lang.String rootName,
java.lang.String rootNamespace)
Read information from the message document and fill our info as much as possible. |
protected boolean |
analyseElement(org.w3c.dom.Element el)
Make sense of elements in the markup that come directly below the document element. |
protected abstract void |
createDocumentFromInfo()
|
java.lang.String |
getAPIVersion()
|
org.w3c.dom.Document |
getDocument()
|
java.util.Map<java.lang.String,java.lang.String> |
getInfo()
Provide a read-only access to the information in this message. |
protected abstract void |
setupInfoKeys()
Set up the possible values that we can know about. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,java.lang.String> info
protected org.w3c.dom.Document doc
protected JMSLogger log
protected java.lang.String stateName
protected java.lang.String apiVersion
Constructor Detail |
---|
protected StateInfo(org.w3c.dom.Document doc, java.lang.String whatState, java.lang.String apiVersion, java.lang.String rootName, java.lang.String rootNamespace) throws MessageFormatException
MessageFormatException
public StateInfo(java.util.Map<java.lang.String,java.lang.String> infoItems, java.lang.String whatState, java.lang.String apiVersion)
Method Detail |
---|
protected abstract void setupInfoKeys()
protected abstract void createDocumentFromInfo()
protected boolean analyseElement(org.w3c.dom.Element el) throws MessageFormatException
super.analyseElement(el)
to access this implementation.
el
- an element whose parent is the document element.
MessageFormatException
protected void analyseDocument(java.lang.String rootName, java.lang.String rootNamespace) throws MessageFormatException
MessageFormatException
- if the structure of the document is
inconsistent, i.e. structure expectations are violated.public java.util.Map<java.lang.String,java.lang.String> getInfo()
public org.w3c.dom.Document getDocument()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAPIVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |