Services

Hawk

The following service operations expose the capabilities of the Hawk heterogeneous model indexing framework.

Hawk.createInstance

Creates a new Hawk instance (stopped).

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe unique name of the new Hawk instance.
backendstringThe name of the backend to be used, as returned by listBackends().
minimumDelayMillisi32Minimum delay between periodic synchronization in milliseconds.
maximumDelayMillisi32Maximum delay between periodic synchronization in milliseconds (0 to disable periodic synchronization).
enabledPlugins (optional)listList of plugins to be enabled: if not set, all plugins are enabled.

Hawk.listBackends

Lists the names of the available storage backends.

Returns list<string>. Does not take any parameters.

Hawk.listPlugins

Lists all the Hawk plugins that can be enabled or disabled: metamodel parsers, model parsers and graph change listeners.

Returns list<string>. Does not take any parameters.

Hawk.listInstances

Lists the details of all Hawk instances.

Returns list<HawkInstance>. Does not take any parameters.

Hawk.removeInstance

Removes an existing Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance to remove.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.

Hawk.startInstance

Starts a stopped Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance to start.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.

Hawk.stopInstance

Stops a running Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance to stop.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.syncInstance

Forces an immediate synchronization on a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance to stop.
blockUntilDone (optional)boolIf true, blocks the call until the synchronisation completes. False by default.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.registerMetamodels

Registers a set of file-based metamodels with a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
metamodellistThe metamodels to register. More than one metamodel file can be provided in one request, to accomodate fragmented metamodels.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
InvalidMetamodelThe provided metamodel is not valid (e.g. unparsable or inconsistent).
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.unregisterMetamodels

Unregisters a metamodel from a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
metamodellistThe URIs of the metamodels.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.listMetamodels

Lists the URIs of the registered metamodels of a Hawk instance.

Returns list<string>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.listQueryLanguages

Lists the supported query languages and their status.

Returns list<string>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.

Hawk.query

Runs a query on a Hawk instance and returns a sequence of scalar values and/or model elements.

Returns QueryResult. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
querystringThe query to be executed.
languagestringThe name of the query language used (e.g. EOL, OCL).
optionsHawkQueryOptionsOptions for the query.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.
UnknownQueryLanguageThe specified query language is not supported by the operation.
InvalidQueryThe specified query is not valid.
FailedQueryThe specified query failed to complete its execution.

Hawk.resolveProxies

Returns populated model elements for the provided proxies.

Returns list<ModelElement>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
idslistProxy model element IDs to be resolved.
optionsHawkQueryOptionsOptions for the query.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.addRepository

Asks a Hawk instance to start monitoring a repository.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
repoRepositoryThe repository to monitor.
credentials (optional)CredentialsA valid set of credentials that has read-access to the repository.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.
UnknownRepositoryTypeThe specified repository type is not supported by the operation.
VCSAuthenticationFailedThe client failed to prove its identity in the VCS.

Hawk.isFrozen

Returns true if a repository is frozen, false otherwise.

Returns bool. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
uristringThe URI of the repository to query.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.setFrozen

Changes the ‘frozen’ state of a repository.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
uristringThe URI of the repository to be changed.
isFrozenboolWhether the repository should be frozen (true) or not (false).

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.removeRepository

Asks a Hawk instance to stop monitoring a repository and remove its elements from the graph.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
uristringThe URI of the repository to stop monitoring.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.updateRepositoryCredentials

Changes the credentials used to monitor a repository.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
uristringThe URI of the repository to update.
credCredentialsThe new credentials to be used.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.listRepositories

Lists the repositories monitored by a Hawk instance.

Returns list<Repository>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.listRepositoryTypes

Lists the available repository types in this installation.

Returns list<string>. Does not take any parameters.

Hawk.listFiles

Lists the paths of the files of the indexed repository.

Returns list<string>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
repositorylistThe URI of the indexed repository.
filePatternslistFile name patterns to search for (* lists all files).

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.configurePolling

Sets the base polling period and max interval of a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
basei32The base polling period (in seconds).
maxi32The maximum polling interval (in seconds).

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.
InvalidPollingConfigurationThe polling configuration is not valid.

Hawk.addDerivedAttribute

Add a new derived attribute to a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
specDerivedAttributeSpecThe details of the new derived attribute.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.
InvalidDerivedAttributeSpecThe derived attribute specification is not valid.

