net.sf.cantina
Interface Document

All Known Implementing Classes:
DocumentDecorator, PersistentDocument

public interface Document

Author:
Stephane JAIS

Method Summary
 java.util.Collection getAvailableLocales()
           
 byte[] getContent(java.util.Locale locale)
           
 java.lang.String getContentAsString(java.util.Locale locale)
           
 java.lang.String getContentType()
           
 java.lang.String getDocumentId()
           
 Realm getRealm()
           
 void setContent(java.util.Locale locale, byte[] content)
           
 void setContentAsString(java.util.Locale locale, java.lang.String content)
           
 void setContentType(java.lang.String contentType)
           
 void setRealm(Realm realm)
           
 

Method Detail

getDocumentId

public java.lang.String getDocumentId()

getContent

public byte[] getContent(java.util.Locale locale)

getContentAsString

public java.lang.String getContentAsString(java.util.Locale locale)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getContentType

public java.lang.String getContentType()

getRealm

public Realm getRealm()

setContent

public void setContent(java.util.Locale locale,
                       byte[] content)

setContentAsString

public void setContentAsString(java.util.Locale locale,
                               java.lang.String content)
                        throws java.lang.Exception
Throws:
java.lang.Exception

setContentType

public void setContentType(java.lang.String contentType)

setRealm

public void setRealm(Realm realm)

getAvailableLocales

public java.util.Collection getAvailableLocales()


Copyright © 2004 Cantina. All Rights Reserved.