|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.up.primitives.Operation
org.basex.query.up.primitives.UpdatePrimitive
org.basex.query.up.primitives.RenameNode
public final class RenameNode
Rename node primitive.
Field Summary |
---|
Fields inherited from class org.basex.query.up.primitives.UpdatePrimitive |
---|
targetPre, type |
Fields inherited from class org.basex.query.up.primitives.Operation |
---|
data, info |
Constructor Summary | |
---|---|
RenameNode(int p,
Data d,
InputInfo i,
QNm nm)
Constructor. |
Method Summary | |
---|---|
void |
addAtomics(AtomicUpdateList l)
Adds the atomic update operations for this update primitive to the given list. |
void |
merge(UpdatePrimitive p)
Merges two update primitives, as they have the same target node. |
int |
size()
Returns the total number of node operations. |
UpdatePrimitive[] |
substitute(MemData tmp)
Substitutes the update primitive if necessary. |
java.lang.String |
toString()
|
void |
update(NamePool pool)
Updates the name pool, which is used to find duplicate attributes and namespace conflicts. |
Methods inherited from class org.basex.query.up.primitives.UpdatePrimitive |
---|
getData, getInfo, getTargetNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RenameNode(int p, Data d, InputInfo i, QNm nm)
p
- target node pre valued
- target data referencei
- input infonm
- new QName / new name valueMethod Detail |
---|
public void merge(UpdatePrimitive p) throws QueryException
UpdatePrimitive
merge
in class UpdatePrimitive
p
- primitive to merge with
QueryException
- exceptionpublic void update(NamePool pool)
UpdatePrimitive
update
in class UpdatePrimitive
pool
- name poolpublic java.lang.String toString()
toString
in class java.lang.Object
public int size()
Operation
size
in class Operation
public void addAtomics(AtomicUpdateList l)
UpdatePrimitive
addAtomics
in class UpdatePrimitive
l
- list of atomic updatespublic UpdatePrimitive[] substitute(MemData tmp)
UpdatePrimitive
substitute
in class UpdatePrimitive
tmp
- temporary mem data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |