Package com.ctc.wstx.sr
Class Attribute
java.lang.Object
com.ctc.wstx.sr.Attribute
Container for information collected regarding a single element
attribute instance. Used for both regular explicit attributes
and values added via attribute value defaulting.
This class is not exposed outside of the package and is considered part of internal implementation.
- Since:
- 4.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
Value as a String iff it has been requested once; stored here in case it will be accessed again.protected int
Numeric offset within text builder that denotes pointer to the first character of the value for this attribute (or namespace). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQName()
Method called if this attribute is the last one with value in the buffer.boolean
hasLocalName
(String localName) protected boolean
void
void
Method called to inject specific value for this attribute.
-
Field Details
-
mLocalName
-
mPrefix
-
mNamespaceURI
-
mValueStartOffset
protected int mValueStartOffsetNumeric offset within text builder that denotes pointer to the first character of the value for this attribute (or namespace). End offset is derived by looking at start pointer of the following attribute; or total length for the last entry -
mReusableValue
Value as a String iff it has been requested once; stored here in case it will be accessed again.
-
-
Constructor Details
-
Attribute
-
-
Method Details
-
reset
-
setValue
Method called to inject specific value for this attribute. -
hasQName
- Parameters:
uri
- Namespace URI of the attribute, if any; MUST be given as null if no namespacelocalName
- Local name to match. Note: is NOT guaranteed to have been interned- Returns:
- True if qualified name of this attribute is the same as what arguments describe
-
hasLocalName
- Since:
- 5.2
-
getQName
-
getValue
Method called if this attribute is the last one with value in the buffer. If so, end value is implied -
getValue
-