Package org.apache.clerezza.templating.seedsnipe.datastructure

Examples of org.apache.clerezza.templating.seedsnipe.datastructure.InvalidElementException


      FieldIndexOutOfBoundsException, InvalidElementException, IOException {
    final int openingBracket = fieldName.indexOf('(');
    if (openingBracket > 0) {
      final int closingBracket = fieldName.lastIndexOf(')');
      if (closingBracket == -1) {
        throw new InvalidElementException("Unmatched brackets");
      }
      final String functionName = fieldName.substring(0, openingBracket);
      RenderingFunction<Object, ?> function = renderingFunctions.getNamedFunctions().get(functionName);
      if (function == null) {
        throw new InvalidElementException("No such function: " + functionName);
      }
      String innerFieldName = fieldName.substring(openingBracket + 1, closingBracket);
      Object[] argumentValues = getArgumentValues(innerFieldName,arrayPos);
      return function.process(argumentValues);
    }
View Full Code Here

TOP

Related Classes of org.apache.clerezza.templating.seedsnipe.datastructure.InvalidElementException

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.