public final class Scxml extends AbstractXmlNode
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTRIBUTE_BINDING
The data binding to use.
|
static java.lang.String |
ATTRIBUTE_DATAMODEL
The datamodel that this document requires.
|
static java.lang.String |
ATTRIBUTE_EXMODE
Determines whether the processor should silently ignore markup that it
does not support.
|
protected static java.util.ArrayList<java.lang.String> |
ATTRIBUTE_NAMES
Supported attribute names for this node.
|
static java.lang.String |
ATTRIBUTE_VERSION
The value MUST be
1.0. |
static java.lang.String |
ATTRIBUTE_XMLNS
The namespace URI for SCXML is
"http://www.w3.org/2005/07/scxm". |
static java.lang.String |
TAG_NAME
Name of the tag.
|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
Scxml()
Construct a new scxml object without a node.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canContainChild(java.lang.String tagName)
Can the specified sub-tag be contained within this node?
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns a collection of permitted attribute names for the node.
|
java.lang.String |
getBinding()
Retrieves the binding attribute.
|
java.lang.String |
getDatamodel()
Retrieves the datamodel attribute.
|
java.lang.String |
getExmode()
Retrieves the exmode attribute.
|
java.lang.String |
getInitial()
Retrieve the initial attribute.
|
java.lang.String |
getName()
Retrieve the name attribute.
|
java.lang.String |
getTagName()
Get the name of the tag for the derived node.
|
java.lang.String |
getVersion()
Retrieve the version attribute.
|
java.lang.String |
getXmlns()
Retrieve the xmlns attribute.
|
XmlNode |
newInstance(org.w3c.dom.Node n,
XmlNodeFactory<? extends XmlNode> factory)
Create a new instance for the given node.
|
void |
setBinding(java.lang.String binding)
Sets the binding attribute.
|
void |
setDatamodel(java.lang.String datamodel)
Sets the datamodel attribute.
|
void |
setExmode(java.lang.String exmode)
Sets the exmode attribute.
|
void |
setInitial(java.lang.String initial)
Set the initial attribute.
|
void |
setName(java.lang.String name)
Sets the name attribute.
|
void |
setVersion(java.lang.String version)
Set the version attribute.
|
void |
setXmlns(java.lang.String xmlns)
Set the xmlns attribute.
|
addChild, addChild, appendChild, appendChild, appendDeepClone, cloneNode, compareDocumentPosition, equals, getAttribute, getAttributes, getBaseURI, getChildNodes, getChildNodes, getChildren, getDefinedAttributeNames, getFeature, getFirstChild, getFirstLevelTextContent, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeFactory, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getOwnerXmlDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttribute, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddChild, getAttribute, getChildNodes, getChildren, getNode, setAttributeappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDatapublic static final java.lang.String TAG_NAME
public static final java.lang.String ATTRIBUTE_XMLNS
"http://www.w3.org/2005/07/scxm".public static final java.lang.String ATTRIBUTE_VERSION
1.0.public static final java.lang.String ATTRIBUTE_DATAMODEL
null denotes the
Null datamodel, ecmascript the ECMAScript datamodel, and
xpath the XPath datamodel.public static final java.lang.String ATTRIBUTE_BINDING
public static final java.lang.String ATTRIBUTE_EXMODE
protected static final java.util.ArrayList<java.lang.String> ATTRIBUTE_NAMES
public Scxml()
This is necessary for the node factory.
ScxmlNodeFactorypublic java.lang.String getTagName()
public XmlNode newInstance(org.w3c.dom.Node n, XmlNodeFactory<? extends XmlNode> factory)
Each XmlNode can serve as a prototype in a
XmlNodeFactory to produce a collection of
child nodes. Factories can then use the prototype pattern to
produce new nodes.
n - The node to encapsulate.factory - the factroy that calls this method.XmlNodeFactorypublic java.lang.String getInitial()
ATTRIBUTE_INITIALpublic void setInitial(java.lang.String initial)
initial - value of the initial attribute.ATTRIBUTE_INITIALpublic java.lang.String getName()
ATTRIBUTE_NAMEpublic void setName(java.lang.String name)
name - Value of the name attribute.ATTRIBUTE_NAMEpublic java.lang.String getXmlns()
ATTRIBUTE_XMLNSpublic void setXmlns(java.lang.String xmlns)
xmlns - Value of the xml:base attribute.ATTRIBUTE_XMLNSpublic java.lang.String getVersion()
ATTRIBUTE_VERSIONpublic void setVersion(java.lang.String version)
version - Value of the version attribute.ATTRIBUTE_VERSIONpublic java.lang.String getDatamodel()
ATTRIBUTE_DATAMODELpublic void setDatamodel(java.lang.String datamodel)
datamodel - Value of the datamodel attribute.ATTRIBUTE_DATAMODELpublic java.lang.String getBinding()
ATTRIBUTE_DATAMODELpublic void setBinding(java.lang.String binding)
binding - Value of the binding attribute.ATTRIBUTE_BINDINGpublic java.lang.String getExmode()
ATTRIBUTE_EXMODEpublic void setExmode(java.lang.String exmode)
exmode - Value of the exmode attribute.ATTRIBUTE_EXMODEprotected boolean canContainChild(java.lang.String tagName)
canContainChild in class AbstractXmlNodetagName - Name of child.public java.util.Collection<java.lang.String> getAttributeNames()
getAttributeNames in interface XmlNodegetAttributeNames in class AbstractXmlNode