|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OccurrenceIF
PUBLIC: Implemented by objects representing occurrences in the topic map model. An occurrence is a relationship between a topic, and an information resource which is relevant to that topic.
NOTE Comments partly revised only.
| Field Summary | |
|---|---|
static String |
EVENT_ADD_THEME
|
static String |
EVENT_ADDED
|
static String |
EVENT_REMOVE_THEME
|
static String |
EVENT_REMOVED
|
static String |
EVENT_SET_DATATYPE
|
static String |
EVENT_SET_TYPE
|
static String |
EVENT_SET_VALUE
|
| Fields inherited from interface net.ontopia.topicmaps.core.ReifiableIF |
|---|
EVENT_SET_REIFIER |
| Fields inherited from interface net.ontopia.topicmaps.core.TMObjectIF |
|---|
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER |
| Method Summary | |
|---|---|
LocatorIF |
getDataType()
PUBLIC: Gets the data type of this occurrence. |
long |
getLength()
PUBLIC: Returns the length of the occurrence value. |
LocatorIF |
getLocator()
PUBLIC: Returns a LocatorIF representation of the occurrence value. |
Reader |
getReader()
PUBLIC: Returns a Reader that allows you to stream the string representation of this occurrence. |
TopicIF |
getTopic()
PUBLIC: Gets the topic for this occurrence. |
String |
getValue()
PUBLIC: Gets the string representation of this occurrence. |
void |
setLocator(LocatorIF locator)
PUBLIC: Same as setValue(locator.getAddress(),
DataTypes.TYPE_URI). |
void |
setReader(Reader value,
long length,
LocatorIF datatype)
PUBLIC: Sets the value and the data type of this occurrence using a reader. |
void |
setValue(String value)
PUBLIC: Same as setValue(value,
DataTypes.TYPE_STRING). |
void |
setValue(String value,
LocatorIF datatype)
PUBLIC: Sets the value and the data type of this occurrence using a string. |
| Methods inherited from interface net.ontopia.topicmaps.core.ScopedIF |
|---|
addTheme, getScope, removeTheme |
| Methods inherited from interface net.ontopia.topicmaps.core.TypedIF |
|---|
getType, setType |
| Methods inherited from interface net.ontopia.topicmaps.core.ReifiableIF |
|---|
getReifier, setReifier |
| Methods inherited from interface net.ontopia.topicmaps.core.TMObjectIF |
|---|
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier |
| Field Detail |
|---|
static final String EVENT_ADDED
static final String EVENT_REMOVED
static final String EVENT_SET_TYPE
static final String EVENT_SET_VALUE
static final String EVENT_SET_DATATYPE
static final String EVENT_ADD_THEME
static final String EVENT_REMOVE_THEME
| Method Detail |
|---|
TopicIF getTopic()
LocatorIF getDataType()
String getValue()
Reader getReader()
void setValue(String value)
setValue(value,
DataTypes.TYPE_STRING). This method is here primarily for
backwards compatibility.
LocatorIF getLocator()
DataType.TYPE_URI). This method
is here primarily for backwards compatibility.
void setLocator(LocatorIF locator)
setValue(locator.getAddress(),
DataTypes.TYPE_URI). This method is here primarily for
backwards compatibility.
void setValue(String value,
LocatorIF datatype)
void setReader(Reader value,
long length,
LocatorIF datatype)
long getLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||