public static void constantPlusExpressionAttributes(SimpleMethod method,Element element,String... attributeNames) throws ValidationException {
  for (  String name : attributeNames) {
    String attributeValue=element.getAttribute(name);
    if (!MiniLangUtil.isConstantPlusExpressionAttribute(attributeValue)) {
      handleError("Constant+expr attribute \"" + name + "\" is missing a constant value (expression-only constants are not allowed).",method,element);
    }
    if (MiniLangUtil.containsScript(attributeValue)) {
      handleError("Constant+expr attribute \"" + name + "\" cannot contain a script (remove script).",method,element);
    }
  }
}

public static void constantPlusExpressionAttributes ( SimpleMethod method , Element element , String ... attributeNames ) throws ValidationException { for ( String name : attributeNames ) { String attributeValue = element . getAttribute ( name ) ; if ( ! MiniLangUtil . isConstantPlusExpressionAttribute ( attributeValue ) ) { handleError ( "Constant+expr attribute \"" + name + "\" is missing a constant value (expression-only constants are not allowed)." , method , element ) ; } if ( MiniLangUtil . containsScript ( attributeValue ) ) { handleError ( "Constant+expr attribute \"" + name + "\" cannot contain a script (remove script)." , method , element ) ; } } }
tests if element attributes are constant + expr type .
