net.sf.sail.core.entity
Interface IAnnotation

All Known Implementing Classes:
MemoryAnnotation

public interface IAnnotation

This interface is modeled after the EAnnotation class from EMF.

Author:
scott

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)
           
 

Method Detail

getSource

java.lang.String getSource()
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

Returns:

setSource

void setSource(java.lang.String source)

getContentType

java.lang.String getContentType()
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,

Returns:

setContentType

void setContentType(java.lang.String contentType)

getContents

java.lang.String getContents()
The actual content of the annotation.

Returns:

setContents

void setContents(java.lang.String contents)

getSailEntity

java.lang.Object getSailEntity()
Return the entity that this is an annoation of. Currently this can be a Pod or Rim.

Returns:

setSailEntity

void setSailEntity(java.lang.Object entity)


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