Class AXmlElement
java.lang.Object
soot.jimple.infoflow.android.axml.AXmlElement
- Direct Known Subclasses:
AXmlAttribute,AXmlNode
Basic class for all classes which represent elements from an Android XML file.
Provides functionality to either include or exclude the element from the XML.
- Author:
- Stefan Haas, Mario Schlipf
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAXmlElement(String ns, boolean added) Constructor for a new Android XML Element. -
Method Summary
Modifier and TypeMethodDescriptionvoidexclude()Sets theincludeflag to false so that the manifest will not contain information about this element.Returns the namespace of this element.voidinclude()Sets theincludeflag to true so that the manifest will contain information about this element.protected voidinclude(boolean include) Sets theincludeflag to the passed boolean value.booleanisAdded()Returns wheter this element was part of a parsed xml file or added afterwards.booleanReturns the current value of theincludeflag.voidsetAdded(boolean added) Theaddedflag determines wheter this element was part of a parsed xml file or added afterwards.voidsetNamespace(String ns) Sets the namespace of this element.
-
Field Details
-
include
protected boolean includeThe include flag determines whether this element will be written out in the document. -
added
protected boolean addedThe added flag determines wheter this element was part of a parsed xml file or added afterwards.
-
-
Constructor Details
-
AXmlElement
Constructor for a new Android XML Element.- Parameters:
ns- namespace of this element.added- wheter this element was part of a parsed xml file or added afterwards.
-
-
Method Details
-
getNamespace
Returns the namespace of this element.- Returns:
- the element's namespace
-
setNamespace
Sets the namespace of this element.- Parameters:
ns- the element's namespace
-
setAdded
public void setAdded(boolean added) Theaddedflag determines wheter this element was part of a parsed xml file or added afterwards.- Parameters:
added-
-
isAdded
public boolean isAdded()Returns wheter this element was part of a parsed xml file or added afterwards.- Returns:
addedflag
-
isIncluded
public boolean isIncluded()Returns the current value of theincludeflag. If true the manifest will contain information about this element.- Returns:
- whether or not the element will be included in the manifest
-
include
public void include()Sets theincludeflag to true so that the manifest will contain information about this element. -
exclude
public void exclude()Sets theincludeflag to false so that the manifest will not contain information about this element. -
include
protected void include(boolean include) Sets theincludeflag to the passed boolean value. If given true this element will be included in the manifest.- Parameters:
included- value for theincludeflag
-