|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.ical4j.util.PropertyValidator
public final class PropertyValidator
Defines methods for validating properties and property lists.
| Method Summary | |
|---|---|
void |
assertNone(java.lang.String propertyName,
PropertyList properties)
Ensure a property doesn't occur in the specified list. |
void |
assertOne(java.lang.String propertyName,
PropertyList properties)
Ensure a property occurs once. |
void |
assertOneOrLess(java.lang.String propertyName,
PropertyList properties)
Ensure a property occurs no more than once. |
void |
assertOneOrMore(java.lang.String propertyName,
PropertyList properties)
Ensure a property occurs at least once. |
static PropertyValidator |
getInstance()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void assertOneOrLess(java.lang.String propertyName,
PropertyList properties)
throws ValidationException
propertyName - the property nameproperties - a list of properties to query
ValidationException - when the specified property occurs more than once
public void assertOneOrMore(java.lang.String propertyName,
PropertyList properties)
throws ValidationException
propertyName - the property nameproperties - a list of properties to query
ValidationException - when the specified property occurs more than once
public void assertOne(java.lang.String propertyName,
PropertyList properties)
throws ValidationException
propertyName - the property nameproperties - a list of properties to query
ValidationException - when the specified property does not occur once
public void assertNone(java.lang.String propertyName,
PropertyList properties)
throws ValidationException
propertyName - the name of a propertyproperties - a list of properties
ValidationException - thrown when the specified property
is found in the list of propertiespublic static PropertyValidator getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||