public class ContentType
extends java.lang.Object
Constructor and Description |
---|
ContentType(java.lang.String name,
java.util.Collection<Field> fields,
java.util.Collection<java.lang.String> workflows,
java.lang.String nameField) |
Modifier and Type | Method and Description |
---|---|
Content |
convert(Content content) |
java.util.Collection<Field> |
getFields() |
java.lang.String |
getName() |
java.lang.String |
getNameField() |
java.util.Collection<java.lang.String> |
getWorkflows() |
Content |
sanitize(Content content) |
ValidationResult |
validate(Content content) |
public ContentType(java.lang.String name, java.util.Collection<Field> fields, java.util.Collection<java.lang.String> workflows, java.lang.String nameField)
public ValidationResult validate(Content content)
public java.lang.String getName()
public java.util.Collection<Field> getFields()
public java.lang.String getNameField()
public java.util.Collection<java.lang.String> getWorkflows()