Package rife.cmf.validation
Class SupportedXhtml
java.lang.Object
rife.validation.AbstractValidationRule
rife.validation.PropertyValidationRule
rife.cmf.validation.CmfPropertyValidationRule
rife.cmf.validation.SupportedXhtml
- All Implemented Interfaces:
Cloneable
,ValidationRule
A validation rule that checks if the data in a property can be
loaded as supported and valid xhtml without errors.
- Since:
- 1.0
-
Constructor Summary
ConstructorDescriptionSupportedXhtml
(String propertyName, boolean fragment) Instantiates a newSupportedXhtml
instance. -
Method Summary
Methods inherited from class rife.cmf.validation.CmfPropertyValidationRule
getFragment, setCachedLoadedData
Methods inherited from class rife.validation.PropertyValidationRule
getLoadingErrors, getPropertyName, getSubject, setLoadingErrors, setPropertyName, setSubject
Methods inherited from class rife.validation.AbstractValidationRule
clone, getBean, setBean
-
Constructor Details
-
SupportedXhtml
Instantiates a newSupportedXhtml
instance.- Parameters:
propertyName
- the name of the propertyfragment
-true
if the property is a fragment; orfalse
if it's a complete document- Since:
- 1.0
-
-
Method Details
-
validate
public boolean validate()- Specified by:
validate
in interfaceValidationRule
- Specified by:
validate
in classAbstractValidationRule
-
getError
- Specified by:
getError
in interfaceValidationRule
- Specified by:
getError
in classAbstractValidationRule
-