|
||||||||||
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
$Id$ [15-May-2004] Defines methods for validating properties and property lists.
Method Summary | |
---|---|
void |
assertNone(String propertyName,
PropertyList properties)
Ensure a property doesn't occur in the specified list. |
void |
assertOne(String propertyName,
PropertyList properties)
Ensure a property occurs once. |
void |
assertOneOrLess(String propertyName,
PropertyList properties)
Ensure a property occurs no more than once. |
void |
assertOneOrMore(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(String propertyName, PropertyList properties) throws ValidationException
propertyName
- the property nameproperties
- a list of properties to query
ValidationException
- when the specified property occurs more than oncepublic void assertOneOrMore(String propertyName, PropertyList properties) throws ValidationException
propertyName
- the property nameproperties
- a list of properties to query
ValidationException
- when the specified property occurs more than oncepublic void assertOne(String propertyName, PropertyList properties) throws ValidationException
propertyName
- the property nameproperties
- a list of properties to query
ValidationException
- when the specified property does not occur oncepublic void assertNone(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 |