public class FwkXmlDtd extends java.lang.Object implements FwkXmlDtdInterface
APPLICATION_ELEM, COMMAND_ELEM, DECODER_PREFIX, DESCRIPTION_ELEM, DICTIONARY_ELEM, ENCODER_PREFIX, ENTRY_ELEM, FRAME_ELEM, INSTANCEOF_ATTR, INTERPRETER_ATTR, MAP_ELEM, NAME_ATTR, OBJECT_ELEM, PANEL_ELEM, PROPERTY_ELEM, VALUE_ATTR
Constructor and Description |
---|
FwkXmlDtd()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String name,
java.lang.String attr)
Add attributes to element of the DTD.
|
void |
addAttributes(java.lang.String name,
FwkArrayInterface attrs)
Add attributes to element of the DTD.
|
void |
addElement(java.lang.String parent,
java.lang.String child)
Add an element hierarchy.
|
void |
addElementsOfNode(org.w3c.dom.Node node,
boolean recursive)
Add Element hierarchy.
|
boolean |
areAttributesDefinedFor(java.lang.String name)
Determine whether attributes are defined for given element.
|
void |
dumpElement(java.lang.StringBuffer buf,
java.lang.String leading,
java.lang.String elemName)
Get the string presentation of the dtd.
|
java.lang.String |
toString(java.lang.String leading,
java.lang.String rootName)
Get the string presentation of the dtd.
|
public void addElementsOfNode(org.w3c.dom.Node node, boolean recursive)
addElementsOfNode
in interface FwkXmlDtdInterface
node
- The element node that should build the hierarchy in the DTD.child
- The name of the child.public void addElement(java.lang.String parent, java.lang.String child)
addElement
in interface FwkXmlDtdInterface
parent
- The name of the parent.child
- The name of the child.public void addAttributes(java.lang.String name, FwkArrayInterface attrs)
addAttributes
in interface FwkXmlDtdInterface
name
- the element name.attrs
- the attribute list.public void addAttribute(java.lang.String name, java.lang.String attr)
addAttribute
in interface FwkXmlDtdInterface
name
- the element name.attr
- the attribute element name.public boolean areAttributesDefinedFor(java.lang.String name)
areAttributesDefinedFor
in interface FwkXmlDtdInterface
name
- the name of the element.public void dumpElement(java.lang.StringBuffer buf, java.lang.String leading, java.lang.String elemName)
buf
- a string buffer.elementName
- the name of the element.public java.lang.String toString(java.lang.String leading, java.lang.String rootName)
toString
in interface FwkXmlDtdInterface
rootName
- the name of the document root.