public interface ContentValidator
Content
Modifier and Type | Method and Description |
---|---|
ContentType |
getContentType()
Get the content type
|
void |
setContentType(ContentType cTypeId)
Set the content type
|
void |
validate(Content content,
Errors errors)
Validates a content.
|
void |
validate(Content content,
Form form,
MetadataSet metadataSet,
Errors errors)
Validates a content with the edited form.
|
void setContentType(ContentType cTypeId)
cTypeId
- The content typeContentType getContentType()
void validate(Content content, Errors errors)
content
- the content to validateerrors
- the structure to populate if the validation failed.void validate(Content content, Form form, MetadataSet metadataSet, Errors errors)
content
- the content to validateform
- the form to validatemetadataSet
- the edited metadata seterrors
- the structure to populate if the validation failed.