File: DummyModelParser.java

package info (click to toggle)
beast-mcmc 1.10.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 43,956 kB
  • sloc: java: 335,096; xml: 71,731; ansic: 3,363; fortran: 2,323; sh: 295; python: 106; makefile: 79; cpp: 25
file content (37 lines) | stat: -rw-r--r-- 940 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package @PLUGIN_FULL_PACKAGE@;

@PLUGIN_IMPORTS@
import dr.xml.*;

import java.util.logging.Logger;

public class @PLUGIN_CLASS@Parser extends AbstractXMLObjectParser {

    public String getParserName() {
    	return "@PLUGIN_XML_ELEMENT@";
    }

    public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    	@PLUGIN_XML_PARSER_STUB@
    }

    //************************************************************************
    // AbstractXMLObjectParser implementation
    //************************************************************************

    public String getParserDescription() {
    	return "This element represents an instance that comes from the @PLUGIN_CLASS@";
    }

    public Class getReturnType() {
    	return @PLUGIN_PARSER_RETURN_TYPE@;
    }

    public XMLSyntaxRule[] getSyntaxRules() {
    	return rules;
    }

    private final XMLSyntaxRule[] rules = {
    	@PLUGIN_XML_SYNTAX_RULES@
    };
}