com.opensymphony.module.propertyset
Class PropertySchema
java.lang.Object
|
+--com.opensymphony.module.propertyset.PropertySchema
- All Implemented Interfaces:
- java.io.Serializable
- public class PropertySchema
- extends java.lang.Object
- implements java.io.Serializable
Describes the meta data for a given property.
The meta data for a property includes its type as well as
any verifiers that constrain it.
todo: add multiplicity?
- Version:
- $Revision: 1.7 $
- Author:
- Hani Suleiman
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertySchema
public PropertySchema()
PropertySchema
public PropertySchema(java.lang.String name)
setPropertyName
public void setPropertyName(java.lang.String s)
getPropertyName
public java.lang.String getPropertyName()
setType
public void setType(int type)
getType
public int getType()
addVerifier
public boolean addVerifier(PropertyVerifier pv)
removeVerifier
public boolean removeVerifier(PropertyVerifier pv)
getVerifiers
public java.util.Collection getVerifiers()
- Returns unmodifiable List of verifiers.
validate
public void validate(java.lang.Object value)
throws PropertyException
- Validate a given value against all verifiers.
Default behaviour is to AND all verifiers.