nbi.xmlsec.biocase.protocol
Class Document

java.lang.Object
  extended bynbi.xmlsec.biocase.protocol.ProtocolType
      extended bynbi.xmlsec.biocase.protocol.ContentObject
          extended bynbi.xmlsec.biocase.protocol.Document

public class Document
extends ContentObject

This class wraps the BioCASE protocol content object of type Document.

Since:
Version:
$Revision: 1.2 $
Author:
Lutz Suhrbier

Field Summary
private  byte[] document
          Buffer for the document data
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ContentObject
logger
 
Fields inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
protocolURI
 
Constructor Summary
Document(String protocolURI)
          Inits this instance.
Document(String protocolURI, byte[] document)
          Inits this instance.
 
Method Summary
 byte[] getDocument()
          Gets the document
 void setDocument(byte[] document)
          Sets document
 String toString()
           
 
Methods inherited from class nbi.xmlsec.biocase.protocol.ContentObject
write
 
Methods inherited from class nbi.xmlsec.biocase.protocol.ProtocolType
getProtocolURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

document

private byte[] document
Buffer for the document data

Constructor Detail

Document

public Document(String protocolURI)
Inits this instance.

Parameters:
protocolURI - The protocol version of this instance.

Document

public Document(String protocolURI,
                byte[] document)
Inits this instance.

Parameters:
protocolURI - The protocol version of this instance.
Method Detail

getDocument

public byte[] getDocument()
Gets the document

Returns:
Returns the document.

setDocument

public void setDocument(byte[] document)
Sets document

Parameters:
document - The document to set.

toString

public String toString()


Copyright © 2006 Lutz Suhrbier, Freie Universitšt Berlin. All Rights Reserved.