Hawk.removeDerivedAttribute

Remove a derived attribute from a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
specDerivedAttributeSpecThe details of the derived attribute to be removed. Only the first three fields of the spec need to be populated.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.listDerivedAttributes

Lists the derived attributes of a Hawk instance. Only the first three fields of the spec are currently populated.

Returns list<DerivedAttributeSpec>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.addIndexedAttribute

Add a new indexed attribute to a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
specIndexedAttributeSpecThe details of the new indexed attribute.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.
InvalidIndexedAttributeSpecThe indexed attribute specification is not valid.

Hawk.removeIndexedAttribute

Remove a indexed attribute from a Hawk instance.

Returns void. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
specIndexedAttributeSpecThe details of the indexed attribute to be removed.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.listIndexedAttributes

Lists the indexed attributes of a Hawk instance.

Returns list<IndexedAttributeSpec>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.getModel

Returns the contents of one or more models indexed in a Hawk instance. Cross-model references are also resolved, and contained objects are always sent.

Returns list<ModelElement>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
optionsHawkQueryOptionsOptions to limit the contents to be sent.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.getRootElements

Returns the root objects of one or more models indexed in a Hawk instance. Node IDs are always sent, and contained objects are never sent.

Returns list<ModelElement>. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
optionsHawkQueryOptionsOptions to limit the contents to be sent.

Hawk.watchStateChanges

Returns subscription details to a queue of HawkStateEvents with notifications about changes in the indexer's state.

Returns Subscription. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

Hawk.watchModelChanges

Returns subscription details to a queue of HawkChangeEvents with notifications about changes to a set of indexed models.

Returns Subscription. Takes these parameters:

NameTypeDocumentation
namestringThe name of the Hawk instance.
repositoryUristringThe URI of the repository in which the model is contained.
filePathlistThe pattern(s) for the model file(s) in the repository.
clientIDstringUnique client ID (used as suffix for the queue name).
durableEventsSubscriptionDurabilityDurability of the subscription.

May throw these exceptions:

NameDocumentation
HawkInstanceNotFoundNo Hawk instance exists with that name.
HawkInstanceNotRunningThe selected Hawk instance is not running.

IFCExport

IFC export facility for getting IFC models from the Hawk server.

IFCExport.exportAsSTEP

Export part of a Hawk index in IFC STEP format.

Returns IFCExportJob. Takes these parameters:

NameTypeDocumentation
hawkInstancestring
optionsIFCExportOptions

IFCExport.getJobs

List all the previously scheduled IFC export jobs.

Returns list<IFCExportJob>. Does not take any parameters.

IFCExport.getJobStatus

Retrieve the current status of the job with the specified ID.

Returns IFCExportJob. Takes these parameters:

NameTypeDocumentation
jobIDstring

IFCExport.killJob

Cancel the job with the specified ID.

Returns bool. Takes these parameters:

NameTypeDocumentation
jobIDstring

Users

The majority of service operations provided by the server require user authentication (indicated in the top-left cell of each operation table) to prevent unaccountable use. As such, the platform needs to provide basic user management service operations for creating, updating and deleting user accounts. When handling passwords, only SSL should be used, as otherwise they could be intercepted.

Users.createUser

Creates a new platform user.

Returns void. Takes these parameters:

NameTypeDocumentation
usernamestringA unique identifier for the user.
passwordstringThe desired password.
profileUserProfileThe profile of the user.

May throw these exceptions:

NameDocumentation
UserExistsThe specified username already exists.

Users.updateProfile

Updates the profile of a platform user.

Returns void. Takes these parameters:

NameTypeDocumentation
usernamestringThe name of the user to update the profile of.
profileUserProfileThe updated profile of the user.

May throw these exceptions:

NameDocumentation
UserNotFoundThe specified username does not exist.

Users.updatePassword

Updates the password of a platform user.

Returns void. Takes these parameters:

NameTypeDocumentation
usernamestringThe name of the user to update the profile of.
newPasswordstringNew password to be set.

May throw these exceptions:

NameDocumentation
UserNotFoundThe specified username does not exist.

Users.deleteUser

Deletes a platform user.

Returns void. Takes these parameters:

NameTypeDocumentation
usernamestringThe name of the user to delete.

May throw these exceptions:

