|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.data.ExprInfo
org.basex.query.expr.Expr
org.basex.query.value.Value
org.basex.query.value.item.Item
org.basex.query.value.node.ANode
org.basex.query.value.node.FNode
org.basex.query.value.node.FElem
public final class FElem
Element node fragment.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.basex.query.expr.Expr |
---|
Expr.Flag |
Field Summary |
---|
Fields inherited from class org.basex.query.value.node.ANode |
---|
id |
Fields inherited from class org.basex.query.value.item.Item |
---|
score, UNDEF |
Fields inherited from class org.basex.query.value.Value |
---|
type |
Constructor Summary | |
---|---|
FElem(byte[] nm)
Convenience constructor for creating an element. |
|
FElem(byte[] local,
byte[] uri)
Convenience constructor for creating an element with a new namespace. |
|
FElem(byte[] prefix,
byte[] local,
byte[] uri)
Convenience constructor for creating an element with a new namespace. |
|
FElem(org.w3c.dom.Element elem,
ANode p,
TokenMap nss)
Constructor for creating an element from a DOM node. |
|
FElem(QNm n)
Constructor for creating an element. |
|
FElem(QNm nm,
Atts nsp,
ANodeList ch,
ANodeList at)
Constructor for creating an element with nodes, attributes and namespace declarations. |
|
FElem(java.lang.String nm)
Convenience constructor for creating an element. |
|
FElem(java.lang.String local,
java.lang.String uri)
Convenience constructor for creating an element with a new namespace. |
|
FElem(java.lang.String prefix,
java.lang.String local,
java.lang.String uri)
Convenience constructor for creating an element with a new namespace. |
Method Summary | |
---|---|
FElem |
add(ANode node)
Adds a node and updates its parent reference. |
FElem |
add(byte[] text)
Creates and adds a text node if the specified value is not empty. |
FElem |
add(byte[] nm,
byte[] value)
Adds an attribute and updates its parent reference. |
FElem |
add(byte[] nm,
java.lang.String value)
Adds an attribute and updates its parent reference. |
FElem |
add(QNm nm,
byte[] value)
Adds an attribute and updates its parent reference. |
FElem |
add(QNm nm,
java.lang.String value)
Adds an attribute and updates its parent reference. |
FElem |
add(java.lang.String text)
Creates and adds a text node if the specified value is not empty. |
FElem |
add(java.lang.String nm,
byte[] value)
Adds an attribute and updates its parent reference. |
FElem |
add(java.lang.String nm,
java.lang.String value)
Adds an attribute and updates its parent reference. |
AxisMoreIter |
attributes()
Returns an attribute axis iterator. |
byte[] |
baseURI()
Returns the base URI of the node. |
AxisMoreIter |
children()
Returns a child axis iterator. |
FElem |
copy()
Creates a copy of this node. |
FElem |
declareNS()
Adds a namespace declaration for the namespace in the given QName. |
boolean |
hasChildren()
Returns true if the node has children. |
byte[] |
name()
Returns the name of the node, composed of an optional prefix and the local name. |
Atts |
namespaces()
Returns all namespaces defined for the nodes. |
FElem |
optimize()
Minimizes the memory consumption of the node. |
void |
plan(FElem plan)
Creates an expression tree. |
QNm |
qname()
Returns the QName of the node. |
byte[] |
string()
Returns the string value. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.value.node.FNode |
---|
ancestor, ancestorOrSelf, deepCopy, descendant, descendantOrSelf, diff, following, followingSibling, is, parent, parent, parentIter, qname |
Methods inherited from class org.basex.query.value.node.ANode |
---|
attribute, attribute, attribute, bool, dbCopy, diff, diff, eq, finish, kind, kind, nodeType, nsScope, preceding, precedingSibling, self, string, toJava, type, uri |
Methods inherited from class org.basex.query.value.item.Item |
---|
castErr, comparable, dbl, dec, description, ebv, equiv, flt, hash, homogeneous, input, isItem, item, itemAt, iter, iterable, itr, materialize, score, score, size, test, type, typeId, writeTo, xdmInfo |
Methods inherited from class org.basex.query.value.Value |
---|
accept, cache, checkUp, compile, copy, count, data, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value |
Methods inherited from class org.basex.query.expr.Expr |
---|
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, sameAs, uses, visitAll |
Methods inherited from class org.basex.data.ExprInfo |
---|
addPlan, addPlan, info, planAttr, planElem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FElem(java.lang.String nm)
nm
- element namepublic FElem(byte[] nm)
nm
- element namepublic FElem(byte[] local, byte[] uri)
local
- local nameuri
- namespace uripublic FElem(java.lang.String local, java.lang.String uri)
local
- local nameuri
- namespace uripublic FElem(java.lang.String prefix, java.lang.String local, java.lang.String uri)
prefix
- prefix (a default namespace will be created if the string is empty)local
- local nameuri
- namespace uripublic FElem(byte[] prefix, byte[] local, byte[] uri)
prefix
- prefix (a default namespace will be created if the string is empty)local
- local nameuri
- namespace uripublic FElem(QNm n)
n
- element namepublic FElem(QNm nm, Atts nsp, ANodeList ch, ANodeList at)
nm
- element namensp
- namespaces; can be null
ch
- children; can be null
at
- attributes; can be null
public FElem(org.w3c.dom.Element elem, ANode p, TokenMap nss)
elem
- DOM nodep
- parent referencenss
- namespaces in scopeMethod Detail |
---|
public FElem optimize()
ANode
optimize
in class ANode
public FElem declareNS()
public FElem add(ANode node)
node
- node to be added
public FElem add(java.lang.String nm, java.lang.String value)
nm
- attribute namevalue
- attribute value
public FElem add(byte[] nm, java.lang.String value)
nm
- attribute namevalue
- attribute value
public FElem add(java.lang.String nm, byte[] value)
nm
- attribute namevalue
- attribute value
public FElem add(byte[] nm, byte[] value)
nm
- attribute namevalue
- attribute value
public FElem add(QNm nm, java.lang.String value)
nm
- attribute namevalue
- attribute value
public FElem add(QNm nm, byte[] value)
nm
- attribute namevalue
- attribute value
public FElem add(java.lang.String text)
add(byte[])
.
text
- value of text node
public FElem add(byte[] text)
text
- value of text node
public Atts namespaces()
ANode
FElem
and DBNode
.
namespaces
in class ANode
public byte[] string()
ANode
string
in class FNode
public byte[] baseURI()
ANode
baseURI
in class ANode
public QNm qname()
ANode
qname
in class ANode
public byte[] name()
ANode
ANode.qname()
, as no QNm
instance is created.
name
in class ANode
public AxisMoreIter attributes()
ANode
attributes
in class FNode
public AxisMoreIter children()
ANode
children
in class FNode
public boolean hasChildren()
ANode
hasChildren
in class FNode
public FElem copy()
ANode
copy
in class ANode
public void plan(FElem plan)
ExprInfo
plan
in class Item
plan
- root elementpublic java.lang.String toString()
toString
in class ExprInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |