示例#1
0
 public Object evaluate(List args) throws XPathFunctionException {
   if (args.size() != 1) {
     throw new CompilationException(
         __msgs.errInvalidNumberOfArguments(Constants.NON_STDRD_FUNCTION_YEAR_MONTH_DURATION));
   }
   return "";
 }
示例#2
0
 public Object evaluate(List args) throws XPathFunctionException {
   if (args.size() < 1 || args.size() > 2) {
     throw new CompilationException(
         __msgs.errInvalidNumberOfArguments(Constants.NON_STDRD_FUNCTION_DELETE));
   }
   return "";
 }
示例#3
0
 public Object evaluate(List args) throws XPathFunctionException {
   if (args.size() != 2) {
     throw new CompilationException(
         __msgs.errInvalidNumberOfArguments(Constants.NON_STDRD_FUNCTION_INSERT_AS_LAST_INTO));
   }
   return "";
 }
示例#4
0
 public Object evaluate(List params) throws XPathFunctionException {
   if (params.size() < 3 || params.size() > 4) {
     throw new CompilationException(
         __msgs.errInvalidNumberOfArguments(Constants.NON_STDRD_FUNCTION_SPLIT_TO_ELEMENTS));
   }
   return "";
 }
示例#5
0
 public Object evaluate(List args) throws XPathFunctionException {
   boolean separareParameteters;
   if (args.size() != 2 && (args.size() <= 2 || args.size() % 2 != 1)) {
     throw new CompilationException(
         __msgs.errInvalidNumberOfArguments(Constants.NON_STDRD_FUNCTION_COMPOSE_URL));
   }
   return "";
 }