public static void expressionAttributes(SimpleMethod method,Element element,String... attributeNames) throws ValidationException {
  for (  String name : attributeNames) {
    String attributeValue=element.getAttribute(name);
    if (attributeValue.length() > 0) {
      if (attributeValue.startsWith("${") && attributeValue.endsWith("}")) {
        attributeValue=attributeValue.substring(2,attributeValue.length() - 1);
      }
      if (MiniLangUtil.containsScript(attributeValue)) {
        handleError("Expression attribute \"" + name + "\" cannot contain a script (remove script).",method,element);
      }
    }
  }
}

public static void expressionAttributes ( SimpleMethod method , Element element , String ... attributeNames ) throws ValidationException { for ( String name : attributeNames ) { String attributeValue = element . getAttribute ( name ) ; if ( attributeValue . length ( ) > 0 ) { if ( attributeValue . startsWith ( "${" ) && attributeValue . endsWith ( "}" ) ) { attributeValue = attributeValue . substring ( 2 , attributeValue . length ( ) - 1 ) ; } if ( MiniLangUtil . containsScript ( attributeValue ) ) { handleError ( "Expression attribute \"" + name + "\" cannot contain a script (remove script)." , method , element ) ; } } } }
tests if element attributes are expression type .
