public class TextResourceValueImpl extends ResourceValueImpl implements TextResourceValue
ResourceValue intended for text nodes where we need access to the raw XML text.mNamespaceResolver| Constructor and Description |
|---|
TextResourceValueImpl(ResourceNamespace namespace,
java.lang.String name,
java.lang.String textValue,
java.lang.String rawXmlValue,
java.lang.String libraryName) |
TextResourceValueImpl(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)
Sets the raw XML text.
|
asReference, getLibraryName, getName, getNamespace, getNamespaceResolver, getResourceType, getValue, isFramework, isUserDefined, replaceWith, setNamespaceResolver, setValue, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasReference, getLibraryName, getName, getNamespace, getNamespaceResolver, getReference, getResourceType, getResourceUrl, getValue, isFramework, isUserDefined, setValuepublic TextResourceValueImpl(@NonNull
ResourceNamespace namespace,
@NonNull
java.lang.String name,
@Nullable
java.lang.String textValue,
@Nullable
java.lang.String rawXmlValue,
@Nullable
java.lang.String libraryName)
public TextResourceValueImpl(@NonNull
ResourceReference reference,
@Nullable
java.lang.String textValue,
@Nullable
java.lang.String rawXmlValue,
@Nullable
java.lang.String libraryName)
@Nullable 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 interface ResourceValuepublic void setRawXmlValue(@Nullable
java.lang.String value)
value - the text to setgetRawXmlValue()public int hashCode()
hashCode in class ResourceValueImplpublic boolean equals(@Nullable
java.lang.Object obj)
equals in class ResourceValueImpl