Examples of addObjectParam()


Examples of org.apache.commons.digester.Digester.addObjectParam()

                CallMethodRule rr = new CallMethodRule(1, "setNodeContent", 2);
                digester.addRule("*/plan/executablePlan/planWorkflow/workflowConf", rr);
                // right below the wrapper is an instance of ExecutablePlanDefinition 
                digester.addCallParam("*/plan/executablePlan/planWorkflow/workflowConf", 0 , 1);
                // provide the name of the setter method
                digester.addObjectParam("*/plan/executablePlan/planWorkflow/workflowConf", 1, "setExecutablePlan");
   
                // the generated node is not accessible as CallParam (why?!?), but available for addSetNext
                digester.addSetNext("*/plan/executablePlan/planWorkflow/workflowConf", "setNode");

            } catch (ParserConfigurationException e) {
View Full Code Here

Examples of org.apache.commons.digester.Digester.addObjectParam()

                CallMethodRule rr2 = new CallMethodRule(1, "setNodeContentEPrintsPlan", 2);
                digester.addRule("*/plan/executablePlan/eprintsPlan", rr2);
                // right below the wrapper is an instance of ExecutablePlanDefinition 
                digester.addCallParam("*/plan/executablePlan/eprintsPlan", 0 , 1);
                // provide the name of the setter method
                digester.addObjectParam("*/plan/executablePlan/eprintsPlan", 1, "setEprintsExecutablePlan");
               
                digester.addSetNext("*/plan/executablePlan/eprintsPlan", "setNode");
               
            } catch (ParserConfigurationException e) {
                PlatoLogger.getLogger(this.getClass()).error(e.getMessage(),e);
View Full Code Here

Examples of org.apache.commons.digester.Digester.addObjectParam()

            // set up an general rule for all jhove strings!
            digester.addObjectCreate("*/jhoveXML", BinaryDataWrapper.class);
            digester.addSetTop("*/jhoveXML", "setString");
            digester.addCallMethod("*/jhoveXML", "setFromBase64Encoded", 0);
            digester.addCallMethod("*/jhoveXML", "setMethodName", 1, new String[]{"java.lang.String"});
            digester.addObjectParam("*/jhoveXML", 0, "setJhoveXMLString");
           
            // set up general rule for all fitsXMLs
            digester.addObjectCreate("*/fitsXML", BinaryDataWrapper.class);
            digester.addSetTop("*/fitsXML", "setString");
            digester.addCallMethod("*/fitsXML", "setFromBase64Encoded", 0);
View Full Code Here

Examples of org.apache.commons.digester.Digester.addObjectParam()

            // set up general rule for all fitsXMLs
            digester.addObjectCreate("*/fitsXML", BinaryDataWrapper.class);
            digester.addSetTop("*/fitsXML", "setString");
            digester.addCallMethod("*/fitsXML", "setFromBase64Encoded", 0);
            digester.addCallMethod("*/fitsXML", "setMethodName", 1, new String[]{"java.lang.String"});
            digester.addObjectParam("*/fitsXML", 0, "setFitsXMLString");
           
            digester.addObjectCreate("*/record/formatInfo", FormatInfo.class);
            digester.addSetProperties("*/record/formatInfo");
            digester.addSetNext("*/record/formatInfo", "setFormatInfo");
           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.