public class OrphanXmlElement extends XmlNode
XmlDocumentXmlNode.Name, XmlNode.NamespaceAwareName, XmlNode.NodeKey, XmlNode.NodeNameNODE_TO_NAME| Constructor and Description |
|---|
OrphanXmlElement(org.w3c.dom.Element xml,
com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model) |
| Modifier and Type | Method and Description |
|---|---|
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.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.
|
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. |
fromNSName, fromXmlName, getOriginalId, getSourceFilePosition, printPosition, unwrapNamepublic OrphanXmlElement(@NonNull
org.w3c.dom.Element xml,
@NonNull
com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model)
public boolean isA(com.android.manifmerger.ManifestModel.NodeTypes type)
ManifestModel.NodeTypes is
the passed one.@NonNull public org.w3c.dom.Element getXml()
XmlNode@NonNull public XmlNode.NodeKey getId()
XmlNode@NonNull public XmlNode.NodeName getName()
XmlNode@NonNull public com.android.manifmerger.ManifestModel.NodeTypes getType()
ManifestModel.NodeTypes@Nullable public java.lang.String getKey()
@NonNull public com.android.ide.common.blame.SourcePosition getPosition()
XmlNodegetPosition in class XmlNode@NonNull public com.android.ide.common.blame.SourceFile getSourceFile()
XmlNodegetSourceFile in class XmlNode