Class LightweightElement
java.lang.Object
eu.europa.ec.taxud.validation.reader.LightweightElement
A class sharing some behaviour with a W3C Element, but without content.
-
Constructor Summary
ConstructorsConstructorDescriptionLightweightElement(XMLStreamReader reader) Creates a lightweight element from the provided reader. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String localName) Gets attribute.Gets local name.Gets namespace uri.
-
Constructor Details
-
LightweightElement
Creates a lightweight element from the provided reader. This constructor doesn't consume any token from the reader.- Parameters:
reader- The reader to build the representation on.
-
-
Method Details
-
getLocalName
Gets local name.- Returns:
- the local name
-
getNamespaceURI
Gets namespace uri.- Returns:
- the namespace uri
-
getAttribute
Gets attribute.- Parameters:
localName- the local name- Returns:
- the attribute
-