Package org.jaxen

Examples of org.jaxen.FunctionCallException


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

        throw new FunctionCallException( "namespace-uri() requires zero or one argument." );
    }
View Full Code Here


            else if ( nav.isText( first ) )
            {
                return "";
            }
            else {
                throw new FunctionCallException(
                  "The argument to the namespace-uri function must be a node-set");  
            }

        }
View Full Code Here

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

        throw new FunctionCallException("contains() requires two arguments.");
    }
View Full Code Here

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

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

                sum += term;
            }
        }
        else
        {
            throw new FunctionCallException("The argument to the sum function must be a node-set");
        }

        return new Double(sum);
    }
View Full Code Here

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

        throw new FunctionCallException( "starts-with() requires two arguments." );
    }
View Full Code Here

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

        throw new FunctionCallException( "substring-after() requires two arguments." );
    }
View Full Code Here

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

        throw new FunctionCallException( "ends-with() requires two arguments." );
    }
View Full Code Here

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

        throw new FunctionCallException( "local-name() requires zero or one argument." );
    }
View Full Code Here

            else if ( nav.isText( first ) )
            {
                return "";
            }
            else {
                throw new FunctionCallException("The argument to the local-name function must be a node-set");  
            }
        }

        return "";
    }
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.