@API(type=EXTENDABLE,
src=PUBLIC)
public class AttrValue
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static AttrValue |
EMPTY_VALUE
Empty attribute value constant.
|
| Constructor and Description |
|---|
AttrValue(java.lang.String specifiedValue)
Constructor for the attribute value.
|
AttrValue(java.lang.String normalizedValue,
java.lang.String rawValue,
boolean isSpecified)
Constructor for the attribute value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getRawValue()
Get the attribute's raw value.
|
java.lang.String |
getValue()
Get the attribute normalized value.
|
boolean |
isSpecified()
Checks if the attribute was specified in the XML document or comes as a default value from
the schema, DTD, etc..
|
java.lang.String |
toString() |
public static final AttrValue EMPTY_VALUE
public AttrValue(java.lang.String specifiedValue)
specifiedValue - The simple attribute value which will be used both as
raw value and normalized value.public AttrValue(java.lang.String normalizedValue,
java.lang.String rawValue,
boolean isSpecified)
normalizedValue - Attribute normalized value (with entities expanded
and WS's collapsed).rawValue - Attribute raw value (as it is specified in text with no white space collapsed and entities not expanded).isSpecified - true if specified in XML, false
if this is a default value.public java.lang.String getValue()
public java.lang.String getRawValue()
public boolean isSpecified()
true if the element is specified in XML, false if this is
a default value.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.