biz.c24.io.api.data
Class AnnotationItem

java.lang.Object
  extended by biz.c24.io.api.data.AnnotationItem
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AppInfo, Documentation

public abstract class AnnotationItem
extends Object
implements Serializable

An immutable item used to annotate data models.

Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.

See Also:
Serialized Form

Constructor Summary
AnnotationItem(String text, String source)
          Constructs a new instance with specified values.
 
Method Summary
 String getSource()
          Returns the source.
 String getText()
          Returns the textual content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationItem

public AnnotationItem(String text,
                      String source)
Constructs a new instance with specified values. Either argument can be null but not at the same time.

Parameters:
text - The textual content or null.
source - The source or null.
Throws:
NullPointerException - if text and source are both null.
Method Detail

getText

public String getText()
Returns the textual content. This method may return null, in this case the result of getSource() will not be null .

Returns:
the textual content or null if none was specified.

getSource

public String getSource()
Returns the source. This method may return null, in this case the result of getText() will not be null .

Returns:
the source or null if none was specified.


C24 Technologies © 2002-2012: All Rights Reserved.