Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package jpaoletti.jpm.parser;
 

Author(s):
jpaoletti
 
public class ExternalConverterParser extends ParserSupport {
        super(pm);
    }
    @Override
    protected void init() {
        super.init();
        getXstream().alias("external-converters"ExternalConverters.class);
        getXstream().addImplicitCollection(ExternalConverters.class"converters"ConverterWrapper.class);
        getXstream().alias("external-converter"ConverterWrapper.class);
        getXstream().useAttributeFor(ConverterWrapper.class"id");
        getXstream().useAttributeFor(Converter.class"operations");
        getXstream().useAttributeFor(Converter.class"validate");
    }
    @Override
    protected Object newObject() {
        return new ExternalConverters(getPm());
    }
New to GrepCode? Check out our FAQ X