| 1 |
package @PLUGIN_FULL_PACKAGE@; |
| 2 |
|
| 3 |
@PLUGIN_IMPORTS@ |
| 4 |
import dr.xml.*; |
| 5 |
|
| 6 |
import java.util.logging.Logger; |
| 7 |
|
| 8 |
public class @PLUGIN_CLASS@Parser extends AbstractXMLObjectParser { |
| 9 |
|
| 10 |
public String getParserName() { |
| 11 |
return "@PLUGIN_XML_ELEMENT@"; |
| 12 |
} |
| 13 |
|
| 14 |
public Object parseXMLObject(XMLObject xo) throws XMLParseException { |
| 15 |
@PLUGIN_XML_PARSER_STUB@ |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
public String getParserDescription() { |
| 23 |
return "This element represents an instance that comes from the @PLUGIN_CLASS@"; |
| 24 |
} |
| 25 |
|
| 26 |
public Class getReturnType() { |
| 27 |
return @PLUGIN_PARSER_RETURN_TYPE@; |
| 28 |
} |
| 29 |
|
| 30 |
public XMLSyntaxRule[] getSyntaxRules() { |
| 31 |
return rules; |
| 32 |
} |
| 33 |
|
| 34 |
private final XMLSyntaxRule[] rules = { |
| 35 |
@PLUGIN_XML_SYNTAX_RULES@ |
| 36 |
}; |
| 37 |
} |