org.openxava.validators.meta
Class MetaValidatorFor

java.lang.Object
  extended by org.openxava.validators.meta.MetaValidatorFor

public class MetaValidatorFor
extends java.lang.Object

A validator associated to a type or stereotype.

Used for validator for required and for default validators.

Author:
Javier Paniza

Field Summary
 java.lang.String validatorClass
           
 
Constructor Summary
MetaValidatorFor()
           
 
Method Summary
 java.lang.String getForStereotype()
           
 java.lang.String getForType()
           
 IPropertyValidator getPropertyValidator()
          The first time the validator is created, the other times returns the created one.
 java.lang.String getValidatorClass()
           
 java.lang.String getValidatorName()
           
 void setForStereotype(java.lang.String newForStereotype)
           
 void setForType(java.lang.String newForType)
           
 void setValidatorClass(java.lang.String newValidatorClass)
           
 void setValidatorName(java.lang.String newValidatorName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validatorClass

public java.lang.String validatorClass
Constructor Detail

MetaValidatorFor

public MetaValidatorFor()
Method Detail

getPropertyValidator

public IPropertyValidator getPropertyValidator()
                                        throws XavaException
The first time the validator is created, the other times returns the created one.

Throws:
XavaException

getValidatorClass

public java.lang.String getValidatorClass()
                                   throws XavaException
Throws:
XavaException

getValidatorName

public java.lang.String getValidatorName()

getForType

public java.lang.String getForType()

setValidatorClass

public void setValidatorClass(java.lang.String newValidatorClass)

setValidatorName

public void setValidatorName(java.lang.String newValidatorName)

setForType

public void setForType(java.lang.String newForType)

getForStereotype

public java.lang.String getForStereotype()

setForStereotype

public void setForStereotype(java.lang.String newForStereotype)