Package org.openxava.validators.meta
Class MetaValidator
- java.lang.Object
-
- org.openxava.util.meta.MetaSetsContainer
-
- org.openxava.validators.meta.MetaValidator
-
- All Implemented Interfaces:
java.io.Serializable
public class MetaValidator extends MetaSetsContainer
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetaValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPropertyValidator
createPropertyValidator()
Creates a validator each time that this method is called; this validator is configured with the values assigned in XML.IRemoveValidator
createRemoveValidator()
Creates a validator each time that this method is called; this validator is configured with the values assigned in XML.IValidator
createValidator()
Creates a validator each time that this method is called; this validator is configured with the values assigned in XML.java.lang.String
getClassName()
java.lang.String
getMessage()
java.lang.String
getName()
IPropertyValidator
getPropertyValidator()
The first time the validator is created, the other times returns the created one.IRemoveValidator
getRemoveValidator()
The first time the validator is created, the other times returns the created one.IValidator
getValidator()
The first time the validator is created, the other times returns the created one.boolean
isOnlyOnCreate()
void
setClassName(java.lang.String newClass)
void
setMessage(java.lang.String message)
void
setName(java.lang.String newName)
void
setOnlyOnCreate(boolean onlyOnCreate)
-
Methods inherited from class org.openxava.util.meta.MetaSetsContainer
addMetaSet, assignPropertiesValues, containsMetaSets, containsMetaSetsWithoutValue, getMetaSets, getMetaSetsWithoutValue, getPropertyNameForPropertyFrom, isDependent
-
-
-
-
Method Detail
-
getClassName
public java.lang.String getClassName() throws XavaException
- Throws:
XavaException
-
getName
public java.lang.String getName()
-
setClassName
public void setClassName(java.lang.String newClass)
-
setName
public void setName(java.lang.String newName)
-
createValidator
public IValidator createValidator() throws XavaException
Creates a validator each time that this method is called; this validator is configured with the values assigned in XML.- Throws:
XavaException
-
getValidator
public IValidator getValidator() throws XavaException
The first time the validator is created, the other times returns the created one.- Throws:
XavaException
-
createPropertyValidator
public IPropertyValidator createPropertyValidator() throws XavaException
Creates a validator each time that this method is called; this validator is configured with the values assigned in XML.- Throws:
XavaException
-
getPropertyValidator
public IPropertyValidator getPropertyValidator() throws XavaException
The first time the validator is created, the other times returns the created one.- Throws:
XavaException
-
createRemoveValidator
public IRemoveValidator createRemoveValidator() throws XavaException
Creates a validator each time that this method is called; this validator is configured with the values assigned in XML.- Throws:
XavaException
-
getRemoveValidator
public IRemoveValidator getRemoveValidator() throws XavaException
The first time the validator is created, the other times returns the created one.- Throws:
XavaException
-
isOnlyOnCreate
public boolean isOnlyOnCreate()
-
setOnlyOnCreate
public void setOnlyOnCreate(boolean onlyOnCreate)
-
getMessage
public java.lang.String getMessage()
-
setMessage
public void setMessage(java.lang.String message)
-
-