public static boolean areAttributesLiteral ( TagAttribute ... attributes ) { for ( TagAttribute attribute : attributes ) { if ( attribute != null && ! attribute . isLiteral ( ) ) { // the attribute exists and is not literal return false ; } } // all attributes are literal return true ; }
Returns true if all specified attributes are either null or literal .