|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectelectric.xml.Node
electric.xml.Child
electric.xml.Instruction
Instruction represents an XML processing instruction.
| Field Summary | |
protected java.lang.String |
content
|
protected java.lang.String |
target
|
| Fields inherited from class electric.xml.Child |
parent |
| Fields inherited from class electric.xml.Node |
list, next, prev |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Fields inherited from interface electric.xml.IXMLConstants |
ATTLIST_START, ATTLIST_STOP, CDATA, CDATA_START, CDATA_STOP, CLOSE_TAG, COLON, COMMENT_START, COMMENT_STOP, DOCTYPE_START, DOCTYPE_STOP, ELEMENTDECL_START, ELEMENTDECL_STOP, ENCODING, ENTITYDECL_START, ENTITYDECL_STOP, ID, ID_CASE, INSTRUCTION_START, INSTRUCTION_STOP, NEGATIVE_INFINITY, NOT_A_NUMBER, NOTATIONDECL_START, NOTATIONDECL_STOP, NULL, OPEN_TAG, POSITIVE_INFINITY, PUBLIC, SPECIALS, STANDALONE, SUBSTITUTES, SYSTEM, UNDEFINED, VERSION, XML, XML_NAMESPACE, XMLDECL_START, XMLDECL_STOP, XMLNS, XMLNS_NAMESPACE |
| Fields inherited from interface electric.xml.IDOMConstants |
CDATA_SECTION_NAME, COMMENT_NAME, CORE, DOCUMENT_FRAGMENT_NAME, DOCUMENT_NAME, HIERARCHY_REQUEST_ERR, TEXT_NAME |
| Constructor Summary | |
protected |
Instruction()
|
|
Instruction(Instruction instruction)
Construct a copy of the specified Instruction. |
|
Instruction(Parent parent)
|
|
Instruction(java.lang.String target,
java.lang.String content)
Construct an Instruction with the specified target and content. |
| Method Summary | |
java.lang.Object |
clone()
Return a clone of this Instruction. |
java.lang.String |
getContent()
Return my content. |
java.lang.String |
getData()
Return the content. |
java.lang.String |
getNodeName()
Return the target. |
short |
getNodeType()
Return PROCESSING_INSTRUCTION_NODE. |
java.lang.String |
getNodeValue()
Return the content. |
java.lang.String |
getTarget()
Return my target. |
void |
read(NodeReader reader)
|
void |
setContent(java.lang.String content)
Set my content. |
void |
setData(java.lang.String data)
Set the content. |
void |
setNodeValue(java.lang.String nodeValue)
Set the content. |
void |
setTarget(java.lang.String target)
Set my target. |
void |
write(NodeWriter writer)
Write myself to the specified writer. |
| Methods inherited from class electric.xml.Child |
cloneNode, getByteArray, getByteArray, getByteArray, getBytes, getBytes, getBytes, getDocument, getNextSiblingChild, getOwnerDocument, getParent, getParentNode, getPreviousSiblingChild, getRoot, replaceWith, setNextSiblingChild, setParent, setPreviousSiblingChild, toString, toString, write, write, write |
| Methods inherited from class electric.xml.Node |
appendChild, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNextSiblingNode, getNode, getNode, getNodes, getPrefix, getPreviousSibling, getPreviousSiblingNode, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, remove, removeChild, replaceChild, setNextSiblingNode, setPrefix, setPreviousSiblingNode, size |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix |
| Field Detail |
protected java.lang.String target
protected java.lang.String content
| Constructor Detail |
public Instruction(java.lang.String target,
java.lang.String content)
target - The target.content - The content.public Instruction(Instruction instruction)
instruction - The Instruction to copy.protected Instruction()
public Instruction(Parent parent)
parent - | Method Detail |
public java.lang.Object clone()
clone in class Childpublic java.lang.String getTarget()
getTarget in interface org.w3c.dom.ProcessingInstructionpublic void setTarget(java.lang.String target)
target - The new target value.public java.lang.String getContent()
public void setContent(java.lang.String content)
content - The new content value.
public void read(NodeReader reader)
throws java.io.IOException,
NamespaceException
read in class Nodereader -
java.io.IOException
NamespaceException
public void write(NodeWriter writer)
throws java.io.IOException
write in class Nodewriter - The nodeWriter.
java.io.IOException - If an I/O exception occurs.public short getNodeType()
getNodeType in interface org.w3c.dom.NodegetNodeType in class Nodepublic java.lang.String getNodeName()
getNodeName in interface org.w3c.dom.NodegetNodeName in class Nodepublic java.lang.String getNodeValue()
getNodeValue in interface org.w3c.dom.NodegetNodeValue in class Nodepublic void setNodeValue(java.lang.String nodeValue)
setNodeValue in interface org.w3c.dom.NodesetNodeValue in class NodenodeValue - The new content value.public java.lang.String getData()
getData in interface org.w3c.dom.ProcessingInstructionpublic void setData(java.lang.String data)
setData in interface org.w3c.dom.ProcessingInstructiondata - The new content value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||