Package com.android.manifmerger
Class OrphanXmlElement
java.lang.Object
com.android.manifmerger.XmlNode
com.android.manifmerger.OrphanXmlElement
- Direct Known Subclasses:
XmlElement
An xml element that does not belong to a
XmlDocument-
Nested Class Summary
Nested classes/interfaces inherited from class com.android.manifmerger.XmlNode
XmlNode.Name, XmlNode.NamespaceAwareName, XmlNode.NodeKey, XmlNode.NodeName -
Field Summary
Fields inherited from class com.android.manifmerger.XmlNode
NODE_TO_NAME -
Constructor Summary
ConstructorsConstructorDescriptionOrphanXmlElement(Element xml, com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model) -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeInfo(String namespaceUri, String attributeName) getAttributeNode(String name) getAttributeNodeNS(String namespaceURI, String localName) getAttributeValue(String namespaceUri, String localName) getId()Returns an unique id within the manifest file for the element.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.getName()Returns the name of this xml element or attribute.com.android.ide.common.blame.SourcePositionReturns the element's positioncom.android.ide.common.blame.SourceFileReturns the element's document xml source file location.com.android.manifmerger.ManifestModel.NodeTypesgetType()Returns this xml elementManifestModel.NodeTypesgetXml()Returns the element's xmlbooleanisA(com.android.manifmerger.ManifestModel.NodeTypes type) Returns true if this xml element'sManifestModel.NodeTypesis the passed one.lookupNamespacePrefix(String nsUri, boolean create) lookupNamespacePrefix(String nsUri, String defaultPrefix, boolean create) Methods inherited from class com.android.manifmerger.XmlNode
fromNSName, fromXmlName, getOriginalId, getSourceFilePosition, printPosition, unwrapName
-
Constructor Details
-
OrphanXmlElement
public OrphanXmlElement(@NonNull Element xml, @NonNull com.android.manifmerger.DocumentModel<com.android.manifmerger.ManifestModel.NodeTypes> model)
-
-
Method Details
-
isA
public boolean isA(com.android.manifmerger.ManifestModel.NodeTypes type) Returns true if this xml element'sManifestModel.NodeTypesis the passed one. -
getXml
Description copied from class:XmlNodeReturns the element's xml -
getNamespaceURI
-
getTagName
-
getAttributeValue
-
getAttributeInfo
-
lookupNamespacePrefix
-
lookupNamespacePrefix
-
getAttributeNode
-
getAttributeNodeNS
-
getId
Description copied from class:XmlNodeReturns an unique id within the manifest file for the element. -
getName
Description copied from class:XmlNodeReturns the name of this xml element or attribute. -
getType
@NonNull public com.android.manifmerger.ManifestModel.NodeTypes getType()Returns this xml elementManifestModel.NodeTypes -
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
@NonNull public com.android.ide.common.blame.SourcePosition getPosition()Description copied from class:XmlNodeReturns the element's position- Specified by:
getPositionin classXmlNode
-
getSourceFile
@NonNull public com.android.ide.common.blame.SourceFile getSourceFile()Description copied from class:XmlNodeReturns the element's document xml source file location.- Specified by:
getSourceFilein classXmlNode
-