|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ac.tuwien.dslab.rmi.common.impl.DocumentImpl
public class DocumentImpl
The DocumentImpl
provides a default implementation
of document.
Constructor Summary | |
---|---|
DocumentImpl()
Creates a new and empty IDocument instance. |
|
DocumentImpl(java.lang.String name,
long version,
byte[] content)
Creates a new IDocument instance. |
Method Summary | |
---|---|
byte[] |
getContent()
Gets the content of the document. |
java.lang.String |
getName()
Gets the name of the document. |
long |
getVersion()
Gets the version of this document. |
void |
setContent(byte[] content)
Sets the content of the document. |
void |
setName(java.lang.String name)
Sets the name of the document. |
void |
setVersion(long version)
Sets the version of the document (The first version is always assigned the value 1). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentImpl()
IDocument
instance.
public DocumentImpl(java.lang.String name, long version, byte[] content)
IDocument
instance.
name
- The name of the document.version
- The version of the document.content
- The content of the document.Method Detail |
---|
public void setName(java.lang.String name)
IDocument
setName
in interface IDocument
name
- The name of the document (has to contain only
characters with are allowed in a filename).public java.lang.String getName()
IDocument
getName
in interface IDocument
public void setVersion(long version)
IDocument
setVersion
in interface IDocument
version
- The version of this document.public long getVersion()
IDocument
getVersion
in interface IDocument
public byte[] getContent()
IDocument
getContent
in interface IDocument
public void setContent(byte[] content)
IDocument
setContent
in interface IDocument
content
- The content of the document as byte array.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |