de.schwarzrot.ui.validation.constraints
Class AbstractValidationConstraint<E extends Entity>
java.lang.Object
de.schwarzrot.ui.validation.constraints.AbstractValidationConstraint<E>
- Type Parameters:
E
- - the type of instance wrapped by the presentation model
- All Implemented Interfaces:
- ValidationConstraint
- Direct Known Subclasses:
- VCAnyIsTrue, VCDbExists, VCDbIsAccessible, VCDirIsWritable, VCHostIsReachable, VCIsTrue, VCMandatory, VCMatchingFile, VCSupportedCharset, VCTaskExecutedSuccessfully, VCXHostIsReachable
public abstract class AbstractValidationConstraint<E extends Entity>
- extends Object
- implements ValidationConstraint
base class for validation constraints. Each constraint should access the
model, not the underlaying bean and validating should be based on property
names, so early validation on buffered values is possible.
- Author:
- Reinhard Mantey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractValidationConstraint
public AbstractValidationConstraint(com.jgoodies.binding.PresentationModel<E> model,
String propertyName)
getModel
public com.jgoodies.binding.PresentationModel<E> getModel()
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyName
in interface ValidationConstraint
- Returns:
- the name of the property, that should be validated
getValue
public final Object getValue()
getValue
public final Object getValue(String propertyName)
setModel
public void setModel(com.jgoodies.binding.PresentationModel<E> model)
setPropertyName
public void setPropertyName(String propertyName)
getLogger
protected final org.apache.commons.logging.Log getLogger()
Submit
a bug or request a feature
SRJRCFrames is published according to the
GNU General Public License
Copyright 2005-2012
Reinhard Mantey - some rights reserved.