Package nu.validator.saxtree
Class Element
java.lang.Object
nu.validator.saxtree.Node
nu.validator.saxtree.ParentNode
nu.validator.saxtree.Element
- All Implemented Interfaces:
Locator
An element.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Attributes
The attributes.private final String
The local name.private final List
<PrefixMapping> The namespace prefix mappings.private final String
The qualified name.private final String
The namespace URI.Fields inherited from class nu.validator.saxtree.ParentNode
endLocator
-
Constructor Summary
ConstructorsConstructorDescriptionElement
(Locator locator, String uri, String localName, String qName, Attributes atts, boolean retainAttributes, List<PrefixMapping> prefixMappings) The contructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes.Returns the localName.Return the node type.Returns the prefixMappings.getQName()
Returns the qName.getUri()
Returns the uri.(package private) void
revisit
(TreeParser treeParser) Revisit the node.(package private) void
visit
(TreeParser treeParser) Visit the node.Methods inherited from class nu.validator.saxtree.ParentNode
appendChild, appendChildren, copyEndLocator, getFirstChild, getLastChild, insertBefore, insertBetween, removeChild, setEndLocator
Methods inherited from class nu.validator.saxtree.Node
detach, getColumnNumber, getData, getLineNumber, getName, getNextSibling, getParentNode, getPreviousSibling, getPublicId, getPublicIdentifier, getSystemId, getSystemIdentifier, getTarget, setNextSibling, setParentNode
-
Field Details
-
uri
The namespace URI. -
localName
The local name. -
qName
The qualified name. -
attributes
The attributes. -
prefixMappings
The namespace prefix mappings.
-
-
Constructor Details
-
Element
public Element(Locator locator, String uri, String localName, String qName, Attributes atts, boolean retainAttributes, List<PrefixMapping> prefixMappings) The contructor.- Parameters:
locator
- the locator.uri
- the namespace URIlocalName
- the local nameqName
- the qualified nameatts
- the attributesretainAttributes
-true
to retain the attributes instead of copyingprefixMappings
- the prefix mappings
-
-
Method Details
-
visit
Description copied from class:Node
Visit the node.- Specified by:
visit
in classNode
- Parameters:
treeParser
- the visitor- Throws:
SAXException
- if stuff goes wrong- See Also:
-
revisit
Description copied from class:Node
Revisit the node.- Overrides:
revisit
in classNode
- Parameters:
treeParser
- the visitor- Throws:
SAXException
- if stuff goes wrong- See Also:
-
getAttributes
Returns the attributes.- Overrides:
getAttributes
in classNode
- Returns:
- the attributes
-
getLocalName
Returns the localName.- Overrides:
getLocalName
in classNode
- Returns:
- the localName
-
getPrefixMappings
Returns the prefixMappings.- Overrides:
getPrefixMappings
in classNode
- Returns:
- the prefixMappings
-
getQName
Returns the qName. -
getUri
Returns the uri. -
getNodeType
Description copied from class:Node
Return the node type.- Specified by:
getNodeType
in classNode
- Returns:
- the node type
- See Also:
-