Package org.apache.maven.model

Examples of org.apache.maven.model.ReportSet


        if ( ( reportPlugin.getReportSets() != null ) && ( reportPlugin.getReportSets().size() > 0 ) )
        {
            serializer.startTag( NAMESPACE, "reportSets" );
            for ( Iterator iter = reportPlugin.getReportSets().iterator(); iter.hasNext(); )
            {
                ReportSet o = (ReportSet) iter.next();
                writeReportSet( o, "reportSet", serializer );
            }
            serializer.endTag( NAMESPACE, "reportSets" );
        }
        if ( reportPlugin.getInherited() != null )
View Full Code Here


    public ReportSetFactory() {
        super("reportSet");
    }

    public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attrs) throws InstantiationException, IllegalAccessException {
        ReportSet node;

        if (value != null) {
            node = parse(value);
            if (node == null) {
                throw new NodeValueParseException(this, value);
            }
        }
        else {
            node = new ReportSet();
        }

        return node;
    }
View Full Code Here

    public static List parse(final Object value) {
        assert value != null;

        if (value instanceof String) {
            ReportSet child = ReportSetFactory.parse(value);
            if (child != null) {
                List node = new ArrayList();
                node.add(child);
                return node;
            }
        }
        else if (value instanceof List) {
            List node = new ArrayList();
            for (Object item : (List)value) {
                ReportSet child = ReportSetFactory.parse(item);
                if (child == null) {
                    return null;
                }
                node.add(child);
            }
View Full Code Here

TOP

Related Classes of org.apache.maven.model.ReportSet

Copyright © 2018 www.massapicom. 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.