Package org.apache.commons.jelly

Examples of org.apache.commons.jelly.MissingAttributeException


   
    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws Exception {
        if (var == null) {
            throw new MissingAttributeException( "var" );
        }
        if (select == null) {
            throw new MissingAttributeException( "select" );
        }
       
        Object xpathContext = getXPathContext();       
        Object value = select.evaluate(xpathContext);
       
View Full Code Here


   
    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws Exception {
        if ( var == null ) {
            throw new MissingAttributeException( "var" );
        }
        if ( className == null ) {
            throw new MissingAttributeException( "className" );
        }
        Class theClass = getClassLoader().loadClass( className );
        Object object = theClass.newInstance();
        context.setVariable(var, object);
    }
View Full Code Here

    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(final XMLOutput output) throws Exception {
        if ( name == null ) {
            throw new MissingAttributeException( "name" );
        }
        XMLOutput newOutput = createXMLOutput();
        try {
            newOutput.startDocument();
            invokeBody(newOutput);
View Full Code Here

    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws Exception {
        Object xpathContext = getXPathContext();
       
        if (select == null) {
            throw new MissingAttributeException( "select" );
        }
       
        String text = select.stringValueOf(xpathContext);
        if ( text != null ) {
            output.write(text);
View Full Code Here

    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws Exception {
        Object xpathContext = getXPathContext();
       
        if (select == null) {
            throw new MissingAttributeException( "select" );
        }

        SAXWriter saxWriter = new SAXWriter(output, output);
        List nodes = select.selectNodes(xpathContext);
        for (Iterator iter = nodes.iterator(); iter.hasNext(); ) {
View Full Code Here

                }
            }
        }
        else {
            if ( end == Integer.MAX_VALUE && begin == 0 ) {
                throw new MissingAttributeException( "items" );
            }
            else {
                String varName = var;
                if ( varName == null ) {
                    varName = indexVar;
View Full Code Here

    // Tag interface
    //-------------------------------------------------------------------------
    public void doTag(XMLOutput output) throws Exception {
        if (select == null) {
            throw new MissingAttributeException( "select" );
        }
       
        Object xpathContext = getXPathContext();
        if ( select.booleanValueOf(xpathContext) ) {
            invokeBody(output);
View Full Code Here

    //-------------------------------------------------------------------------                   
    public void doTag(XMLOutput output) throws Exception {
        invokeBody(output);
       
    if (name == null) {
      throw new MissingAttributeException("name");
    }
    if (className == null) {
      throw new MissingAttributeException("className");
    }
       
    Class theClass = null;
    try {
      ClassLoader classLoader = getClassLoader();
View Full Code Here

    //-------------------------------------------------------------------------                   
    public void doTag(XMLOutput output) throws Exception {
        invokeBody(output);
       
    if (name == null) {
      throw new MissingAttributeException("name");
    }
    if (dynaClass == null) {
      throw new MissingAttributeException("dynaClass");
    }
       
        final DynaClass theDynaClass = dynaClass;
        final Map beanAttributes = (attributes != null) ? attributes : EMPTY_MAP;
       
View Full Code Here

    // Implementation methods
    //-------------------------------------------------------------------------                   
   
    public void doTag(XMLOutput output) throws Exception {
        if ( getVar() == null ) {
            throw new MissingAttributeException( "var" );
        }
        if ( getUrl() == null ) {
            throw new MissingAttributeException( "url" );
        }
               
        ClassLoader parent = Thread.currentThread().getContextClassLoader();
        if (parent == null) {
            parent = getClass().getClassLoader();
View Full Code Here

TOP

Related Classes of org.apache.commons.jelly.MissingAttributeException

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.