public interface EDAEventTypeStore
Modifier and Type | Method and Description |
---|---|
boolean |
artifactExists(EDAArtifactID artifactID)
Checks whether specified event type or fragment exists in the Event Type Store.
|
java.util.Map<java.lang.String,java.lang.Object> |
extractHeaders(EDAEventTypeID eventTypeID,
java.lang.String content)
Extracts filterable properties and headers from the event content
|
EventType |
getEventType(EDAEventTypeID id) |
java.lang.String |
getLocation() |
java.lang.String |
getSchema(EDAArtifactID artifactID)
Extracts the XSD for the specified event type or fragment.
|
java.util.Collection<EDAArtifactID> |
listAllArtifactIDs(java.lang.String namespace)
Lists the ArtifactIDs names from specified namespace recursively.
|
java.util.Collection<java.lang.String> |
listAllEventTypeFullNames(java.lang.String namespace)
Lists the Event type names from specified namespace recursively.
|
java.util.Collection<EDAArtifactID> |
listArtifactIDs(java.lang.String namespace)
Lists the artifact IDs from specified namespace.
|
java.util.Collection<EDAEventTypeID> |
listEventTypeIDs(java.lang.String namespace)
Lists the event type IDs from specified namespace.
|
java.util.Collection<java.lang.String> |
listNamespaces(java.lang.String namespace)
Lists the children namespaces in the specified namespace.
|
void |
removeSchema(EDAArtifactID artifactID)
Removes an event type or fragment XSD from the Event Type Store.
|
void |
updateSchema(EDAArtifactID artifactID,
java.lang.String schemaContent)
Adds to the Event Type Store or updates the XSD for the specified event type or fragment.
|
void |
validate(EDAEventTypeID eventTypeID,
java.lang.String content)
Validates the provided
content against the XSD schema of the specified event type. |
java.util.Collection<EDAEventTypeID> listEventTypeIDs(java.lang.String namespace) throws EDAEventTypeStoreException
namespace
- desired namespaceEDAEventTypeStoreException
- if the operation failsjava.util.Collection<EDAArtifactID> listArtifactIDs(java.lang.String namespace) throws EDAEventTypeStoreException
namespace
- desired namespaceEDAEventTypeStoreException
- if the operation failsjava.util.Collection<java.lang.String> listAllEventTypeFullNames(java.lang.String namespace) throws EDAEventTypeStoreException
namespace
- desired namespaceEDAEventTypeStoreException
- if the operation failsjava.util.Collection<java.lang.String> listNamespaces(java.lang.String namespace) throws EDAEventTypeStoreException
namespace
- desired namespaceEDAEventTypeStoreException
- if the operation failsjava.lang.String getSchema(EDAArtifactID artifactID) throws EDAEventTypeStoreException
artifactID
- the ID of the event type or fragmentEDAEventTypeStoreException
- if the operation failsvoid updateSchema(EDAArtifactID artifactID, java.lang.String schemaContent) throws EDAEventTypeStoreException
artifactID
- the ID of the event type or fragmentschemaContent
- the String representation of the XSDEDAEventTypeStoreException
- if the operation failsvoid removeSchema(EDAArtifactID artifactID) throws EDAEventTypeStoreException
artifactID
- the ID of the event type or fragmentEDAEventTypeStoreException
- if the operation failsjava.util.Map<java.lang.String,java.lang.Object> extractHeaders(EDAEventTypeID eventTypeID, java.lang.String content) throws EDAEventTypeStoreException
eventTypeID
- the ID of the content's event typecontent
- content of the eventEDAEventTypeStoreException
void validate(EDAEventTypeID eventTypeID, java.lang.String content) throws EDAEventTypeStoreException
content
against the XSD schema of the specified event type. If the validation
fails, an EDAEventTypeStoreException exception is thrown.eventTypeID
- the ID of the content's event typecontent
- content of the eventEDAEventTypeStoreException
- gets thrown if the validation is unsuccessfuljava.util.Collection<EDAArtifactID> listAllArtifactIDs(java.lang.String namespace) throws EDAEventTypeStoreException
namespace
- target namespaceEDAEventTypeStoreException
- if the operation failsboolean artifactExists(EDAArtifactID artifactID)
artifactID
- the ID of the event type or fragmentEventType getEventType(EDAEventTypeID id) throws EDAEventTypeStoreException
id
- - the EDAEventTypeID of the event type object to be createdjava.lang.Exception
EDAEventTypeStoreException
java.lang.String getLocation()