|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ContentClient is the standard interface for objects that are stored in a Collection. A ContentClient can either represent a Document or a Value, depending on the Collection type.
Field Summary | |
static int |
TYPE_DOCUMENT
|
static int |
TYPE_VALUE
|
Method Summary | |
java.lang.String |
getCanonicalName()
getCanonicalName returns the canonical path for the Content. |
CollectionClient |
getCollection()
getCollection returns the CollectionClient that this ContentClientImpl belongs to. |
int |
getContentType()
getContainerType returns the content type for this client. |
org.w3c.dom.Document |
getDocument()
getDocument returns the Document Content as a DOM Document. |
java.lang.String |
getDocumentAsText()
getDocumentAsText returns the Document Content as text. |
java.lang.String |
getKey()
getKey returns the Content Key. |
byte[] |
getValue()
getValue returns the Value Content as a byte array. |
void |
setDocument(org.w3c.dom.Document document)
setDocument sets or overwrites the Document Content. |
void |
setDocumentAsText(java.lang.String document)
setDocumentAsText sets or overwrites the Document Content. |
void |
setValue(byte[] value)
setValue sets or overwrites the Value Content. |
Field Detail |
public static final int TYPE_DOCUMENT
public static final int TYPE_VALUE
Method Detail |
public java.lang.String getKey() throws dbXMLException
dbXMLException
public int getContentType() throws dbXMLException
dbXMLException
public java.lang.String getCanonicalName() throws dbXMLException
dbXMLException
public CollectionClient getCollection() throws dbXMLException
dbXMLException
public org.w3c.dom.Document getDocument() throws dbXMLException
dbXMLException
public java.lang.String getDocumentAsText() throws dbXMLException
dbXMLException
public byte[] getValue() throws dbXMLException
dbXMLException
public void setDocument(org.w3c.dom.Document document) throws dbXMLException
document
- The new Document content
dbXMLException
public void setDocumentAsText(java.lang.String document) throws dbXMLException
document
- The new Document content
dbXMLException
public void setValue(byte[] value) throws dbXMLException
value
- The new Value content
dbXMLException
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |