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 TypeFieldDescriptionprotected StringAndroid XML namespace prefix 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 TypeMethodDescriptionprotected StringbuildAttributeName(String name) Build an attribute name usable for lookups.protected voidThis implementation callssuperand sets the optionalattrPrefixattribute 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
Android XML namespace prefix used for resource attributes.
-
-
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
This implementation callssuperand sets the optionalattrPrefixattribute that will be auto-appended to simple attribute names. ThebuildAttributeName(String)method is also overridden to use that prefix.- Overrides:
preparein classXmlResourceHelper- Parameters:
doc- XML document
-
buildAttributeName
Description copied from class:XmlResourceHelperBuild an attribute name usable for lookups.- Overrides:
buildAttributeNamein classXmlResourceHelper- Parameters:
name- attribute name- Returns:
- the lookup name
-