NameDocumentation
UserNotFoundThe specified username does not exist.

Entities

AttributeSlot

Represents a slot that can store the value(s) of an attribute of a model element.

Inherits from: Slot.

NameTypeDocumentation
name (inherited)stringThe name of the model element property the value of which is stored in this slot.
value (optional)SlotValueValue of the slot (if set).

Used in: ModelElement.

CommitItem

Simplified entry within a commit of a repository.

NameTypeDocumentation
pathstringPath within the repository, using / as separator.
repoURLstringURL of the repository.
revisionstringUnique identifier of the revision of the repository.
typeCommitItemChangeTypeType of change within the commit.

Used in: HawkModelElementAdditionEvent, HawkModelElementRemovalEvent, HawkAttributeUpdateEvent, HawkAttributeRemovalEvent, HawkReferenceAdditionEvent, HawkReferenceRemovalEvent, HawkFileAdditionEvent, HawkFileRemovalEvent.

ContainerSlot

Represents a slot that can store other model elements within a model element.

Inherits from: Slot.

NameTypeDocumentation
elementslistContained elements for this slot.
name (inherited)stringThe name of the model element property the value of which is stored in this slot.

Used in: ModelElement.

Credentials

Credentials of the client in the target VCS.

NameTypeDocumentation
passwordstringPassword for logging into the VCS.
usernamestringUsername for logging into the VCS.

Used in: Hawk.addRepository, Hawk.updateRepositoryCredentials.

DerivedAttributeSpec

Used to configure Hawk's derived attributes (discussed in D5.3).

NameTypeDocumentation
attributeNamestringThe name of the derived attribute.
attributeType (optional)stringThe (primitive) type of the derived attribute.
derivationLanguage (optional)stringThe language used to express the derivation logic.
derivationLogic (optional)stringAn executable expression of the derivation logic in the language above.
isMany (optional)boolThe multiplicity of the derived attribute.
isOrdered (optional)boolA flag specifying whether the order of the values of the derived attribute is significant (only makes sense when isMany=true).
isUnique (optional)boolA flag specifying whether the the values of the derived attribute are unique (only makes sense when isMany=true).
metamodelUristringThe URI of the metamodel to which the derived attribute belongs.
typeNamestringThe name of the type to which the derived attribute belongs.

Used in: Hawk.addDerivedAttribute, Hawk.removeDerivedAttribute, Hawk.listDerivedAttributes.

EffectiveMetamodel

Representation of a set of rules for either including or excluding certain types and/or slots within a metamodel.

NameTypeDocumentation
slotssetSlots within the type that should be included or excluded: empty means ‘all slots’.
typestringType that should be included or excluded.

Used in: EffectiveMetamodelMap.

EffectiveMetamodelMap

Representation of a set of rules for either including or excluding metamodels, types or slots.

NameTypeDocumentation
metamodelmap<string,set>Types and slots within the metamodel that should be included or excluded: empty means ‘all types and slots’.
uristringNamespace URI of the metamodel.

Used in: HawkQueryOptions, IFCExportOptions.

File

A file to be sent through the network.

NameTypeDocumentation
contentsbinarySequence of bytes with the contents of the file.
namestringName of the file.

Used in: Hawk.registerMetamodels.

HawkAttributeRemovalEvent

Serialized form of an attribute removal event.

NameTypeDocumentation
attributestringName of the attribute that was removed.
idstringIdentifier of the model element that was changed.
vcsItemCommitItemEntry within the commit that produced the changes.

Used in: HawkChangeEvent.

HawkAttributeUpdateEvent

Serialized form of an attribute update event.

NameTypeDocumentation
attributestringName of the attribute that was changed.
idstringIdentifier of the model element that was changed.
valueSlotValueNew value for the attribute.
vcsItemCommitItemEntry within the commit that produced the changes.

Used in: HawkChangeEvent.

HawkChangeEvent

Serialized form of a change in the indexed models of a Hawk instance.

NameTypeDocumentation
fileAdditionHawkFileAdditionEventA file was added.
fileRemovalHawkFileRemovalEventA file was removed.
modelElementAdditionHawkModelElementAdditionEventA model element was added.
modelElementAttributeRemovalHawkAttributeRemovalEventAn attribute was removed.
modelElementAttributeUpdateHawkAttributeUpdateEventAn attribute was updated.
modelElementRemovalHawkModelElementRemovalEventA model element was removed.
referenceAdditionHawkReferenceAdditionEventA reference was added.
referenceRemovalHawkReferenceRemovalEventA reference was removed.
syncEndHawkSynchronizationEndEventSynchronization ended.
syncStartHawkSynchronizationStartEventSynchronization started.

