org.inria.ns.reflex.xml.dom
Class DOMProcessingInstruction

java.lang.Object
  extended by org.inria.ns.reflex.xml.dom.DOMProcessingInstruction
All Implemented Interfaces:
Renamable, Unwrappable, Node, ProcessingInstruction

public class DOMProcessingInstruction
extends Object
implements Node, ProcessingInstruction, Renamable, Unwrappable

A wrapper for a DOM ProcessingInstruction that can be renamed. Usefull to prevent losing the handler of a processing instruction after renaming it.

Author:
Philippe Poulard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Unwrappable
Unwrappable.Unwrapper
 
Field Summary
 
Fields inherited from interface org.w3c.dom.Node
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
 
Fields inherited from interface org.inria.ns.reflex.structures.Unwrappable
UNWRAPPER
 
Constructor Summary
DOMProcessingInstruction(ProcessingInstruction pi)
          Wrap a processing instruction : changes to this processing instruction are reflected on the wrapped processing instruction.
 
Method Summary
 Node appendChild(Node newChild)
           
 Node cloneNode(boolean deep)
           
 short compareDocumentPosition(Node other)
           
 boolean equals(Object obj)
           
 NamedNodeMap getAttributes()
           
 String getBaseURI()
           
 NodeList getChildNodes()
           
 String getData()
           
 Object getFeature(String feature, String version)
           
 Node getFirstChild()
           
 Node getLastChild()
           
 String getLocalName()
           
 String getNamespaceURI()
           
 Node getNextSibling()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 Document getOwnerDocument()
           
 Node getParentNode()
           
 String getPrefix()
           
 Node getPreviousSibling()
           
 String getTarget()
           
 String getTextContent()
           
 Object getUserData(String key)
           
 boolean hasAttributes()
           
 boolean hasChildNodes()
           
 int hashCode()
           
 Node insertBefore(Node newChild, Node refChild)
           
 boolean isDefaultNamespace(String namespaceURI)
           
 boolean isEqualNode(Node arg)
           
 boolean isSameNode(Node other)
           
 boolean isSupported(String feature, String version)
           
 String lookupNamespaceURI(String prefix)
           
 String lookupPrefix(String namespaceURI)
           
 void normalize()
           
 Node removeChild(Node oldChild)
           
 void rename(QName newName)
          Rename this node.
 Node replaceChild(Node newChild, Node oldChild)
           
 void setData(String data)
           
 void setNodeValue(String nodeValue)
           
 void setPrefix(String prefix)
           
 void setTextContent(String textContent)
           
 Object setUserData(String key, Object data, UserDataHandler handler)
           
 String toString()
           
 Object unwrap()
          Return the wapped processing instruction.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMProcessingInstruction

public DOMProcessingInstruction(ProcessingInstruction pi)
Wrap a processing instruction : changes to this processing instruction are reflected on the wrapped processing instruction.

Parameters:
pi - The processing instruction to wrap.
Method Detail

rename

public void rename(QName newName)
Rename this node.

Specified by:
rename in interface Renamable
Parameters:
newName - The new name of this node.
See Also:
Renamable.rename(org.inria.ns.reflex.xml.QName)

unwrap

public Object unwrap()
Return the wapped processing instruction.

Specified by:
unwrap in interface Unwrappable
Returns:
The wrapped processing instruction.
See Also:
ProcessingInstruction, Unwrappable.unwrap()

appendChild

public Node appendChild(Node newChild)
                 throws DOMException
Specified by:
appendChild in interface Node
Parameters:
newChild -
Returns:
Throws:
DOMException

cloneNode

public Node cloneNode(boolean deep)
Specified by:
cloneNode in interface Node
Parameters:
deep -
Returns:

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getAttributes

public NamedNodeMap getAttributes()
Specified by:
getAttributes in interface Node
Returns:

getChildNodes

public NodeList getChildNodes()
Specified by:
getChildNodes in interface Node
Returns:

getData

public String getData()
Specified by:
getData in interface ProcessingInstruction
Returns:

getFirstChild

public Node getFirstChild()
Specified by:
getFirstChild in interface Node
Returns:

