Modifier and Type | Method and Description |
---|---|
static boolean |
hasClassName(String allNames,
String className)
Returns true if the value of the 'class' attribute (allNames) contains the
specified class name.
|
static boolean |
replaceNullClassName(String oldN,
String newN,
Element e)
Does nothing if oldN and newN are equal; otherwise removes oldN if not null, and
adds newN if not null.
|
public static boolean hasClassName(String allNames, String className)
allNames
- the value of the 'class' attribute, a space-separated list of
class names.public static boolean replaceNullClassName(String oldN, String newN, Element e)