HawkFileAdditionEvent

Serialized form of a file addition event.

NameTypeDocumentation
vcsItemCommitItemReference to file that was added, including VCS metadata.

Used in: HawkChangeEvent.

HawkFileRemovalEvent

A file was removed.

NameTypeDocumentation
vcsItemCommitItemReference to file that was removed, including VCS metadata.

Used in: HawkChangeEvent.

HawkInstance

Status of a Hawk instance.

NameTypeDocumentation
messagestringLast info message from the instance.
namestringThe name of the instance.
stateHawkStateCurrent state of the instance.

Used in: Hawk.listInstances.

HawkModelElementAdditionEvent

Serialized form of a model element addition event.

NameTypeDocumentation
idstringIdentifier of the model element that was added.
metamodelURIstringMetamodel URI of the type of the model element.
typeNamestringName of the type of the model element.
vcsItemCommitItemEntry within the commit that produced the changes.

Used in: HawkChangeEvent.

HawkModelElementRemovalEvent

Serialized form of a model element removal event.

NameTypeDocumentation
idstringIdentifier of the model element that was removed.
vcsItemCommitItemEntry within the commit that produced the changes.

Used in: HawkChangeEvent.

HawkQueryOptions

Options for a Hawk query.

NameTypeDocumentation
defaultNamespaces (optional)stringThe default namespaces to be used to resolve ambiguous unqualified types.
effectiveMetamodelExcludes (optional)map<string,map<string,set>>If set and not empty, the mentioned metamodels, types and features will not be fetched. The string ‘*’ can be used to refer to all types within a metamodel or all fields within a type.
effectiveMetamodelIncludes (optional)map<string,map<string,set>>If set and not empty, only the specified metamodels, types and features will be fetched. Otherwise, everything that is not excluded will be fetched. The string ‘*’ can be used to refer to all types within a metamodel or all fields within a type.
filePatterns (optional)listThe file patterns for the query (e.g. *.uml).
includeAttributes (optional)boolWhether to include attributes (true) or not (false) in model element results.
includeContained (optional)boolWhether to include all the child elements of the model element results (true) or not (false).
includeDerived (optional)boolWhether to include derived attributes (true) or not (false) in model element results.
includeNodeIDs (optional)boolWhether to include node IDs (true) or not (false) in model element results.
includeReferences (optional)boolWhether to include references (true) or not (false) in model element results.
repositoryPattern (optional)stringThe repository for the query (or * for all repositories).

Used in: Hawk.query, Hawk.resolveProxies, Hawk.getModel, Hawk.getRootElements.

HawkReferenceAdditionEvent

Serialized form of a reference addition event.

NameTypeDocumentation
refNamestringName of the reference that was added.
sourceIdstringIdentifier of the source model element.
targetIdstringIdentifier of the target model element.
vcsItemCommitItemEntry within the commit that produced the changes.

Used in: HawkChangeEvent.

HawkReferenceRemovalEvent

Serialized form of a reference removal event.

NameTypeDocumentation
refNamestringName of the reference that was removed.
sourceIdstringIdentifier of the source model element.
targetIdstringIdentifier of the target model element.
vcsItemCommitItemEntry within the commit that produced the changes.

Used in: HawkChangeEvent.

HawkStateEvent

Serialized form of a change in the state of a Hawk instance.

NameTypeDocumentation
messagestringShort message about the current status of the server.
stateHawkStateState of the Hawk instance.
timestampi64Timestamp for this state change.

HawkSynchronizationEndEvent

Serialized form of a sync end event.

NameTypeDocumentation
timestampNanosi64Local timestamp, measured in nanoseconds. Only meant to be used to compute synchronization cost.

Used in: HawkChangeEvent.

HawkSynchronizationStartEvent

Serialized form of a sync start event.

NameTypeDocumentation
timestampNanosi64Local timestamp, measured in nanoseconds. Only meant to be used to compute synchronization cost.

Used in: HawkChangeEvent.

IFCExportJob

Information about a server-side IFC export job.

