com.android.manifmerger
Interface XmlLoader.SourceLocation

Enclosing class:
XmlLoader

public static interface XmlLoader.SourceLocation

Abstraction for the notion of source location. This is useful for logging and records collection when a origin of an xml declaration is needed.


Method Summary
 java.lang.String print(boolean shortFormat)
          print this source location in a human and machine readable format.
 org.w3c.dom.Node toXml(org.w3c.dom.Document document)
          Persist a location to an xml node.
 

Method Detail

print

java.lang.String print(boolean shortFormat)
print this source location in a human and machine readable format.

Parameters:
shortFormat - whether or not to use the short format. For instance, for a file, a short format is the file name while the long format is its path.
Returns:
the human and machine readable source location.

toXml

org.w3c.dom.Node toXml(org.w3c.dom.Document document)
Persist a location to an xml node.

Parameters:
document - the document in which the node will exist.
Returns:
the persisted location as a xml node.