Package ro.sync.ecss.extensions.api.node
Class AttrValue
java.lang.Object
ro.sync.ecss.extensions.api.node.AttrValue
Contains informations about an attribute value.
WARNING: This class should be immutable. Objects of this class are sometimes cached in the AuthorDocumentHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EMPTY_VALUE
Empty attribute value constant.
-
-
Constructor Details
-
AttrValue
Constructor for the attribute value.- Parameters:
specifiedValue
- The simple attribute value which will be used both as raw value and normalized value.
-
AttrValue
Constructor for the attribute value.- Parameters:
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.
-
-
Method Details
-
getValue
Get the attribute normalized value.- Returns:
- The attribute normalized value (with entities expanded and white spaces collapsed).
-
getRawValue
Get the attribute's raw value.- Returns:
- Attribute raw value (as it is specified in text with no white space collapsed and entities not expanded).
-
isSpecified
public boolean isSpecified()Checks if the attribute was specified in the XML document or comes as a default value from the schema, DTD, etc..- Returns:
true
if the element is specified in XML,false
if this is a default value.
-
toString
-
equals
-
hashCode
public int hashCode()
-