NameTypeDocumentation
jobIDstring
messagestring
statusIFCExportStatus

Used in: IFCExport.exportAsSTEP, IFCExport.getJobs, IFCExport.getJobStatus.

IFCExportOptions

Options for a server-side IFC export.

NameTypeDocumentation
excludeRules (optional)map<string,map<string,set>>If set and not empty, the mentioned metamodels, types and features will not be fetched. The string ‘*’ can be used to refer to all types within a metamodel or all fields within a type.
filePatterns (optional)listThe file patterns for the query (e.g. *.uml).
includeRules (optional)map<string,map<string,set>>If set and not empty, only the specified metamodels, types and features will be fetched. Otherwise, everything that is not excluded will be fetched. The string ‘*’ can be used to refer to all types within a metamodel or all fields within a type.
repositoryPattern (optional)stringThe repository for the query (or * for all repositories).

Used in: IFCExport.exportAsSTEP.

IndexedAttributeSpec

Used to configure Hawk's indexed attributes (discussed in D5.3).

NameTypeDocumentation
attributeNamestringThe name of the indexed attribute.
metamodelUristringThe URI of the metamodel to which the indexed attribute belongs.
typeNamestringThe name of the type to which the indexed attribute belongs.

Used in: Hawk.addIndexedAttribute, Hawk.removeIndexedAttribute, Hawk.listIndexedAttributes.

InvalidModelSpec

The model specification is not valid: the model or the metamodels are inaccessible or invalid.

NameTypeDocumentation
reasonstringReason for the spec not being valid.
specModelSpecA copy of the invalid model specification.

InvalidTransformation

The transformation is not valid: it is unparsable or inconsistent.

NameTypeDocumentation
locationstringLocation of the problem, if applicable. Usually a combination of line and column numbers.
reasonstringReason for the transformation not being valid.

MixedReference

Represents a reference to a model element: it can be an identifier or a position. Only used when the same ReferenceSlot has both identifier-based and position-based references. This may be the case if we are retrieving a subset of the model which has references between its elements and with elements outside the subset at the same time.

NameTypeDocumentation
idstringIdentifier-based reference to a model element.
positioni32Position-based reference to a model element.

Used in: ReferenceSlot.

ModelElement

Represents a model element.

NameTypeDocumentation
attributes (optional)listSlots holding the values of the model element's attributes, if any have been set.
containers (optional)listSlots holding contained model elements, if any have been set.
file (optional)stringName of the file to which the element belongs (not set if equal to that of the previous model element).
id (optional)stringUnique ID of the model element (not set if using position-based references).
metamodelUri (optional)stringURI of the metamodel to which the type of the element belongs (not set if equal to that of the previous model element).
references (optional)listSlots holding the values of the model element's references, if any have been set.
repositoryURL (optional)stringURI of the repository to which the element belongs (not set if equal to that of the previous model element).
typeName (optional)stringName of the type that the model element is an instance of (not set if equal to that of the previous model element).

Used in: Hawk.resolveProxies, Hawk.getModel, Hawk.getRootElements, ContainerSlot, QueryResult.

ModelElementType

Represents a type of model element.

NameTypeDocumentation
attributes (optional)listMetadata for the attribute slots.
idstringUnique ID of the model element type.
metamodelUristringURI of the metamodel to which the type belongs.
references (optional)listMetadata for the reference slots.
typeNamestringName of the type.

Used in: QueryResult.

ModelSpec

Captures information about source/target models of ATL transformations.

NameTypeDocumentation
metamodelUrislistThe URIs of the metamodels to which elements of the model conform.
uristringThe URI from which the model will be loaded or to which it will be persisted.

Used in: InvalidModelSpec.

QueryResult

Union type for a scalar value, a reference to a model element, a heterogeneous list or a string/value map. Query results may return all types of results, so we need to stay flexible.

Inherits from: Value.

NameTypeDocumentation
vBoolean (inherited)boolBoolean (true/false) value.
vByte (inherited)byte8-bit signed integer value.
vDouble (inherited)double64-bit floating point value.
vInteger (inherited)i3232-bit signed integer value.
vListlistNested list of query results.
vLong (inherited)i6464-bit signed integer value.
vMapmap<string,QueryResult>Map between query results.
vModelElementModelElementEncoded model element.
vModelElementTypeModelElementTypeEncoded model element type.
vShort (inherited)i1616-bit signed integer value.
vString (inherited)stringSequence of UTF8 characters.

