net.sf.sail.common.persistance.memory
Class MemoryAnnotation

java.lang.Object
  extended by net.sf.sail.common.persistance.memory.MemoryAnnotation
All Implemented Interfaces:
IAnnotation

public class MemoryAnnotation
extends java.lang.Object
implements IAnnotation


Constructor Summary
MemoryAnnotation()
           
 
Method Summary
 java.lang.String getContents()
          The actual content of the annotation.
 java.lang.String getContentType()
          The mime type for the content of the Annotation.
 java.lang.Object getSailEntity()
          Return the entity that this is an annoation of.
 java.lang.String getSource()
          This is a URI identifying the type of this annotation.
 void setContents(java.lang.String contents)
           
 void setContentType(java.lang.String contentType)
           
 void setSailEntity(java.lang.Object entity)
           
 void setSource(java.lang.String source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryAnnotation

public MemoryAnnotation()
Method Detail

getContentType

public java.lang.String getContentType()
Description copied from interface: IAnnotation
The mime type for the content of the Annotation. Unlike EMF these annotations can only store strings. So a content type is useful to help parse string,

Specified by:
getContentType in interface IAnnotation
Returns:

getContents

public java.lang.String getContents()
Description copied from interface: IAnnotation
The actual content of the annotation.

Specified by:
getContents in interface IAnnotation
Returns:

getSailEntity

public java.lang.Object getSailEntity()
Description copied from interface: IAnnotation
Return the entity that this is an annoation of. Currently this can be a Pod or Rim.

Specified by:
getSailEntity in interface IAnnotation
Returns:

getSource

public java.lang.String getSource()
Description copied from interface: IAnnotation
This is a URI identifying the type of this annotation. The name source came from the EAnnotation object used by EMF. The use of a URI to identify a type is used by: xml namespaces and RDF

Specified by:
getSource in interface IAnnotation
Returns:

setContentType

public void setContentType(java.lang.String contentType)
Specified by:
setContentType in interface IAnnotation

setContents

public void setContents(java.lang.String contents)
Specified by:
setContents in interface IAnnotation

setSailEntity

public void setSailEntity(java.lang.Object entity)
Specified by:
setSailEntity in interface IAnnotation

setSource

public void setSource(java.lang.String source)
Specified by:
setSource in interface IAnnotation


Copyright © 2004-2008 TELS Center. All Rights Reserved.