Class ApkXmlResourceHelper
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.XmlResourceHelper
com.pnfsoftware.jeb.core.units.code.android.ApkXmlResourceHelper
- Direct Known Subclasses:
ApkManifestHelper
This helper class facilitates access to the data contained in an Android XML resource. In
particular, the
readAttributeXxx methods allow easy retrieval of attribute values by tag
names, throughout the entire document.-
Field Summary
FieldsModifier and TypeFieldDescriptionAndroid XML namespace prefixes used for resource attributes.Fields inherited from class com.pnfsoftware.jeb.core.units.code.android.XmlResourceHelper
doc, rootElt -
Constructor Summary
ConstructorsConstructorDescriptionCreate a manifest helper around the provided manifest unit.Create a manifest helper around the provided low-level XML document object. -
Method Summary
Modifier and TypeMethodDescriptionfindAndroidAttribute(Element elt, String name) findAndroidAttributeNode(Element elt, String name) protected voidThe default implementation retrieves sets theXmlResourceHelper.docandXmlResourceHelper.rootEltattributes.Methods inherited from class com.pnfsoftware.jeb.core.units.code.android.XmlResourceHelper
convertEltlist, convertNodelist, findElement, getRootElement, getSimpleName, hasAttributeValue, isFullyQualifiedName, isSimpleName, readAttribute, readAttributes
-
Field Details
-
androidAttrPrefixes
Android XML namespace prefixes used for resource attributes. For standard APKs, there should be just one entry ("android").
-
-
Constructor Details
-
ApkXmlResourceHelper
Create a manifest helper around the provided manifest unit.- Parameters:
xml- XML unit
-
ApkXmlResourceHelper
Create a manifest helper around the provided low-level XML document object.- Parameters:
doc- XML document
-
-
Method Details
-
prepare
Description copied from class:XmlResourceHelperThe default implementation retrieves sets theXmlResourceHelper.docandXmlResourceHelper.rootEltattributes. Overrides must call this implementation first.- Overrides:
preparein classXmlResourceHelper- Parameters:
doc- XML document
-
findAndroidAttribute
-
findAndroidAttributeNode
-