public class LinkedLabeledIDEvent extends LabeledIDEvent implements LinkedIDEvent
Constructor and Description |
---|
LinkedLabeledIDEvent(EventContentType contentType,
java.lang.String id,
java.lang.String label,
java.lang.String linkedID)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLinkedID()
Returns the ID of a data element, linked to the element modeled by this event.
|
boolean |
hasLink()
Indicates whether this event links another data element.
|
checkID, getID
getLabel, hasLabel
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, getType
public LinkedLabeledIDEvent(EventContentType contentType, java.lang.String id, java.lang.String label, java.lang.String linkedID)
contentType
- the content type of the modeled data element (e.g.
EventContentType.OTU
or EventContentType.SEQUENCE
)id
- the unique ID associated with the represented data element (Must be a valid
NCName.)label
- the label of the modeled data element (Maybe null
, if no label is present.)linkedID
- the ID if a linked data element (Maybe null
, if none is linked.)java.lang.NullPointerException
- if contentType
or id
are null
java.lang.IllegalArgumentException
- if id
or otuID
are not valid
NCNamespublic java.lang.String getLinkedID()
getLinkedID
in interface LinkedIDEvent
null
if this object does not have an associated data elementpublic boolean hasLink()
hasLink
in interface LinkedIDEvent
true
if an ID is present, false
otherwise