Package org.openxava.validators.meta
Class MetaValidatorFor
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description java.lang.String
validatorClass
-
Constructor Summary
Constructors Constructor Description MetaValidatorFor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getForAnnotation()
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
setForAnnotation(java.lang.String forAnnotation)
void
setForStereotype(java.lang.String newForStereotype)
void
setForType(java.lang.String newForType)
void
setValidatorClass(java.lang.String newValidatorClass)
void
setValidatorName(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)
-
-