public class

PropertySchema

extends Object
implements Serializable
java.lang.Object
   ↳ com.opensymphony.module.propertyset.PropertySchema

Class Overview

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?

Summary

Public Constructors
PropertySchema()
PropertySchema(String name)
Public Methods
boolean addVerifier(PropertyVerifier pv)
String getPropertyName()
int getType()
Collection getVerifiers()
Returns unmodifiable List of verifiers.
boolean removeVerifier(PropertyVerifier pv)
void setPropertyName(String s)
void setType(int type)
void validate(Object value)
Validate a given value against all verifiers.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PropertySchema ()

public PropertySchema (String name)

Public Methods

public boolean addVerifier (PropertyVerifier pv)

public String getPropertyName ()

public int getType ()

public Collection getVerifiers ()

Returns unmodifiable List of verifiers.

public boolean removeVerifier (PropertyVerifier pv)

public void setPropertyName (String s)

public void setType (int type)

public void validate (Object value)

Validate a given value against all verifiers. Default behaviour is to AND all verifiers.