Constructor and Description |
---|
FElem(byte[] name)
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(Element elem,
ANode par,
TokenMap nss)
Constructor for creating an element from a DOM node.
|
FElem(QNm name)
Constructor for creating an element.
|
FElem(QNm name,
Atts ns,
ANodeList children,
ANodeList atts)
Constructor for creating an element with nodes, attributes and
namespace declarations.
|
FElem(String name)
Convenience constructor for creating an element.
|
FElem(String local,
String uri)
Convenience constructor for creating an element with a new namespace.
|
FElem(String prefix,
String local,
String uri)
Convenience constructor for creating an element with a new namespace.
|
Modifier and Type | Method and Description |
---|---|
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[] val)
Adds an attribute and updates its parent reference.
|
FElem |
add(byte[] nm,
String val)
Adds an attribute and updates its parent reference.
|
FElem |
add(QNm nm,
byte[] val)
Adds an attribute and updates its parent reference.
|
FElem |
add(QNm nm,
String val)
Adds an attribute and updates its parent reference.
|
FElem |
add(String text)
Creates and adds a text node if the specified value is not empty.
|
FElem |
add(String nm,
byte[] val)
Adds an attribute and updates its parent reference.
|
FElem |
add(String nm,
String val)
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.
|
String |
toString() |
ancestor, ancestorOrSelf, deepCopy, descendant, descendantOrSelf, diff, following, followingSibling, is, parent, parent, parentIter, qname
atomItem, attribute, attribute, attribute, bool, dbCopy, diff, eq, finish, kind, kind, nodeType, nsScope, preceding, precedingSibling, self, string, toJava, type, uri
atomItem, atomSize, atomValue, comparable, dbl, dec, description, ebv, equiv, flt, hash, homogeneous, input, item, itemAt, iter, iterable, itr, materialize, score, score, seqType, size, test, typeId, writeTo, xdmInfo
accept, atomValue, cache, checkUp, compile, copy, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, serialize, value
atomIter, data, hasFreeVars, indexAccessible, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, optimizeEbv, sameAs, typeCheck, uses, visitAll
public FElem(String name)
name
- element namepublic FElem(byte[] name)
name
- element namepublic FElem(byte[] local, byte[] uri)
local
- local nameuri
- namespace uripublic FElem(String local, String uri)
local
- local nameuri
- namespace uripublic FElem(String prefix, String local, 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 name)
name
- element namepublic FElem(QNm name, Atts ns, ANodeList children, ANodeList atts)
name
- element namens
- namespaces, may be null
children
- children, may be null
atts
- attributes, may be null
public FElem optimize()
ANode
public FElem declareNS()
public FElem add(ANode node)
node
- node to be addedpublic FElem add(String nm, String val)
nm
- attribute nameval
- attribute valuepublic FElem add(byte[] nm, String val)
nm
- attribute nameval
- attribute valuepublic FElem add(String nm, byte[] val)
nm
- attribute nameval
- attribute valuepublic FElem add(byte[] nm, byte[] val)
nm
- attribute nameval
- attribute valuepublic FElem add(QNm nm, String val)
nm
- attribute nameval
- attribute valuepublic FElem add(QNm nm, byte[] val)
nm
- attribute nameval
- attribute valuepublic FElem add(String text)
add(byte[])
.text
- value of text nodepublic FElem add(byte[] text)
text
- value of text nodepublic Atts namespaces()
ANode
namespaces
in class ANode
public byte[] string()
ANode
public byte[] baseURI()
ANode
public QNm qname()
ANode
public byte[] name()
ANode
ANode.qname()
, as no QNm
instance is created.public AxisMoreIter attributes()
ANode
attributes
in class FNode
public AxisMoreIter children()
ANode
public boolean hasChildren()
ANode
hasChildren
in class FNode
public void plan(FElem plan)
ExprInfo
Copyright © 2005–2015 BaseX Team. All rights reserved.