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
FieldsFields 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 TypeMethodDescriptionprotected String
buildAttributeName
(String name) protected void
This implementation callssuper
and sets the optionalattrPrefix
attribute that will be auto-appended to simple attribute names.Methods inherited from class com.pnfsoftware.jeb.core.units.code.android.XmlResourceHelper
convertEltlist, convertNodelist, getAttr, getRootElement, getSimpleName, hasAttributeValue, isFullyQualifiedName, isSimpleName, readAttribute, readAttributes, readMultiAttributes
-
Field Details
-
attrPrefix
-
-
Constructor Details
-
ApkXmlResourceHelper
Create a manifest helper around the provided manifest unit.- Parameters:
xml
-
-
ApkXmlResourceHelper
Create a manifest helper around the provided low-level XML document object.- Parameters:
doc
-
-
-
Method Details
-
prepare
This implementation callssuper
and sets the optionalattrPrefix
attribute that will be auto-appended to simple attribute names. ThebuildAttributeName(String)
method is also overridden to use that prefix.- Overrides:
prepare
in classXmlResourceHelper
-
buildAttributeName
- Overrides:
buildAttributeName
in classXmlResourceHelper
-