Used in: Hawk.query, QueryResult, QueryResultMap.

QueryResultMap

NameTypeDocumentation
namestring
valueQueryResult

Used in: QueryResult.

ReferenceSlot

Represents a slot that can store the value(s) of a reference of a model element. References can be expressed as positions within a result tree (using pre-order traversal) or IDs. id, ids, position, positions and mixed are all mutually exclusive. At least one position or one ID must be given.

Inherits from: Slot.

NameTypeDocumentation
id (optional)stringUnique identifier of the referenced element (if there is only one ID based reference in this slot).
ids (optional)listUnique identifiers of the referenced elements (if more than one).
mixed (optional)listMix of identifier- and position-bsaed references (if there is at least one position and one ID).
name (inherited)stringThe name of the model element property the value of which is stored in this slot.
position (optional)i32Position of the referenced element (if there is only one position-based reference in this slot).
positions (optional)listPositions of the referenced elements (if more than one).

Used in: ModelElement.

Repository

Entity that represents a model repository.

NameTypeDocumentation
isFrozen (optional)boolTrue if the repository is frozen, false otherwise.
typestringThe type of repository.
uristringThe URI to the repository.

Used in: Hawk.addRepository, Hawk.listRepositories.

Slot

Represents a slot that can store the value(s) of a property of a model element.

Inherited by: AttributeSlot, ReferenceSlot, ContainerSlot.

NameTypeDocumentation
namestringThe name of the model element property the value of which is stored in this slot.

SlotMetadata

Represents the metadata of a slot in a model element type.

NameTypeDocumentation
isManyboolTrue if this slot holds a collection of values instead of a single value.
isOrderedboolTrue if the values in this slot are ordered.
isUniqueboolTrue if the value of this slot must be unique within its containing model.
namestringThe name of the model element property that is stored in this slot.
typestringThe type of the values in this slot.

Used in: ModelElementType.

SlotValue

Union type for a single scalar value or a homogeneous collection of scalar values.

Inherits from: Value.

NameTypeDocumentation
vBoolean (inherited)boolBoolean (true/false) value.
vBooleanslistList of true/false values.
vByte (inherited)byte8-bit signed integer value.
vBytesbinaryList of 8-bit signed integers.
vDouble (inherited)double64-bit floating point value.
vDoubleslistList of 64-bit floating point values.
vInteger (inherited)i3232-bit signed integer value.
vIntegerslistList of 32-bit signed integers.
vLong (inherited)i6464-bit signed integer value.
vLongslistList of 64-bit signed integers.
vShort (inherited)i1616-bit signed integer value.
vShortslistList of 16-bit signed integers.
vString (inherited)stringSequence of UTF8 characters.
vStringslistList of sequences of UTF8 characters.

Used in: HawkAttributeUpdateEvent, AttributeSlot.

Subscription

Details about a subscription to a topic queue.

NameTypeDocumentation
hoststringHost name of the message queue server.
porti32Port in which the message queue server is listening.
queueAddressstringAddress of the topic queue.
queueNamestringName of the topic queue.
sslRequiredboolWhether SSL is required or not.

Used in: Hawk.watchStateChanges, Hawk.watchModelChanges.

UserProfile

Minimal details about registered users.

NameTypeDocumentation
adminboolWhether the user has admin rights (i.e. so that they can create new users, change the status of admin users etc).
realNamestringThe real name of the user.

Used in: Users.createUser, Users.updateProfile.

Value

Union type for a single scalar value.

Inherited by: QueryResult, SlotValue.

NameTypeDocumentation
vBooleanboolBoolean (true/false) value.
vBytebyte8-bit signed integer value.
vDoubledouble64-bit floating point value.
vIntegeri3232-bit signed integer value.
vLongi6464-bit signed integer value.
vShorti1616-bit signed integer value.
vStringstringSequence of UTF8 characters.

Enumerations

CommitItemChangeType

Type of change within a commit.

NameDocumentation
ADDEDFile was added.
DELETEDFile was removed.
REPLACEDFile was removed.
UNKNOWNUnknown type of change.
UPDATEDFile was updated.

HawkState

One of the states that a Hawk instance can be in.

