|
||||||||||
| 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.Behaviour
hmi.bml.core.SpeechBehaviour
public class SpeechBehaviour
This class represents speech behaviour. This is represented in BML by
the <speech>-tag.
| Nested Class Summary | |
|---|---|
(package private) class |
SpeechBehaviour.SpeechText
|
| Field Summary | |
|---|---|
protected String |
content
|
private ArrayList<Sync> |
syncs
|
private static String |
XMLTAG
|
| Fields inherited from class hmi.bml.core.Behaviour |
|---|
descBehaviour, timeOffset |
| 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 | |
|---|---|
SpeechBehaviour()
|
|
SpeechBehaviour(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 |
getContent()
|
float |
getFloatParameterValue(String name)
|
String |
getStringParameterValue(String name)
|
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. |
boolean |
specifiesParameter(String name)
Does the behavior prescribe a value for parameter with name name? |
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.Behaviour |
|---|
addDefaultSyncPoints, addSyncPoint, addSyncPoints, constructConstraints, getStartSyncPoint, getSyncPoints, removeSyncPoints, satisfiesConstraint |
| 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 |
|---|
protected String content
private ArrayList<Sync> syncs
private static final String XMLTAG
| Constructor Detail |
|---|
public SpeechBehaviour()
public SpeechBehaviour(XMLTokenizer tokenizer)
throws IOException
IOException| Method Detail |
|---|
public String getStringParameterValue(String name)
getStringParameterValue in class Behaviourpublic float getFloatParameterValue(String name)
getFloatParameterValue in class Behaviourpublic boolean specifiesParameter(String name)
Behaviour
specifiesParameter in class Behaviourpublic StringBuilder appendAttributeString(StringBuilder buf)
XMLStructureAdapter
appendAttributeString in class Behaviour
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttributes in class Behaviourpublic boolean hasContent()
XMLStructureAdapter
hasContent in class Behaviour
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
XMLStructureAdapter
appendContent in class Behaviour
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class BehaviourIOExceptionpublic static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class BMLElementpublic String getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||