public class SnapshotTopic extends SnapshotTMObject implements TopicIF
Modifier and Type | Field and Description |
---|---|
protected Collection<TopicNameIF> |
basenames |
protected Collection<OccurrenceIF> |
occurrences |
protected ReifiableIF |
reified |
protected Collection<LocatorIF> |
subinds |
protected Collection<LocatorIF> |
sublocs |
protected Collection<TopicIF> |
types |
objectId, SNAPSHOT_COMPLETE, SNAPSHOT_REFERENCE, snapshotType, srclocs
EVENT_ADD_OCCURRENCE, EVENT_ADD_SUBJECTIDENTIFIER, EVENT_ADD_SUBJECTLOCATOR, EVENT_ADD_TOPICNAME, EVENT_ADD_TYPE, EVENT_ADDED, EVENT_MODIFIED, EVENT_REMOVE_OCCURRENCE, EVENT_REMOVE_SUBJECTIDENTIFIER, EVENT_REMOVE_SUBJECTLOCATOR, EVENT_REMOVE_TOPICNAME, EVENT_REMOVE_TYPE, EVENT_REMOVED
EVENT_ADD_ITEMIDENTIFIER, EVENT_REMOVE_ITEMIDENTIFIER, MSG_NULL_ARGUMENT
Modifier and Type | Method and Description |
---|---|
void |
addSubjectIdentifier(LocatorIF locator)
PUBLIC: Adds the given subject identifier to the set of subject identifiers
for this topic.
|
void |
addSubjectLocator(LocatorIF subject_locator)
PUBLIC: Adds the given subject locator to the set of subject locators
for this topic.
|
void |
addType(TopicIF type)
PUBLIC: Adds a type to this topic.
|
Collection<AssociationIF> |
getAssociations()
PUBLIC: Gets the associations that have roles played by this topic.
|
Collection<AssociationIF> |
getAssociationsByType(TopicIF type)
PUBLIC: Gets the associations that have roles played by this topic,
where the association is of specified type.
|
Collection<OccurrenceIF> |
getOccurrences()
PUBLIC: Gets the occurrences of this topic.
|
Collection<OccurrenceIF> |
getOccurrencesByType(TopicIF type)
PUBLIC: Gets the occurrences of this topic with a specified type.
|
ReifiableIF |
getReified()
PUBLIC: Returns the topic map object that this topic reifies.
|
Collection<AssociationRoleIF> |
getRoles()
PUBLIC: Gets the association roles played by this topic.
|
Collection<AssociationRoleIF> |
getRolesByType(TopicIF rtype)
PUBLIC: Gets the association roles of the specifed type played
by this topic.
|
Collection<AssociationRoleIF> |
getRolesByType(TopicIF rtype,
TopicIF atype)
PUBLIC: Gets the association roles of the specifed type played
by this topic.
|
Collection<LocatorIF> |
getSubjectIdentifiers()
PUBLIC: Gets the subject identitifers of this topic.
|
Collection<LocatorIF> |
getSubjectLocators()
PUBLIC: Gets the subject locators of this topic.
|
Collection<TopicNameIF> |
getTopicNames()
PUBLIC: Gets the names of this topic.
|
Collection<TopicNameIF> |
getTopicNamesByType(TopicIF type)
PUBLIC: Gets the topic names of this topic with a specified type.
|
Collection<TopicIF> |
getTypes()
PUBLIC: Gets the types that this topic is an instance of.
|
static TopicIF |
makeSnapshot(TopicIF original,
int snapshotType,
Map<TMObjectIF,SnapshotTMObject> processed) |
void |
merge(TopicIF topic)
EXPERIMENTAL: Merges the characteristics of one topic into
another topic.
|
void |
removeSubjectIdentifier(LocatorIF loc)
PUBLIC: Removes the given subject identifier from the set of
subject identifiers for this topic.
|
void |
removeSubjectLocator(LocatorIF subject_locator)
PUBLIC: Removes the given subject locator from the set of
subject locators for this topic.
|
void |
removeType(TopicIF type)
PUBLIC: Removes a type from this topic.
|
String |
toString() |
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemIdentifier, getItemIdentifiers, getObjectId, getTopicMap, isReadOnly, remove, removeItemIdentifier
protected ReifiableIF reified
protected Collection<LocatorIF> sublocs
protected Collection<LocatorIF> subinds
protected Collection<TopicNameIF> basenames
protected Collection<OccurrenceIF> occurrences
protected Collection<TopicIF> types
public static TopicIF makeSnapshot(TopicIF original, int snapshotType, Map<TMObjectIF,SnapshotTMObject> processed)
public Collection<LocatorIF> getSubjectLocators()
TopicIF
getSubjectLocators
in interface TopicIF
public void addSubjectLocator(LocatorIF subject_locator) throws ConstraintViolationException
TopicIF
addSubjectLocator
in interface TopicIF
subject_locator
- A locator for the subject locator to be added;
an object implementing LocatorIF.ConstraintViolationException
- Thrown if the topic map
already has a topic with this subject locator.public void removeSubjectLocator(LocatorIF subject_locator)
TopicIF
removeSubjectLocator
in interface TopicIF
subject_locator
- A locator for the subject locator to be removed;
an object implementing LocatorIF.public Collection<LocatorIF> getSubjectIdentifiers()
TopicIF
getSubjectIdentifiers
in interface TopicIF
public void addSubjectIdentifier(LocatorIF locator) throws ConstraintViolationException
TopicIF
addSubjectIdentifier
in interface TopicIF
locator
- A locator for the subject identifier to be added;
an object implementing LocatorIF.ConstraintViolationException
- Thrown if the topic map
already has a topic with this addressable subject.public void removeSubjectIdentifier(LocatorIF loc)
TopicIF
removeSubjectIdentifier
in interface TopicIF
loc
- A locator for the subject identifier to be removed;
an object implementing LocatorIF.public Collection<TopicIF> getTypes()
TopicIF
public void addType(TopicIF type)
TopicIF
public void removeType(TopicIF type)
TopicIF
removeType
in interface TopicIF
type
- The type to be removed; an object implementing TopicIF.public Collection<TopicNameIF> getTopicNames()
TopicIF
getTopicNames
in interface TopicIF
public Collection<TopicNameIF> getTopicNamesByType(TopicIF type)
TopicIF
getTopicNamesByType
in interface TopicIF
public Collection<OccurrenceIF> getOccurrences()
TopicIF
getOccurrences
in interface TopicIF
public Collection<OccurrenceIF> getOccurrencesByType(TopicIF type)
TopicIF
getOccurrencesByType
in interface TopicIF
public Collection<AssociationRoleIF> getRoles()
TopicIF
public Collection<AssociationRoleIF> getRolesByType(TopicIF rtype)
TopicIF
getRolesByType
in interface TopicIF
public Collection<AssociationRoleIF> getRolesByType(TopicIF rtype, TopicIF atype)
TopicIF
getRolesByType
in interface TopicIF
public Collection<AssociationIF> getAssociations()
TopicIF
getAssociations
in interface TopicIF
public Collection<AssociationIF> getAssociationsByType(TopicIF type)
TopicIF
getAssociationsByType
in interface TopicIF
public void merge(TopicIF topic)
TopicIF
public ReifiableIF getReified()
TopicIF
getReified
in interface TopicIF