Package org.openxava.validators.meta
Class MetaValidatorFor
- java.lang.Object
-
- org.openxava.validators.meta.MetaValidatorFor
-
public class MetaValidatorFor extends java.lang.ObjectA validator associated to a type or stereotype.Used for validator for required and for default validators.
- Author:
- Javier Paniza
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringvalidatorClass
-
Constructor Summary
Constructors Constructor Description MetaValidatorFor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetForAnnotation()java.lang.StringgetForStereotype()java.lang.StringgetForType()IPropertyValidatorgetPropertyValidator()The first time the validator is created, the other times returns the created one.java.lang.StringgetValidatorClass()java.lang.StringgetValidatorName()voidsetForAnnotation(java.lang.String forAnnotation)voidsetForStereotype(java.lang.String newForStereotype)voidsetForType(java.lang.String newForType)voidsetValidatorClass(java.lang.String newValidatorClass)voidsetValidatorName(java.lang.String newValidatorName)
-
-
-
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)
-
getForAnnotation
public java.lang.String getForAnnotation()
-
setForAnnotation
public void setForAnnotation(java.lang.String forAnnotation)
-
-