Package org.jaxen

Examples of org.jaxen.FunctionCallException


  public Object call(Context context, List args)
    throws FunctionCallException
  {
    if (args.size() != 2) {
      throw new FunctionCallException("contains-ignore-case() requires two arguments.");
    }

    return evaluate(args.get(0),
        args.get(1),
        context.getNavigator());
View Full Code Here


  public Object call(Context context, List args)
    throws FunctionCallException
  {
    if (args.size() != 1) {
      throw new FunctionCallException("recursive-text() requires one argument.");
    }
    return evaluate(args.get(0), context.getNavigator());
  }
View Full Code Here

                    "synapse:get-property(scope, prop-name) XPath function ";
                if (traceOn) {
                    trace.error(msg);
                }
                log.error(msg);
                throw new FunctionCallException(msg);
            }
        }
        return NULL_STRING;
    }
View Full Code Here

        try {
            encodedValue = new Base64().encode(value.getBytes(encoding));
        } catch (UnsupportedEncodingException e) {
            String msg = "Unsupported Encoding";
            log.error(msg, e);
            throw new FunctionCallException(msg, e);
        }

        String encodedString;
        try {
            encodedString = new String(encodedValue, encoding);
        } catch (UnsupportedEncodingException e) {
            String msg = "Unsupported Encoding";
            log.error(msg, e);
            throw new FunctionCallException(msg, e);
        }

        if (debugOn) {
            log.debug("Converted string: " + value + " with encoding: " + encoding +
                    " to base64 encoded value: " + encodedString);
View Full Code Here

                    in.close();
                } catch (IOException ex) {
                    // Ignore
                }
            }
            throw new FunctionCallException(e);
        }
    }
View Full Code Here

                    "synapse:get-property(scope, prop-name) XPath function ";
                if (traceOn) {
                    trace.error(msg);
                }
                log.error(msg);
                throw new FunctionCallException(msg);
            }
        }
    }
View Full Code Here

                    "synapse:get-property(scope, prop-name) XPath function ";
                if (traceOn) {
                    trace.error(msg);
                }
                log.error(msg);
                throw new FunctionCallException(msg);
            }
        }
        return NULL_STRING;
    }
View Full Code Here

           
            return builder.build( url );
        }
        catch (Exception e)
        {
            throw new FunctionCallException( e.getMessage() );
        }
    }
View Full Code Here

        {
            return new Document( new File( url ) );
        }
        catch (ParseException e)
        {
            throw new FunctionCallException( e.getMessage() );
        }
    }
View Full Code Here

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

        throw new FunctionCallException("boolean() requires one argument");
    }
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.