public class XmlAttribute extends XmlNode
XmlElement.
Basically a facade object on Attr objects with some added features like automatic
namespace handling, manifest merger friendly identifiers and smart replacement of shortened
full qualified class names using manifest node's package setting from the the owning Android's
document.XmlNode.Name, XmlNode.NamespaceAwareName, XmlNode.NodeKey, XmlNode.NodeNameNODE_TO_NAME| Constructor and Description |
|---|
XmlAttribute(XmlElement ownerElement,
org.w3c.dom.Attr xml,
com.android.manifmerger.AttributeModel attributeModel)
Creates a new facade object to a
Attr xml attribute in a
XmlElement. |
| Modifier and Type | Method and Description |
|---|---|
XmlNode.NodeKey |
getId()
Returns a display friendly identification string that can be used in machine and user
readable messages.
|
com.android.manifmerger.AttributeModel |
getModel() |
XmlNode.NodeName |
getName()
Returns the attribute's name, providing isolation from details like namespaces handling.
|
com.android.ide.common.blame.SourcePosition |
getPosition()
Returns the element's position
|
com.android.ide.common.blame.SourceFile |
getSourceFile()
Returns the element's document xml source file location.
|
java.lang.String |
getValue()
Returns the attribute's value
|
org.w3c.dom.Attr |
getXml()
Returns the element's xml
|
fromNSName, fromXmlName, getOriginalId, getSourceFilePosition, printPosition, unwrapNamepublic XmlAttribute(@NonNull
XmlElement ownerElement,
@NonNull
org.w3c.dom.Attr xml,
@Nullable
com.android.manifmerger.AttributeModel attributeModel)
Attr xml attribute in a
XmlElement.ownerElement - the xml node object owning this attribute.xml - the xml definition of the attribute.@NonNull public XmlNode.NodeName getName()
@NonNull public java.lang.String getValue()
@NonNull public XmlNode.NodeKey getId()
@NonNull public com.android.ide.common.blame.SourcePosition getPosition()
XmlNodegetPosition in class XmlNode@NonNull public org.w3c.dom.Attr getXml()
XmlNode@Nullable public com.android.manifmerger.AttributeModel getModel()
@NonNull public com.android.ide.common.blame.SourceFile getSourceFile()
XmlNodegetSourceFile in class XmlNode