com.android.ide.common.rendering.api
Class TextResourceValue
java.lang.Object
com.android.ide.common.rendering.api.ResourceReference
com.android.ide.common.rendering.api.ResourceValue
com.android.ide.common.rendering.api.TextResourceValue
- All Implemented Interfaces:
- IResourceValue
public class TextResourceValue
- extends ResourceValue
A ResourceValue
intended for text nodes
where we need access to the raw XML text
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TextResourceValue
public TextResourceValue(ResourceType type,
java.lang.String name,
boolean isFramework)
TextResourceValue
public TextResourceValue(ResourceType type,
java.lang.String name,
java.lang.String textValue,
java.lang.String rawXmlValue,
boolean isFramework)
getRawXmlValue
public java.lang.String getRawXmlValue()
- Description copied from class:
ResourceValue
- Similar to
ResourceValue.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.
- Overrides:
getRawXmlValue
in class ResourceValue
setRawXmlValue
public void setRawXmlValue(java.lang.String value)
hashCode
public int hashCode()
- Overrides:
hashCode
in class ResourceValue
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class ResourceValue