public class TextResourceValue extends ResourceValue
ResourceValue intended for text nodes where we need access to the raw XML textmNamespaceResolver, mValue| Constructor and Description |
|---|
TextResourceValue(ResourceReference reference,
java.lang.String textValue,
java.lang.String rawXmlValue,
java.lang.String libraryName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getRawXmlValue()
Similar to
ResourceValue.getValue(), but returns the raw XML value. |
int |
hashCode() |
void |
setRawXmlValue(java.lang.String value) |
getLibraryName, getReference, getValue, isUserDefined, replaceWith, setNamespaceLookup, setValue, toStringgetName, getNamespace, getRelativeResourceUrl, getResourceType, getResourceUrl, isFrameworkpublic TextResourceValue(ResourceReference reference, java.lang.String textValue, java.lang.String rawXmlValue, java.lang.String libraryName)
public java.lang.String getRawXmlValue()
ResourceValueResourceValue.getValue(), but returns the raw XML value. This is usually
the same as getValue, but with a few exceptions. For example, for markup strings,
you can have * <string name="markup">This is <b>bold</b></string>.
Here, ResourceValue.getValue() will return "This is bold" -- e.g. just
the plain text flattened. However, this method will return "This is <b>bold</b>",
which preserves the XML markup elements.getRawXmlValue in class ResourceValuepublic void setRawXmlValue(java.lang.String value)
public int hashCode()
hashCode in class ResourceValuepublic boolean equals(java.lang.Object obj)
equals in class ResourceValue