|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Part
Parts belong to documents (or versions of documents), and are the things that contain the actual data of the document.
A part is always associated with a PartType.
The repository itself does not really place any restrictions
on the kind of data that can be contained in a part. However,
parts whose part type's PartType.isDaisyHtml()
method returns true should contain XML-well-formed HTML (not namespaced XHTML).
Note that a part has no setters methods, modifications can only
be done through the containing Document. This is because
parts can also be obtained from Versions, which are not
modifiable.
| Method Summary | |
|---|---|
byte[] |
getData()
Get the actual data stored in this part. |
long |
getDataChangedInVersion()
Gets the ID of the last version in which the data of this part was changed. |
InputStream |
getDataStream()
Get the data stored in this part. |
String |
getFileName()
Get the file name for this part, can be null. |
String |
getMimeType()
Get the mime-type of the data currently stored in this part. |
long |
getSize()
Get the size of the data. |
long |
getTypeId()
The id of the part type of this part. |
String |
getTypeName()
Get the name of the part type. |
org.outerx.daisy.x10.PartDocument |
getXml()
Get an XML document describing this part. |
| Method Detail |
|---|
long getTypeId()
RepositorySchema.
String getTypeName()
String getMimeType()
String getFileName()
byte[] getData()
throws RepositoryException
RepositoryException
InputStream getDataStream()
throws RepositoryException
RepositoryExceptionlong getSize()
long getDataChangedInVersion()
org.outerx.daisy.x10.PartDocument getXml()
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||