|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.manifmerger.XmlNode
public abstract class XmlNode
Common behavior of any xml declaration.
Nested Class Summary | |
---|---|
static class |
XmlNode.NodeKey
A xml element or attribute key. |
static interface |
XmlNode.NodeName
Abstraction to an xml name to isolate whether the name has a namespace or not. |
Field Summary | |
---|---|
protected static com.google.common.base.Function<org.w3c.dom.Node,java.lang.String> |
NODE_TO_NAME
|
Constructor Summary | |
---|---|
XmlNode()
|
Method Summary | |
---|---|
static XmlNode.NodeName |
fromNSName(java.lang.String namespaceUri,
java.lang.String prefix,
java.lang.String localName)
|
static XmlNode.NodeName |
fromXmlName(java.lang.String name)
|
int |
getColumn()
Return the column number in the original xml file this element or attribute was declared. |
abstract XmlNode.NodeKey |
getId()
Returns an unique id within the manifest file for the element. |
int |
getLine()
Return the line number in the original xml file this element or attribute was declared. |
abstract XmlNode.NodeName |
getName()
Returns the name of this xml element or attribute. |
abstract com.android.utils.PositionXmlParser.Position |
getPosition()
Returns the element's position |
abstract XmlLoader.SourceLocation |
getSourceLocation()
Returns the element's document xml source file location. |
abstract org.w3c.dom.Node |
getXml()
Returns the element's xml |
java.lang.String |
printPosition()
Returns the position of this attribute in the original xml file. |
java.lang.String |
printPosition(boolean shortFormat)
|
static XmlNode.NodeName |
unwrapName(org.w3c.dom.Node node)
Factory method to create an instance of XmlNode.NodeName
for an existing xml node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final com.google.common.base.Function<org.w3c.dom.Node,java.lang.String> NODE_TO_NAME
Constructor Detail |
---|
public XmlNode()
Method Detail |
---|
public abstract XmlNode.NodeKey getId()
public abstract com.android.utils.PositionXmlParser.Position getPosition()
@NonNull public abstract XmlLoader.SourceLocation getSourceLocation()
@NonNull public abstract org.w3c.dom.Node getXml()
public abstract XmlNode.NodeName getName()
public static XmlNode.NodeName unwrapName(org.w3c.dom.Node node)
XmlNode.NodeName
for an existing xml node.
node
- the xml definition.
XmlNode.NodeName
providing
namespace handling.public static XmlNode.NodeName fromXmlName(java.lang.String name)
public static XmlNode.NodeName fromNSName(java.lang.String namespaceUri, java.lang.String prefix, java.lang.String localName)
public int getLine()
public int getColumn()
public java.lang.String printPosition()
UNKNOWN_POSITION
public java.lang.String printPosition(boolean shortFormat)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |