Package org.jaxen

Examples of org.jaxen.FunctionCallException


        if ( args.size() == 1 ) {
            return evaluate( context.getNodeSet(),
                             args.get(0), context.getNavigator() );
        }

        throw new FunctionCallException( "id() requires one argument" );
    }
View Full Code Here


            DocumentBuilder builder = factory.newDocumentBuilder();
            return builder.parse( uri );
        }
        catch (Exception e)
        {
            throw new FunctionCallException("Failed to parse doucment for URI: " + uri, e);
        }
    }
View Full Code Here

        {
            return evaluate( args.get(0),
                             context.getNavigator() );
        }

        throw new FunctionCallException( "floor() requires one argument." );
    }
View Full Code Here

        {
            return evaluate( args.get(0),
                             context.getNavigator() );
        }
   
        throw new FunctionCallException( "normalize-space() requires one argument" );
    }
View Full Code Here

        {
            return getSAXReader().read( uri );
        }
        catch (DocumentException e)
        {
            throw new FunctionCallException("Failed to parse doucment for URI: " + uri, e);
        }
    }
View Full Code Here

           
                locale = getLocale( args.get(1), navigator );
            }
            return evaluate( text, locale, navigator );
        }
        throw new FunctionCallException( "lower-case() requires at least one argument." );
    }
View Full Code Here

        if (args.size() == 1)
        {
            return evaluate( args.get(0) );
        }

        throw new FunctionCallException( "count() requires one argument." );
    }
View Full Code Here

        {
            return evaluate( args.get(0),
                             context.getNavigator() );
        }

        throw new FunctionCallException( "string-length() requires one argument." );
    }
View Full Code Here

    if (args.size() == 1)
      {
      return evaluate( args.get(0), context.getNavigator() );
      }

    throw new FunctionCallException( "number() requires one argument." );
    }
View Full Code Here

        if ( args.size() == 0 )
        {
            return evaluate( context );
        }
       
        throw new FunctionCallException( "position() requires no arguments." );
    }
View Full Code Here

TOP

Related Classes of org.jaxen.FunctionCallException

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.