edu.mit.stellar.api.ecm
Interface AtomNode


public interface AtomNode

AtomNode Interface for accessing readable properties of an atomNode in the ECM. An object implementing only this interface is immutable.

Version:
$Revision: 29988 $, $Date: 2008-02-09 22:10:42 -0500 (Sat, 09 Feb 2008) $
Author:
MIT Stellar team

Method Summary
 java.lang.String getMimeType()
          analogous to legacy Stellar.
 java.lang.String getName()
          analogous to legacy Stellar.
 java.io.InputStream getStream()
          analogous to legacy Stellar, and JCR Property.
 java.lang.String getUUID()
          analogous to legacy Stellar.
 long length()
          analogous to legacy Stellar.
 

Method Detail

getName

java.lang.String getName()
analogous to legacy Stellar. Returns name of this AtomNode. Will be used as 'filePath' in legacy Stellar.

Returns:
The name.

getUUID

java.lang.String getUUID()
analogous to legacy Stellar. Returns UUID of this AtomNode.

Returns:
The UUID.

getMimeType

java.lang.String getMimeType()
analogous to legacy Stellar. Returns mime type of the content of this AtomNode.

Returns:
The mime-type of the document.

length

long length()
analogous to legacy Stellar. Returns the number of bytes stored in this AtomNode.

Returns:
The length (in bytes) of the document.

getStream

java.io.InputStream getStream()
                              throws java.lang.Exception
analogous to legacy Stellar, and JCR Property. Returns the content of this AtomNode as an InputStream.

Returns:
The length (in bytes) of the document.
Throws:
java.lang.Exception


Copyright © 2007-2008 MIT IS&T ISDA. All Rights Reserved.