Class MCRMaxIntegerValidator
java.lang.Object
org.mycore.frontend.xeditor.validation.MCRValidator
org.mycore.frontend.xeditor.validation.MCRIntegerValidator
org.mycore.frontend.xeditor.validation.MCRMaxIntegerValidator
Validates values to be integer numbers not bigger than a given maximum value.
Example: <xed:validate type="integer" max="200" ... />
*
- Author:
- Frank Lützenkirchen
-
Field Summary
Fields inherited from class org.mycore.frontend.xeditor.validation.MCRValidator
relevantIfXPath, xPath
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
If validator uses properties to configure its behavior, override thisboolean
protected boolean
Methods inherited from class org.mycore.frontend.xeditor.validation.MCRValidator
getAttributeValue, getRuleElement, hasAttributeValue, init, isRelevant, validate, validateBinding
-
Constructor Details
-
MCRMaxIntegerValidator
public MCRMaxIntegerValidator()
-
-
Method Details
-
hasRequiredAttributes
public boolean hasRequiredAttributes()- Overrides:
hasRequiredAttributes
in classMCRIntegerValidator
-
configure
public void configure()Description copied from class:MCRValidator
If validator uses properties to configure its behavior, override this- Overrides:
configure
in classMCRValidator
-
isValid
- Overrides:
isValid
in classMCRIntegerValidator
-