|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.NodeFactory
public abstract class NodeFactory
| Method Summary | ||
|---|---|---|
abstract Attribute |
createAttribute(String name,
String value)
|
|
abstract Node |
createBinaryNode(byte[] data)
|
|
abstract Node |
createCharDataNode(String data)
|
|
abstract Node |
createElementNode(String tagName)
|
|
abstract Node |
createElementNode(String tagName,
List<? extends Node> children)
|
|
abstract Node |
createElementNode(String tagName,
List<? extends Node> children,
List<Attribute> attrs)
|
|
abstract Node |
createElementNode(String tagName,
Node... children)
|
|
abstract Node |
createElementNode(String tagName,
Node[] children,
Attribute[] attrs)
|
|
abstract
|
createProxy(XMLStore<R> xmlstore,
R ref)
Use this to convert a reference to a node without loading data. |
|
abstract Node |
insertChild(Node n,
int index,
Node child)
The method is used for adding a child to an element node. |
|
static NodeFactory |
instance()
|
|
abstract Node |
removeChild(Node n,
int index)
The method is used for removing a child from an element node. |
|
abstract Node |
replaceChild(Node node,
int index,
Node child)
The method is used for replacing a child of an element node. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NodeFactory instance()
public abstract Attribute createAttribute(String name,
String value)
public abstract Node createElementNode(String tagName)
public abstract Node createElementNode(String tagName,
List<? extends Node> children)
public abstract Node createElementNode(String tagName,
List<? extends Node> children,
List<Attribute> attrs)
public abstract Node createElementNode(String tagName,
Node... children)
public abstract Node createElementNode(String tagName,
Node[] children,
Attribute[] attrs)
public abstract Node createCharDataNode(String data)
public abstract Node createBinaryNode(byte[] data)
public abstract <R extends Reference> Node createProxy(XMLStore<R> xmlstore,
R ref)
public abstract Node replaceChild(Node node,
int index,
Node child)
node - element node.index - index of the child to replace.child - new child node.
public abstract Node insertChild(Node n,
int index,
Node child)
n - element node.index - index at which new child is inserted.child - new child node.
public abstract Node removeChild(Node n,
int index)
n - element node.index - index specifying the child to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||