getLastChild

public Node getLastChild()
Specified by:
getLastChild in interface Node
Returns:

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void setNodeValue( l -- -->

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void getLastChild in interface l -- --> -->

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void ava.sum/j2se/1.4.2/docsp; ava.sugetData()"/../../../aii(diA
l -- -->

getlm">getAttributesgetiD>
Returns:

 void getLastChild in interface rnal=trgetDied by:
unwrap in interface Un
/B>
 newName) CODbsp;

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void

appendChild

public setNodeValue(

l -- -->

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void setNodeValue( l -- -->

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void getLastChild in interface < l -- -->

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void Node setNodeValue( l -- -->Node

getlm">getAttributesgetiD>
Returns:

 void getLastChild in interface Node

getChildNodes

public NodeList getChildNodes()
Spec/Node.html?is-external=trD>
l -- -->

DOMProce> publicg.w3c.dom">get

lm">getAttributesgetiD>
Returns:

 void
Object.equals(java.lang.Object)

getAttributes

public NamedNodeMap getAttributes()
Specifiedrnal=trm/jtitle="clgInstruction.htmlF=" or intg/Object.html?is-"clL> DOMException

getLastChild
in ass or interfa/java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node cloneNode(boolean deep)

Specified by:
getLastChild in loneNode setNodeValue(Object unwrap()
Return the wapped processing instruction.

Speci,ied by:
 void
unwrap in interface UnObject.equals(java.lang.Object) NamedNodeMap getAtt./../../org/inria/ns/reflex/structures/Unwrappableeflex/strup; nwrappable.html#unwrap()">Unwrappable.unwrap()

appendChild

public 
String prefix)
            UnObject.equals(java.lang.Object) in interface NamedNodeMap getAtt./../../org/inria/ns/reflex/strue="clasnwrappableeflex/stru" CLASSun.com/j2se/1.4.2/docs/api/org/w3c/dom/Node.html?is-external=true" un.com/j2se/1gInstruction.html.4.2/docs/aING="0" SUMMARY=""> Object.equals(java.lang.Object)NamedNodeMap getAtt.dom/Node.html?is-external=true" setNodeValue(Object unwrap()
Return the wapped processing instruction.

CODE>
unwrap in interface Object.equals(java.lang.Object)
public NamedNodeMap getAtt./../../org/inria/ns/reflex/struCODE>nwrappable.html#unwrap()">Unwrappable.unwrap()

appendChild

public setNodeValue(Object unwrap()
Return the wapped processing instruction.

Speci,ied by:
 void
unwrap in interface Object.equals(java.lang.Object) in interface NamedNodeMap getAtt./../../org/inria/ns/reflex/structures/Unwrappableeflex/struCODE>nwrappable.html#unwrap()">Unwrappable.unwrap()

appendChild

public 




unwrap in interface Node
nbsp; Rename this nodE> in interface

getChildNodes

public NodeList getChildNodes()terface 

appendChild

public 
rnal=trm/j2se/1.4.2/docs">

rnal=trget>




rnal=
unwrap in interface Object.equals(java.lang.Object) in interface rnal=true" -->

DOMProce> publicg.w3c.dom">get

lm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/strucD> rnal=trrappable.html#une.unwrap()

appendChild

public 




unwrap in interface Object.equals(java.lang.Object) in interface

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void


appendChild

public getLastChild in interface DOMException



getLastChild in /org/inria/ns//java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Node.html?is-external=true" title="class or interface in org.w3c.dom">Node cloneNode(boolean deep)
Specified by:
getLastChild in loneNodePosiF="hsum/j2se/1.4.2/docsp;PosiF="hsu=true" title="class or interface in java.lang">Object unwrap()
Return the wapped processing instruction.

otherDied by:
unwrap in interface in interface

DOMProce> publicg.w3c.dom">get

lm">getAttributesgetiD>
Returns:

 void Unwrappable.unwrap()

appendChild

public PosiF="http://java.su/org/wE> in interface PosiF="http://java.su/org/E>getLastChild in interface Object.equals(java.lang.Object)

getlm">getAttributesgetiD>
Returns:

 void

<"clascs/Bas:
Method Detail UnObject.equals(java.lang.Object)

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/strue="clasnwrappableeflex/stru" CLASSun.com/j2se/1.4.2/docs/api/org/w3c/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.cs/F="clas/org/inria/ns/reflex/xml/dom/DOMProcens:

<"clascs/F="clas/org/inria/ns/reflex/xml/dom/DOMProcE>getLastChild
in interface
unwrap in interface

getlm">getAttributesgetiD>
Returns:

 void <.html#unwrap()">Unwrappable.unwrap()

appendChild

public 

<"clascs/TerfCo/DD/FONE> Method Detail UnObject.equals(java.lang.Object)

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/strukeyun.com/j2se/1.4.2/docs/api/org/w3c/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.cs/Userp; Rename this nodns:

<"clascs/Userp; Rename this noE>
UnObject.equals(java.lang.Object) in interface get
lm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/strunLttruction)">.com/j2se/1.4.2/docs/api/org/w3c/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.ssDefauletLttructibsp;Rename this nodE> in interface
Object unwrap()

Return the wapped processing instruction.

arg="T/reflex/structures/Unwrappable.html" title="interface in org.inria.ns.reflex.structures">UnObject.equals(java.lang.Object) in interface get
lm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/struarg">.com/j2se/1.4.2/docs/api/org/w3c/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.ssECODE> in interface
Object unwrap()

Return the wapped processing instruction.

otherD"T/reflex/structures/Unwrappable.html" title="interface in org.inria.ns.reflex.structures">UnObject.equals(java.lang.Object) in interface get
lm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/struothernwrappable.html#unwrap()">Un/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.ssSg/i> in interface
Reiam/j2se/1.4.2/docs/api/org/w3c/dom/Node.html?is-external=true#getLastChild()" title="class or interface in org.w3c.dom">getLastChild in interface
Reiaget> UnObject.equals(java.lang.Object)
Retsp;Rename this nodE> in interface getlm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/struvlex/xmlrappable.html#unwrap()">Un/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.lookup>
Retsp;Rename this nodE> in interface
Retsp;Rename this noE>getLastChild in interface UnObject.equals(java.lang.Object) in interface getlm">getAttributesgetiD>
Returns:

 void .com/j2se/1.4.2/docs/api/org/w3c/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.lookup./../../../../org/inria/nE> in interface
unwrap in interface Object.equals(java.lang.Object) in interface

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void


appendChild

public  in interface 


Method Detail









Method Detail



" CLAS1.4.s or interface

appendChild

public Object.equals(java.lang.Object) in interface 

DOMProce> publicg.w3c.dom">getlm">getAttributesgetiD>
Returns:

 void <./../../org/inria/ns/reflex/strukeyun.com/j2s"http://javetChirappable"http://jahandlerE>.com/j2se/1.4.2/docs/api/org/w3c/"../../../../../../org/inria/ns/reflex/structures/Renamable.html" title="interface i"class or interface in org.nbsUserp; Rename this nlex/xml/dom/ in interface CELLPADDING inria/ns/#skip-uavbar_bott/..E> in inSkip uaviga.2/d links"DDING iTABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""G iTRG iTD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"Doml=true" uavbar_bott/._firstunw./>CELLPADDING iTABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""G /TGTR ALIGNinteODE>" VALIGNintop"G /TGTD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"D FONT CLASS="NavBarFo/D1"Drnaernaview/../o/FONT>E> " CLASE> " CLAS" CLASE> " CLASE> " CLASE> " CLASE> " CLASFONT CLASS="NavBarFo/D1"DrnaHelp/../o/FONT>E> " CLAS in interfacEF="../inria.ns.reflex.xml../../>naPREV CLASS/../o/ " CLAS " CLAS in inCODE><2se/1.4.2/docs/api/org/w3c. tNT>naFRrueS/../o/ " CLAS " CLAS<2se/1.4.2/docs/api/org/w3c. tNT>naNO FRrueS/../o/ " CLAS " CLAS