public class ResourceMetadataEvent extends LabeledIDEvent
getHRef()
or (if getHRef()
returns null
) be an anonymous
RDF which is formed by the set of upcoming nested metaevents.
This event has the topology type EventTopologyType.START
and other resource and literal metadata event subsequences may
be nested before the according end event. The content type is EventContentType.RESOURCE_META
.
LiteralMetadataEvent
,
Metadata demo applicationConstructor and Description |
---|
ResourceMetadataEvent(java.lang.String id,
java.lang.String label,
URIOrStringIdentifier rel,
java.net.URI hRef,
java.lang.String about)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbout() |
java.net.URI |
getHRef() |
URIOrStringIdentifier |
getRel() |
checkID, getID
getLabel, hasLabel
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
public ResourceMetadataEvent(java.lang.String id, java.lang.String label, URIOrStringIdentifier rel, java.net.URI hRef, java.lang.String about)
id
- 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
.)rel
- the RDF rel URI of this elementhRef
- the RDF hRef URI of this element (Maybe null
.)about
- the content of a specific about attribute to be written on the according XML representation of this element
(Maybe null
.)java.lang.NullPointerException
- if id
or rel
are null
java.lang.IllegalArgumentException
- if the specified ID is not a valid
NCNamepublic URIOrStringIdentifier getRel()
public java.net.URI getHRef()
public java.lang.String getAbout()