public class RobotConfigResFilter
extends java.lang.Object
RobotConfigResFilter
is a ClassFilter
that filters for XML
resources which are robot configurations which have a type attribute of the indicated value.
Results of the filter are added to the indicated collection passed to the constructor.Modifier and Type | Field and Description |
---|---|
protected Resources |
resources |
static java.lang.String |
robotConfigRootTag |
static java.lang.String |
robotConfigRootTypeAttribute |
protected java.lang.String |
typeAttributeValue |
protected java.util.ArrayList<java.lang.Integer> |
xmlIdCollection |
Constructor and Description |
---|
RobotConfigResFilter(Context context,
java.lang.String typeAttributeValue) |
RobotConfigResFilter(java.lang.String typeAttributeValue) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
void |
filterAllClassesComplete() |
void |
filterAllClassesStart() |
void |
filterClass(java.lang.Class clazz) |
void |
filterOnBotJavaClass(java.lang.Class clazz) |
void |
filterOnBotJavaClassesComplete() |
void |
filterOnBotJavaClassesStart() |
static java.lang.String |
getRootAttribute(XmlResourceParser xpp,
java.lang.String rootElement,
java.lang.String attributeName,
java.lang.String defaultValue)
If the root element of the XML is the indicated tag, then returns the value of the
attributeName'd attribute thereof, or defaultValue if the attribute does not exist.
|
java.util.List<java.lang.Integer> |
getXmlIds() |
public static final java.lang.String robotConfigRootTag
public static final java.lang.String robotConfigRootTypeAttribute
protected Resources resources
protected java.lang.String typeAttributeValue
protected java.util.ArrayList<java.lang.Integer> xmlIdCollection
public RobotConfigResFilter(java.lang.String typeAttributeValue)
public RobotConfigResFilter(Context context, java.lang.String typeAttributeValue)
protected void clear()
public java.util.List<java.lang.Integer> getXmlIds()
public static java.lang.String getRootAttribute(XmlResourceParser xpp, java.lang.String rootElement, java.lang.String attributeName, java.lang.String defaultValue)
public void filterAllClassesStart()
public void filterOnBotJavaClassesStart()
public void filterClass(java.lang.Class clazz)
public void filterOnBotJavaClass(java.lang.Class clazz)
public void filterAllClassesComplete()
public void filterOnBotJavaClassesComplete()