|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.bml.core.BMLElement
hmi.bml.core.Description
public class Description
This class represents descriptions. These are used to have more specific
levels of descriptions than the standard 0 in BML. It is represented with the
<description>-tag.
| Field Summary | |
|---|---|
Behaviour |
behaviour
|
private String |
content
|
boolean |
isParsed
|
private org.slf4j.Logger |
logger
|
int |
priority
|
private String |
type
|
private static String |
XMLTAG
|
| Fields inherited from class hmi.bml.core.BMLElement |
|---|
bmlId, id |
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
Description()
|
|
Description(XMLTokenizer tokenizer)
|
|
| Method Summary | |
|---|---|
StringBuilder |
appendAttributeString(StringBuilder buf)
Appends a String to buf that encodes the attributes for the XML encoding. |
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes all attributes. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
String |
getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object |
boolean |
hasContent()
returns whether the XML encoding should have an contents part, or should be an empty element tag. |
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.bml.core.BMLElement |
|---|
ensureDecodeProgress, registerElementsById |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int priority
private String type
private String content
public boolean isParsed
public Behaviour behaviour
private org.slf4j.Logger logger
private static final String XMLTAG
| Constructor Detail |
|---|
public Description()
public Description(XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public StringBuilder appendAttributeString(StringBuilder buf)
XMLStructureAdapter
appendAttributeString in class BMLElement
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttributes in class BMLElementpublic boolean hasContent()
XMLStructureAdapter
hasContent in class XMLStructureAdapter
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
XMLStructureAdapter
appendContent in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOExceptionpublic static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class BMLElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||