public class LabeledIDEvent extends LabeledEvent
Constructor and Description |
---|
LabeledIDEvent(EventContentType contentType,
String id,
String label)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkID(String id,
String idName) |
String |
getID()
Returns the document-wide unique ID of the data element represented by this event.
|
getLabel, hasLabel
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
public LabeledIDEvent(EventContentType contentType, String id, String label)
contentType
- the content type of the eventid
- the unique ID associated with the represented data element (Must be a valid
NCName.)label
- a label associated with the represented data element (Maybe null
.)NullPointerException
- if contentType
, topologyType
or id
are null
IllegalArgumentException
- if the specified ID is not a valid
NCName