public class LiteralMetadataEvent extends LabeledIDEvent
LiteralMetadataContentEvent
s.LiteralMetadataContentEvent
,
ResourceMetadataEvent
,
Metadata demo applicationConstructor and Description |
---|
LiteralMetadataEvent(java.lang.String id,
java.lang.String label,
URIOrStringIdentifier predicate,
LiteralContentSequenceType sequenceType) |
LiteralMetadataEvent(java.lang.String id,
java.lang.String label,
URIOrStringIdentifier predicate,
java.lang.String alternativeStringValue,
URIOrStringIdentifier originalType,
LiteralContentSequenceType sequenceType) |
LiteralMetadataEvent(java.lang.String id,
java.lang.String label,
URIOrStringIdentifier predicate,
URIOrStringIdentifier originalType,
LiteralContentSequenceType sequenceType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlternativeStringValue()
Returns the alternative string representation of the literal value modeled by the following
sequence of
LiteralMetadataContentEvent s. |
URIOrStringIdentifier |
getOriginalType() |
URIOrStringIdentifier |
getPredicate() |
LiteralContentSequenceType |
getSequenceType()
Determines which type of sequence of
LiteralMetadataContentEvent s will be nested within this
event. |
boolean |
hasAlternativeStringValue()
Determines whether an alternative string representation is available for the value modeled by the following
sequence of
LiteralMetadataContentEvent s. |
checkID, getID
getLabel, hasLabel
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
public LiteralMetadataEvent(java.lang.String id, java.lang.String label, URIOrStringIdentifier predicate, LiteralContentSequenceType sequenceType)
public LiteralMetadataEvent(java.lang.String id, java.lang.String label, URIOrStringIdentifier predicate, URIOrStringIdentifier originalType, LiteralContentSequenceType sequenceType)
public LiteralMetadataEvent(java.lang.String id, java.lang.String label, URIOrStringIdentifier predicate, java.lang.String alternativeStringValue, URIOrStringIdentifier originalType, LiteralContentSequenceType sequenceType)
public URIOrStringIdentifier getPredicate()
public boolean hasAlternativeStringValue()
LiteralMetadataContentEvent
s.true
if an alternative representation is available or false
otherwisepublic java.lang.String getAlternativeStringValue()
LiteralMetadataContentEvent
s.
Some formats may provide alternative representations of a content, e.g. a human and a machine readable one.
null
if there is nonepublic URIOrStringIdentifier getOriginalType()
public LiteralContentSequenceType getSequenceType()
LiteralMetadataContentEvent
s will be nested within this
event.