|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xact.Node dk.brics.xact.XML dk.brics.xact.TempNode dk.brics.xact.Element
public class Element
Element node.
Constructor Summary | |
---|---|
Element(String localname)
Constructs a new empty element node. |
|
Element(String localname,
Origin origin)
Constructs a new empty element node. |
|
Element(String namespace,
String localname)
Constructs a new empty element node. |
|
Element(String namespace,
String localname,
AttrNode firstattribute,
XML firstchild,
NamespaceDecl firstnsdecl,
XML nextsibling,
Origin origin)
Constructs a new element node. |
|
Element(String namespace,
String localname,
Origin origin)
Constructs a new empty element node. |
Method Summary | ||
---|---|---|
(package private) Element |
copy()
Returns a copy of this node. |
|
(package private) Element |
copy(AttrNode firstattribute)
Returns a copy of this node with the given first attribute. |
|
Element |
copy(AttrNode firstattribute,
XML firstchild,
XML nextsibling)
Returns a copy of this node with the given attributes, children, and next sibling. |
|
(package private) Element |
copy(NamespaceDecl firstnsdecl)
Returns a copy of this node with the given first namespace declarations. |
|
Element |
copy(XML nextsibling)
Returns a copy of this node with the given next sibling. |
|
(package private) Element |
copy(XML firstchild,
XML nextsibling)
Returns a copy of this node with the given first child and next sibling. |
|
String |
getAttribute(String localname)
Returns the value of the attribute of the given name, or null if not present. |
|
String |
getAttribute(String namespace,
String localname)
Returns the value of the attribute of the given name, or null if not present. |
|
String |
getExpandedName()
Returns the expanded name. |
|
AttrNode |
getFirstAttr()
Returns the first attribute-like node. |
|
Attribute |
getFirstAttribute()
Returns the first attribute node. |
|
XML |
getFirstChild()
Returns the first child node. |
|
NamespaceDecl |
getFirstNamespaceDecl()
Returns the first namespace declaration node. |
|
String |
getLocalName()
Returns the local name. |
|
String |
getNamespace()
Returns the namespace URI. |
|
(package private) XML |
getRealFirstChild()
Returns the first child node, without normalizing. |
|
String |
toString()
Returns a description of this node. |
|
(package private) void |
visitAnyBy(AnyNodeVisitor v)
Visits this node by the given any-node visitor. |
|
(package private) void |
visitNormalizedBy(NodeVisitor v)
Visits this normalized node it by the given visitor. |
|
(package private)
|
visitNormalizedBy(NodeVisitorParameterized<R,A> v,
A arg)
Visits this normalized node it by the given visitor. |
Methods inherited from class dk.brics.xact.TempNode |
---|
getNextSibling, getRealNextSibling |
Methods inherited from class dk.brics.xact.XML |
---|
analyze, append, appendContent, appendContent, byteLength, close, concat, concat, concatXML, gapify, gapify, get, getElement, getElementByID, getElements, getFirstElement, getNamespaceMap, getNumber, getNumber, getString, getString, getStrings, getThreadNamespaceMap, has, insertAfter, insertBefore, loadXMLSchema, loadXMLSchema, normalize, parseDocument, parseDocument, parseDocument, parseDocument, parseTemplate, parseTemplate, parseTemplate, parseTemplate, parseTemplateResource, parseTemplateResource, plug, plugList, plugWrap, prepend, prependContent, prependContent, remove, set, set, set, set, setContent, setContent, toDocument, toDocument, toDocument, toDocument, toTemplate, toTemplate, toTemplate, toXML, toXML, validate, visitBy, visitBy |
Methods inherited from class dk.brics.xact.Node |
---|
asAttribute, asComment, asElement, asNamespaceDecl, asProcessingInstruction, asTemplate, asText, expanded, follow, follow, follow, follow, forward, getOrigin, isAttribute, isComment, isElement, isNamespaceDecl, isProcessingInstruction, isTemplate, isText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Element(String localname)
public Element(String localname, Origin origin)
public Element(String namespace, String localname)
public Element(String namespace, String localname, AttrNode firstattribute, XML firstchild, NamespaceDecl firstnsdecl, XML nextsibling, Origin origin)
public Element(String namespace, String localname, Origin origin)
Method Detail |
---|
Element copy()
Element copy(AttrNode firstattribute)
public Element copy(AttrNode firstattribute, XML firstchild, XML nextsibling)
Element copy(NamespaceDecl firstnsdecl)
public Element copy(XML nextsibling)
copy
in class TempNode
Element copy(XML firstchild, XML nextsibling)
public String getAttribute(String localname)
getAttribute
in class XML
XML.get(String)
,
XML.getAttribute(String, String)
public String getAttribute(String namespace, String localname)
getAttribute
in class XML
XML.get(String)
,
XML.getAttribute(String)
public String getExpandedName()
public AttrNode getFirstAttr()
public Attribute getFirstAttribute()
public XML getFirstChild()
public NamespaceDecl getFirstNamespaceDecl()
public String getLocalName()
public String getNamespace()
XML getRealFirstChild()
public String toString()
Node
toString
in class Node
void visitAnyBy(AnyNodeVisitor v)
Node
visitAnyBy
in class Node
void visitNormalizedBy(NodeVisitor v)
Node
visitNormalizedBy
in class TempNode
<R,A> R visitNormalizedBy(NodeVisitorParameterized<R,A> v, A arg)
Node
visitNormalizedBy
in class Node
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |