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
ConstructorsConstructorDescriptionSupportedXhtml(String propertyName, boolean fragment) Instantiates a newSupportedXhtmlinstance. -
Method Summary
Methods inherited from class rife.cmf.validation.CmfPropertyValidationRule
getFragment, setCachedLoadedDataMethods inherited from class rife.validation.PropertyValidationRule
getLoadingErrors, getPropertyName, getSubject, setLoadingErrors, setPropertyName, setSubjectMethods inherited from class rife.validation.AbstractValidationRule
clone, getBean, setBean
-
Constructor Details
-
SupportedXhtml
Instantiates a newSupportedXhtmlinstance.- Parameters:
propertyName- the name of the propertyfragment-trueif the property is a fragment; orfalseif it's a complete document- Since:
- 1.0
-
-
Method Details
-
validate
public boolean validate()- Specified by:
validatein interfaceValidationRule- Specified by:
validatein classAbstractValidationRule
-
getError
- Specified by:
getErrorin interfaceValidationRule- Specified by:
getErrorin classAbstractValidationRule
-