com.android.manifmerger
Class OrphanXmlElement

java.lang.Object
  extended by com.android.manifmerger.XmlNode
      extended by com.android.manifmerger.OrphanXmlElement
Direct Known Subclasses:
XmlElement

public class OrphanXmlElement
extends XmlNode

An xml element that does not belong to a XmlDocument


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
OrphanXmlElement(org.w3c.dom.Element xml)
           
 
Method Summary
 XmlNode.NodeKey getId()
          Returns an unique id within the manifest file for the element.
 java.lang.String getKey()
          Returns the unique key for this xml element within the xml file or null if there can be only one element of this type.
 XmlNode.NodeName getName()
          Returns the name of this xml element or attribute.
 com.android.utils.PositionXmlParser.Position getPosition()
          Returns the element's position
 XmlLoader.SourceLocation getSourceLocation()
          Returns the element's document xml source file location.
 com.android.manifmerger.ManifestModel.NodeTypes getType()
          Returns this xml element ManifestModel.NodeTypes
 org.w3c.dom.Element getXml()
          Returns the element's xml
 boolean isA(com.android.manifmerger.ManifestModel.NodeTypes type)
          Returns true if this xml element's ManifestModel.NodeTypes is the passed one.
 
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

OrphanXmlElement

public OrphanXmlElement(@NonNull
                        org.w3c.dom.Element xml)
Method Detail

isA

public boolean isA(com.android.manifmerger.ManifestModel.NodeTypes type)
Returns true if this xml element's ManifestModel.NodeTypes is the passed one.


getXml

@NonNull
public org.w3c.dom.Element getXml()
Description copied from class: XmlNode
Returns the element's xml

Specified by:
getXml in class XmlNode

getId

public XmlNode.NodeKey getId()
Description copied from class: XmlNode
Returns an unique id within the manifest file for the element.

Specified by:
getId in class XmlNode

getName

public XmlNode.NodeName getName()
Description copied from class: XmlNode
Returns the name of this xml element or attribute.

Specified by:
getName in class XmlNode

getType

@NonNull
public com.android.manifmerger.ManifestModel.NodeTypes getType()
Returns this xml element ManifestModel.NodeTypes


getKey

@Nullable
public java.lang.String getKey()
Returns the unique key for this xml element within the xml file or null if there can be only one element of this type.


getPosition

public com.android.utils.PositionXmlParser.Position getPosition()
Description copied from class: XmlNode
Returns the element's position

Specified by:
getPosition in class XmlNode

getSourceLocation

@NonNull
public XmlLoader.SourceLocation getSourceLocation()
Description copied from class: XmlNode
Returns the element's document xml source file location.

Specified by:
getSourceLocation in class XmlNode