com.smallx.xml.infoset.memory
Class MemoryProcessingInstruction

java.lang.Object
  extended bycom.smallx.xml.infoset.memory.MemoryItem
      extended bycom.smallx.xml.infoset.memory.MemoryTextDataItem
          extended bycom.smallx.xml.infoset.memory.MemoryProcessingInstruction
All Implemented Interfaces:
Child, Data, Item, Named, ProcessingInstruction, Text

public class MemoryProcessingInstruction
extends MemoryTextDataItem
implements ProcessingInstruction


Field Summary
 
Fields inherited from class com.smallx.xml.infoset.memory.MemoryItem
infoset, origin, ranking
 
Fields inherited from interface com.smallx.xml.infoset.ProcessingInstruction
TYPE
 
Fields inherited from interface com.smallx.xml.infoset.Item
ANCESTOR_AXIS, ANCESTOR_OR_SELF_AXIS, ATTRIBUTE, ATTRIBUTE_AXIS, CHARACTERS, CHILD_AXIS, COMMENT, DESCENDANT_AXIS, DESCENDANT_OR_SELF_AXIS, DOCUMENT, DOCUMENT_END, ELEMENT, ELEMENT_END, FOLLOWING_AXIS, FOLLOWING_SIBLING_AXIS, N_TYPES, NAMESPACE, NAMESPACE_AXIS, PARENT_AXIS, PRECEDING_AXIS, PRECEDING_SIBLING_AXIS, PROCESSING_INSTRUCTION, SELF_AXIS
 
Constructor Summary
MemoryProcessingInstruction(Infoset infoset, Parent origin, Name name, java.lang.String textValue)
          Creates a new instance of MemoryProcessingInstruction
 
Method Summary
 java.lang.Object clone()
           
 int getColumn()
           
 Child getFollowingSibling()
          Returns the following sibling of this node.
 java.util.Iterator getFollowingSiblings()
           
 int getLine()
           
 Name getName()
          Return the name of the object.
 Parent getParent()
          Returns the origin of this node.
 Child getPrecedingSibling()
          Returns the preceeding sibling to this node.
 java.util.Iterator getPrecedingSiblings()
           
 byte getType()
          Returns the type of type node.
 void setColumn(int column)
           
protected  void setIndex(int i)
           
 void setLine(int line)
           
 void setName(Name name)
          Sets the name of the object.
 void setName(java.lang.String localName)
          Sets the name of the object.
 void setName(java.net.URI namespaceName, java.lang.String localName)
          Sets the name of the object.
 
Methods inherited from class com.smallx.xml.infoset.memory.MemoryTextDataItem
getNormalizedText, getText, getTypedValue, setText, setTypedValue
 
Methods inherited from class com.smallx.xml.infoset.memory.MemoryItem
compareTo, getAxis, getDocument, getGeneratedId, getInfoset, getOrigin, setRank
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.smallx.xml.infoset.Child
compareTo, getDocument
 
Methods inherited from interface com.smallx.xml.infoset.Item
getAxis, getGeneratedId, getInfoset, getOrigin
 
Methods inherited from interface com.smallx.xml.infoset.Text
getNormalizedText, getText, setText
 

Constructor Detail

MemoryProcessingInstruction

public MemoryProcessingInstruction(Infoset infoset,
                                   Parent origin,
                                   Name name,
                                   java.lang.String textValue)
Creates a new instance of MemoryProcessingInstruction

Method Detail

getType

public byte getType()
Description copied from interface: Item
Returns the type of type node.

Specified by:
getType in interface Item

setIndex

protected void setIndex(int i)
Specified by:
setIndex in class MemoryItem

getColumn

public int getColumn()

getLine

public int getLine()

setColumn

public void setColumn(int column)

setLine

public void setLine(int line)

getName

public Name getName()
Description copied from interface: Named
Return the name of the object.

Specified by:
getName in interface Named

setName

public void setName(Name name)
Description copied from interface: Named
Sets the name of the object.

Specified by:
setName in interface Named
Parameters:
name - The name to set.

setName

public void setName(java.lang.String localName)
Description copied from interface: Named
Sets the name of the object.

Specified by:
setName in interface Named
Parameters:
localName - The local name to use and the namespace name is assumed to be URI.NO_NAMESPACE

setName

public void setName(java.net.URI namespaceName,
                    java.lang.String localName)
Description copied from interface: Named
Sets the name of the object.

Specified by:
setName in interface Named
Parameters:
namespaceName - The namespace name to use.
localName - The local name to use.

getParent

public Parent getParent()
Description copied from interface: Child
Returns the origin of this node. This is either the element on which the attribute is declared or the parent of the node.

Specified by:
getParent in interface Child

getFollowingSibling

public Child getFollowingSibling()
Description copied from interface: Child
Returns the following sibling of this node.

Specified by:
getFollowingSibling in interface Child
Returns:
An instance of Item or null.

getPrecedingSibling

public Child getPrecedingSibling()
Description copied from interface: Child
Returns the preceeding sibling to this node.

Specified by:
getPrecedingSibling in interface Child

getFollowingSiblings

public java.util.Iterator getFollowingSiblings()
Specified by:
getFollowingSiblings in interface Child

getPrecedingSiblings

public java.util.Iterator getPrecedingSiblings()
Specified by:
getPrecedingSiblings in interface Child

clone

public java.lang.Object clone()