|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.manifmerger.XmlNode
com.android.manifmerger.XmlAttribute
public class XmlAttribute
Defines an XML attribute inside a 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.android.manifmerger.XmlNode |
---|
XmlNode.NodeKey, XmlNode.NodeName |
Field Summary |
---|
Fields inherited from class com.android.manifmerger.XmlNode |
---|
NODE_TO_NAME |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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.utils.PositionXmlParser.Position |
getPosition()
Returns the element's position |
XmlLoader.SourceLocation |
getSourceLocation()
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 |
Methods inherited from class com.android.manifmerger.XmlNode |
---|
fromNSName, fromXmlName, getColumn, getLine, printPosition, printPosition, unwrapName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
public XmlNode.NodeName getName()
getName
in class XmlNode
public java.lang.String getValue()
public XmlNode.NodeKey getId()
getId
in class XmlNode
public com.android.utils.PositionXmlParser.Position getPosition()
XmlNode
getPosition
in class XmlNode
@NonNull public org.w3c.dom.Attr getXml()
XmlNode
getXml
in class XmlNode
@Nullable public com.android.manifmerger.AttributeModel getModel()
@NonNull public XmlLoader.SourceLocation getSourceLocation()
XmlNode
getSourceLocation
in class XmlNode
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |