|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.owasp.validator.html.model.Property
public class Property
A model for CSS properties and the "rules" they must follow (either literals or regular expressions) in order to be considered valid.
| Constructor Summary | |
|---|---|
Property(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addAllowedRegExp(java.util.regex.Pattern safeRegExpValue)
Add the specified value to the allowed list of valid regular expressions. |
void |
addAllowedValue(java.lang.String safeValue)
Add the specified value to the allowed list of valid values. |
void |
addShorthandRef(java.lang.String shorthandValue)
Add the specified value to the allowed list of valid shorthand values. |
java.util.List |
getAllowedRegExp()
Return a List of allowed regular expressions as added
by the addAllowedRegExp() method. |
java.util.List |
getAllowedValues()
|
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
java.lang.String |
getOnInvalid()
|
java.util.List |
getShorthandRefs()
|
void |
setAllowedRegExp(java.util.List allowedRegExp)
Set a new List of allowed regular expressions. |
void |
setAllowedValues(java.util.List allowedValues)
Set a new List of allowed literal values. |
void |
setDescription(java.lang.String description)
|
void |
setOnInvalid(java.lang.String onInvalid)
|
void |
setShorthandRefs(java.util.List shorthandRefs)
Set a new List of allowed shorthand references. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Property(java.lang.String name)
| Method Detail |
|---|
public void addAllowedValue(java.lang.String safeValue)
safeValue - The new valid value to add to the list.public void addAllowedRegExp(java.util.regex.Pattern safeRegExpValue)
safeRegExpValue - The new valid regular expression to add to the list.public void addShorthandRef(java.lang.String shorthandValue)
shorthandValue - The new valid shorthand value to add to the list.public java.util.List getAllowedRegExp()
List of allowed regular expressions as added
by the addAllowedRegExp() method.
List of allowed regular expressions.public void setAllowedRegExp(java.util.List allowedRegExp)
List of allowed regular expressions.
allowedRegExp - The new List of allowed regular expressions.public java.util.List getAllowedValues()
List of allowed literal values.public void setAllowedValues(java.util.List allowedValues)
List of allowed literal values.
allowedValues - The new List of allowed literal values.public java.util.List getShorthandRefs()
List of allowed shorthand references.public void setShorthandRefs(java.util.List shorthandRefs)
List of allowed shorthand references.
shorthandRefs - The new List of allowed shorthand references.public java.lang.String getName()
public java.lang.String getOnInvalid()
onInvalid action associated with the Property.public void setOnInvalid(java.lang.String onInvalid)
onInvalid - The new onInvalid action to define for this property.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The new description of this Property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||