public static void constantAttributes(SimpleMethod method,Element element,String... attributeNames) throws ValidationException {
  for (  String name : attributeNames) {
    String attributeValue=element.getAttribute(name);
    if (!MiniLangUtil.isConstantAttribute(attributeValue)) {
      handleError("Constant attribute \"" + name + "\" cannot contain an expression.",method,element);
    }
  }
}

public static void constantAttributes ( SimpleMethod method , Element element , String ... attributeNames ) throws ValidationException { for ( String name : attributeNames ) { String attributeValue = element . getAttribute ( name ) ; if ( ! MiniLangUtil . isConstantAttribute ( attributeValue ) ) { handleError ( "Constant attribute \"" + name + "\" cannot contain an expression." , method , element ) ; } } }
tests if element attributes are constant type .
