Package org.opencastproject.util.doc
Class DocData
java.lang.Object
org.opencastproject.util.doc.DocData
- Direct Known Subclasses:
EmailData,RestDocData
This is the document model class which is the basis for all doc data models
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TEMPLATE_DEFAULT
- See Also:
-
meta
This is the document meta data -
notes
-
-
Constructor Details
-
DocData
Create a new DocData object- Parameters:
name- the name of the document (must be alphanumeric (includes _) and no spaces or special chars)title- [OPTIONAL] the title of the documentnotes- [OPTIONAL] an array of notes to add into the document
-
-
Method Details
-
toMap
- Returns:
- the map version of the data in this doc data holder
- Throws:
IllegalArgumentException- if the data cannot be turned into a valid map
-
getDefaultTemplatePath
- Returns:
- the default template path for this type of document data
-
addNote
Add a note to the document- Parameters:
note- the text of the note
-
isValidName
-
getMetaData
-
getMeta
-
getNotes
-