NameDocumentation
RUNNINGThe instance is running and monitoring the indexed locations.
STOPPEDThe instance is stopped and is not monitoring any indexed locations.
UPDATINGThe instance is updating its contents from the indexed locations.

IFCExportStatus

Status of a server-side IFC export job.

NameDocumentation
CANCELLEDThe job has been cancelled.
DONEThe job is completed.
FAILEDThe job has failed.
RUNNINGThe job is currently running.
SCHEDULEDThe job has been scheduled but has not started yet.

SubscriptionDurability

Durability of a subscription.

NameDocumentation
DEFAULTSubscription survives client disconnections but not server restarts.
DURABLESubscription survives client disconnections and server restarts.
TEMPORARYSubscription removed after disconnecting.

Exceptions

FailedQuery

The specified query failed to complete its execution.

NameTypeDocumentation
reasonstringReason for the query failing to complete its execution.

Used in: Hawk.query.

HawkInstanceNotFound

No Hawk instance exists with that name.

No fields for this entity.

Used in: Hawk.removeInstance, Hawk.startInstance, Hawk.stopInstance, Hawk.syncInstance, Hawk.registerMetamodels, Hawk.unregisterMetamodels, Hawk.listMetamodels, Hawk.query, Hawk.resolveProxies, Hawk.addRepository, Hawk.isFrozen, Hawk.setFrozen, Hawk.removeRepository, Hawk.updateRepositoryCredentials, Hawk.listRepositories, Hawk.listFiles, Hawk.configurePolling, Hawk.addDerivedAttribute, Hawk.removeDerivedAttribute, Hawk.listDerivedAttributes, Hawk.addIndexedAttribute, Hawk.removeIndexedAttribute, Hawk.listIndexedAttributes, Hawk.getModel, Hawk.watchStateChanges, Hawk.watchModelChanges.

HawkInstanceNotRunning

The selected Hawk instance is not running.

No fields for this entity.

Used in: Hawk.stopInstance, Hawk.syncInstance, Hawk.registerMetamodels, Hawk.unregisterMetamodels, Hawk.listMetamodels, Hawk.query, Hawk.resolveProxies, Hawk.addRepository, Hawk.isFrozen, Hawk.setFrozen, Hawk.removeRepository, Hawk.updateRepositoryCredentials, Hawk.listRepositories, Hawk.listFiles, Hawk.configurePolling, Hawk.addDerivedAttribute, Hawk.removeDerivedAttribute, Hawk.listDerivedAttributes, Hawk.addIndexedAttribute, Hawk.removeIndexedAttribute, Hawk.listIndexedAttributes, Hawk.getModel, Hawk.watchStateChanges, Hawk.watchModelChanges.

InvalidDerivedAttributeSpec

The derived attribute specification is not valid.

NameTypeDocumentation
reasonstringReason for the spec not being valid.

Used in: Hawk.addDerivedAttribute.

InvalidIndexedAttributeSpec

The indexed attribute specification is not valid.

NameTypeDocumentation
reasonstringReason for the spec not being valid.

Used in: Hawk.addIndexedAttribute.

InvalidMetamodel

The provided metamodel is not valid (e.g. unparsable or inconsistent).

NameTypeDocumentation
reasonstringReason for the metamodel not being valid.

Used in: Hawk.registerMetamodels.

InvalidPollingConfiguration

The polling configuration is not valid.

NameTypeDocumentation
reasonstringReason for the spec not being valid.

Used in: Hawk.configurePolling.

InvalidQuery

The specified query is not valid.

NameTypeDocumentation
reasonstringReason for the query not being valid.

Used in: Hawk.query.

UnknownQueryLanguage

The specified query language is not supported by the operation.

No fields for this entity.

Used in: Hawk.query.

UnknownRepositoryType

The specified repository type is not supported by the operation.

No fields for this entity.

Used in: Hawk.addRepository.

UserExists

The specified username already exists.

No fields for this entity.

Used in: Users.createUser.

UserNotFound

The specified username does not exist.

No fields for this entity.

Used in: Users.updateProfile, Users.updatePassword, Users.deleteUser.

VCSAuthenticationFailed

The client failed to prove its identity in the VCS.

No fields for this entity.

Used in: Hawk.addRepository.


This file was automatically generated by Ecore2Thrift.

https://github.com/bluezio/ecore2thrift