public class Attribute extends Object
Constructor and Description |
---|
Attribute(String name,
List<Pattern> allowedRegexps,
List<String> allowedValues,
String onInvalidStr,
String description) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsAllowedValue(String valueInLowerCase) |
String |
getName() |
String |
getOnInvalid() |
String |
matcherRegEx(boolean hasNext) |
boolean |
matchesAllowedExpression(String value) |
Attribute |
mutate(String onInvalid,
String description) |
public boolean matchesAllowedExpression(String value)
public boolean containsAllowedValue(String valueInLowerCase)
public String getName()
public String getOnInvalid()
onInvalid
value a tag could have, from the list of "filterTag", "removeTag" and "removeAttribute"public String matcherRegEx(boolean hasNext)
Copyright © 2018. All rights reserved.