|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smallx.xml.infoset.memory.MemoryItem
com.smallx.xml.infoset.memory.MemoryParent
Field Summary | |
protected java.net.URI |
baseURI
|
protected java.util.List |
children
|
Fields inherited from class com.smallx.xml.infoset.memory.MemoryItem |
infoset, origin, ranking |
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 | |
protected |
MemoryParent(Infoset infoset,
double ranking,
java.net.URI base,
Parent origin)
|
Method Summary | |
void |
appendChild(Child n)
Appends a child to the parents children list. |
java.util.Iterator |
getAxis(byte axis)
|
java.net.URI |
getBaseURI()
Returns the base URI of the document. |
Child |
getChildAt(int index)
Returns the child at the specified index. |
java.util.Iterator |
getChildren()
Returns a iteration of the children of the parent. |
java.util.Iterator |
getChildrenByType(int type)
Returns the children by infoset item type |
int |
getNumberOfChildren()
Returns the number of children. |
Parent |
getParent()
Returns the origin of this node. |
boolean |
hasChildren()
Indicates if the parent has children. |
void |
insertChildBefore(int index,
Child n)
Inserts a child at the specified index. |
void |
removeChild(Child n)
Removes a child by node identity. |
void |
removeChildAt(int index)
Removes a child at the specified index. |
void |
setBaseURI(java.net.URI base)
|
void |
swapChild(Child oldChild,
Child newChild)
Swaps a child |
Methods inherited from class com.smallx.xml.infoset.memory.MemoryItem |
compareTo, getDocument, getGeneratedId, getInfoset, getOrigin, setIndex, setRank |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.smallx.xml.infoset.Parent |
getDocument |
Methods inherited from interface com.smallx.xml.infoset.Child |
compareTo, getFollowingSibling, getFollowingSiblings, getPrecedingSibling, getPrecedingSiblings |
Methods inherited from interface com.smallx.xml.infoset.Item |
getGeneratedId, getInfoset, getOrigin, getType |
Field Detail |
protected java.util.List children
protected java.net.URI baseURI
Constructor Detail |
protected MemoryParent(Infoset infoset, double ranking, java.net.URI base, Parent origin)
Method Detail |
public Parent getParent()
Child
getParent
in interface Child
public java.net.URI getBaseURI()
Parent
getBaseURI
in interface Parent
public void setBaseURI(java.net.URI base)
setBaseURI
in interface Parent
public boolean hasChildren()
Parent
hasChildren
in interface Parent
public java.util.Iterator getChildren()
Parent
getChildren
in interface Parent
public int getNumberOfChildren()
Parent
getNumberOfChildren
in interface Parent
public Child getChildAt(int index)
Parent
getChildAt
in interface Parent
index
- The zero-based index of the child to return.public void removeChild(Child n)
Parent
removeChild
in interface Parent
n
- The node to remove.public void removeChildAt(int index)
Parent
removeChildAt
in interface Parent
index
- The zero-based index of the child to remove.public void appendChild(Child n)
Parent
appendChild
in interface Parent
n
- The node to appent.public void insertChildBefore(int index, Child n)
Parent
insertChildBefore
in interface Parent
index
- A zero-based index of the children count.n
- The node to insert.public void swapChild(Child oldChild, Child newChild)
Parent
swapChild
in interface Parent
oldChild
- the child to swapnewChild
- the new child to swap inpublic java.util.Iterator getAxis(byte axis)
getAxis
in interface Item
getAxis
in class MemoryItem
public java.util.Iterator getChildrenByType(int type)
Parent
getChildrenByType
in interface Parent
type
- The type to return
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |