예제 #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 "";
 }