public class SetElementEvent extends ConcreteJPhyloIOEvent implements LinkedIDEvent
Besides getLinkedID() this event additionally offers the property getLinkedObjectType(). Although IDs are
document wide unique and therefore the linked ID would already sufficiently determine the type of linked object, the
additional property is offered for convenience.
Note that in contrast to other implementations of LinkedIDEvent, the linked ID may never be null in instances
of this class.
| Constructor and Description |
|---|
SetElementEvent(java.lang.String linkedID,
EventContentType linkedObjectType)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLinkedID()
Returns the ID of the event modeling the member of the set this event is nested in.
|
EventContentType |
getLinkedObjectType()
Returns the type of event that is linked to this set.
|
boolean |
hasLink()
This method is present to fully implement
LinkedIDEvent. |
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, getTypepublic SetElementEvent(java.lang.String linkedID, EventContentType linkedObjectType)
linkedID - the ID of the event to be linked to this setlinkedObjectType - the type of object (event) that is linked by this eventjava.lang.NullPointerException - if linkedID or linkedObjectType is nullpublic java.lang.String getLinkedID()
getLinkedID in interface LinkedIDEventpublic boolean hasLink()
LinkedIDEvent. In instances of this class, it will always return true
since set elements not linking any element are not allowed.hasLink in interface LinkedIDEventtrue in instances of this classpublic EventContentType getLinkedObjectType()
EventContentType.TREE_NETWORK_SET may contain links to trees and networks. This property determines which
object is linked here.