public abstract class TagName extends Object
This object is used so reduce the number of method call parameters
among unmarshallers.
An instance of this is expected to be reused by the caller of
XmlVisitor
. Note that the rest of the unmarshaller may
modify any of the fields while processing an event (such as to
intern strings, replace attributes),
so XmlVisitor
should reset all fields for each use.
The 'qname' parameter, which holds the qualified name of the tag (such as 'foo:bar' or 'zot'), is not used in the typical unmarshalling route and it's also expensive to compute for some input. Thus this parameter is computed lazily.
Modifier and Type | Field and Description |
---|---|
Attributes |
atts
Used only for the enterElement event.
|
String |
local
Local part of the attribute/element name.
|
String |
uri
URI of the attribute/element name.
|
Constructor and Description |
---|
TagName() |
Modifier and Type | Method and Description |
---|---|
QName |
createQName()
Creates
QName . |
String |
getPrefix()
Gets the prefix.
|
abstract String |
getQname()
Gets the qualified name of the tag.
|
boolean |
matches(Name name)
Checks if the given name pair matches this name.
|
boolean |
matches(String nsUri,
String local)
Checks if the given name pair matches this name.
|
String |
toString() |
public String uri
public String local
public Attributes atts
AttributesEx
.public final boolean matches(String nsUri, String local)
public final boolean matches(Name name)
public abstract String getQname()
public String getPrefix()
Copyright © 2017 JBoss by Red Hat. All rights reserved.