@Override public final void parseXML(final Element element) throws XMLParseError { // Parse The Boundary mLower = Integer.parseInt(element.getAttribute("lower")); mUpper = Integer.parseInt(element.getAttribute("upper")); // Parse The Members mName = element.getAttribute("name"); // Process The Child Nodes XMLParseAction.processChildNodes( element, new XMLParseAction() { @Override public void run(Element element) throws XMLParseError { // Get The Child Tag Name final String name = element.getTagName(); // Check The Child Tag Name if (name.equals("ActionFeature")) { // Create A New Token Style final ActionFeature feature = new ActionFeature(); // Parse The New Token Style feature.parseXML(element); // Put The New Style To The Map mFeatureList.add(feature); } else if (name.equals("ActionParam")) { // Create A New Token Style final ActionParam feature = new ActionParam(); // Parse The New Token Style feature.parseXML(element); // Put The New Style To The Map mFeatureList.add(feature); } } }); }
public void parseXML(Element element) throws XMLParseError { XMLParseAction.processChildNodes( element, new XMLParseAction() { public void run(Element element) throws XMLParseError { mTimeoutExp = Expression.parse(element); } }); }
// Parse The Config As XML From Element @Override public void parseXML(final Element element) throws XMLParseError { // Get The Type Of The Config final String tag = element.getTagName(); // Check The Type Of The Config if (tag.equals(mElementName)) { // Parse The Individual Entries XMLParseAction.processChildNodes( element, mFeatureName, new XMLParseAction() { @Override public void run(final Element element) throws XMLParseError { final ConfigFeature entry = new ConfigFeature(mFeatureName); // Parse The New Entry Here entry.parseXML(element); // And Add It To The List mFeatureList.add(entry); } }); } }
@Override public final void parseXML(final Element element) throws XMLParseError { // Parse The Name mActionName = element.getAttribute("name"); // Parse The Features XMLParseAction.processChildNodes( element, new XMLParseAction() { @Override public void run(final Element element) throws XMLParseError { final String tag = element.getTagName(); if (tag.equals("Feature")) { // Construct New final ActiconFeature feature = new ActiconFeature(); // Parse The Feature feature.parseXML(element); // Append The Feature append(feature); } } }); }