public interface IModelAPI
This is an abstract interface and must be extended for each specific model API. These model APIs are specified in other plug-ins.
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activate the API's primary resource.
|
com.corticon.rulesemf.common.Annotation |
addAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
Add annotation to given object.
|
void |
addBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
Add a batched EMF model listener (i.e., subscribe).
|
void |
addLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Add a low-level EMF model listener (i.e., subscribe).
|
void |
addModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Add a low-level EMF model listener (i.e., subscribe).
|
void |
addResourceListener(IResourceListener aIResourceListener)
Add a Resource listener (i.e., subscribe).
|
boolean |
addView()
Add a new presentation metaphor (view) to the asset (API context object) represented
by this API.
|
boolean |
beginTransaction()
Method to begin a new transaction using a ChangeRecorder.
|
boolean |
cancelTransaction()
Method to cancel a transaction.
|
boolean |
canSetSupportedLocales(java.util.Locale[] aLocaleArray)
Returns
true if the client program could successfully execute
method setSupportedLocales using the supplied array of Locale instances. |
void |
closeResource(org.eclipse.emf.ecore.resource.Resource aResource)
Close the specified resource.
|
org.eclipse.emf.ecore.resource.Resource |
createResource(org.eclipse.emf.common.util.URI aURIResource)
Using the specified URI, create a new Resource in the editing domain and return
that Resource to the caller.
|
void |
deleteAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
com.corticon.rulesemf.common.Annotation aAnnotation)
Delete given annotation from object
|
void |
deleteAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName)
Delete annotation(s) with specific name
|
void |
deleteAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
Delete annotation(s) with specific name and value
|
void |
deleteResource(org.eclipse.emf.ecore.resource.Resource aResource)
Delete the specified Resource.
|
int |
displayMessageBox(java.lang.String astrTitle,
java.lang.String astrMessage,
int aiStyleBits)
Display a message box to the user bearing the title, message
and style characteristics specified.
|
void |
dispose()
Dispose of this API to free up resources.
|
void |
doPostLoadValidation()
Perform postLoad validation.
|
void |
doSmartValidation()
Perform validation in a special way that compares the "before" and "after"
messages associated with the asset.
|
boolean |
endTransaction()
Method to end the current transaction.
|
boolean |
endTransaction(boolean abRecord)
Method to end the current transaction.
|
void |
flushCommandStack()
Flush the command stack, removing any undoable change events.
|
java.lang.String |
formatValidationMessageLocation(com.corticon.rulesemf.common.InternationalValidationMessage aInternationalValidationMessage)
This method will return the appropriate message location text based on the current locale.
|
java.lang.String |
formatValidationMessageText(com.corticon.rulesemf.common.InternationalValidationMessage aInternationalValidationMessage)
This method will return the appropriate message text based on the current locale.
|
java.util.List |
getAllLocalesProvidingCompleteLocalization()
Returns a collection of Locale instances for locales which have complete localizations
(i.e., that every localizable element has a localization in the specified locale).
|
java.lang.String |
getAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName)
Return annotation value of a first annotation with given name
|
java.util.Collection |
getAnnotations(com.corticon.rulesemf.common.Annotatable aObject)
Get all annotations for a given object.
|
java.util.Collection |
getAnnotations(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName)
Get all annotations with specific name for given object.
|
java.util.Collection |
getAnnotations(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
Get all annotations with specific name and value for given object.
|
org.eclipse.emf.ecore.EObject |
getAPIContextObject()
Get the API context object, namely the root object of the primary Resource.
|
com.corticon.rulesemf.common.Asset |
getAsset()
Get the asset object, which is normally the same as the API context object.
|
java.lang.Object |
getBaseAttribute(java.util.List aListMultiValuedAttribute)
Given a multi-valued attribute, return the "base" value (index zero) if it exists in
the specified list; otherwise, return
null. |
java.lang.String |
getBaseAttributeString(java.util.List aListMultiValuedAttribute)
Given a multi-valued attribute, return the "base" value (index zero) if it exists in
the specified list; otherwise, return
null. |
java.util.List |
getBatchedModelListeners()
Returns the list of "batched" model listeners.
|
int |
getBuildNumber()
Get the Build Number of the asset.
|
int |
getBuildNumberOfLastValidationRulesChange()
Return the build number of the latest code change that affected
the validation rules of this API.
|
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain |
getEditingDomain()
Getter for the editing domain.
|
java.util.List |
getErrors(java.lang.Object aObject)
Get all validation errors for given object.
|
java.util.List |
getErrors(java.lang.Object aObject,
boolean abDemotion)
Get all validation errors for given object.
|
int |
getIndexByLocale(java.util.Locale aLocale)
Return the index of the specified locale in the list of locales
supported by this asset.
|
java.util.Locale |
getLocale()
Get API Locale.
|
java.lang.Object |
getLocalizedAttribute(java.util.List aListMultiValuedAttribute)
Return the best matching localization according to localization priorities.
|
java.lang.String |
getLocalizedAttributeString(java.util.List aListMultiValuedAttribute)
Return the best matching localization according to localization priorities.
|
java.util.List |
getLowLevelModelListeners()
Returns the list of low-level model listeners.
|
int |
getMajorServiceNumber()
Get the Major Service Number of the asset.
|
int |
getMajorVersionNumber()
Get the Major Version Number of the asset.
|
java.lang.String |
getMessage(java.lang.String astrBundleKey)
Return the localized message corresponding to the specified bundle key.
|
java.lang.String |
getMessage(java.lang.String astrBundleKey,
java.util.Locale aLocale)
Return the localized message corresponding to the specified bundle key and locale.
|
java.lang.String |
getMessageBase(java.lang.String astrKeyPrefix,
java.lang.String astrLocalizedString)
Return the base message corresponding to the specified bundle key.
|
IMessageBoxDelegate |
getMessageBoxDelegate()
Get the message box delegate for this API.
|
int |
getMinorServiceNumber()
Get the Minor Service Number of the asset.
|
int |
getMinorVersionNumber()
Get the Minor Version Number of the asset.
|
IModelAPIState |
getModelAPIState()
Getter for model API state instance.
|
java.util.List |
getModelListeners()
Returns the list of model listeners.
|
java.lang.String |
getNewResourceName(org.eclipse.emf.common.util.URI aURIContainer,
java.lang.String astrFileName,
java.lang.String astrFileExtension)
Given the relative path of a container in the file system (project or folder), a "base"
filename and a file extension, return a new unique filename (within that container) appending
sequence numbers if needed to ensure uniqueness.
|
IPersistenceServicesDelegate |
getPersistenceServicesDelegate()
Get the persistence services delegate for this API.
|
IPreferences |
getPreferences()
Return the preferences service for this API.
|
org.eclipse.emf.ecore.resource.Resource |
getPrimaryResource()
Get the "primary" resource of this API.
|
org.eclipse.emf.common.util.URI |
getPrimaryResourceURI()
Return the "primary" resource URI.
|
IScrollableMessageDelegate |
getScrollableMessageDelegate()
Get the scrollable message delegate for this API.
|
java.util.Locale[] |
getSupportedLocales()
Return an array consisting of the Locales supported by this asset.
|
boolean |
getSuppressBrokenLinkValidation()
Get the suppress broken link validation boolean of this Model
|
boolean |
getSuppressValidation()
Returns the current validation suppress state.
|
java.lang.String |
getToolTip(com.corticon.rulesemf.common.ValidatableObject aValidatableObject)
All validation messages are anchored in type ValidatableObject.
|
java.lang.String |
getUpdateStamp()
Return the update stamp of the asset.
|
IUserInterfaceInfoDelegate |
getUserInterfaceInfoDelegate()
Get the user interface info delegate for this API.
|
int |
getValidationMessageCount(java.util.List aListValidationMessages,
com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity)
Return a count of the number of validation messages that have the specified
severity level.
|
int |
getValidationMessageCount(java.util.List aListValidationMessages,
com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity,
boolean abDemotion)
Return a count of the number of validation messages that have the specified
severity level.
|
int |
getValidationMessageCount(com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity)
Return a count of the number of validation messages that have the specified
severity level.
|
int |
getValidationMessageCount(com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity,
boolean abDemotion)
Return a count of the number of validation messages that have the specified
severity level.
|
java.util.List |
getValidationMessages()
Return a list of all validation messages associated with this API.
|
java.util.List<com.corticon.rulesemf.common.InternationalValidationMessage> |
getValidationMessages(java.lang.String astrTextKey)
Return a list of all validation messages that have a given text key (message ID).
|
java.util.List |
getWarnings(java.lang.Object aObject)
Get all validation warnings for given object.
|
java.util.List |
getWarnings(java.lang.Object aObject,
boolean abDemotion)
Get all validation warnings for given object.
|
void |
handleException(java.lang.Throwable e)
This method will fire when an Exception occurs during a setter/getter method.
|
boolean |
hasErrors()
Return
true if the asset has any errors. |
boolean |
hasErrors(boolean abDemotion)
Return
true if the asset has any errors. |
boolean |
hasErrors(java.util.List alistValidatableObject)
Determine if any of a list of ValidatableObject instance has any errors.
|
boolean |
hasErrors(java.util.List alistValidatableObject,
boolean abDemotion)
Determine if any of a list of ValidatableObject instance has any errors.
|
boolean |
hasErrors(java.lang.Object aObject)
Check if a given object has validation errors.
|
boolean |
hasErrors(java.lang.Object aObject,
boolean abDemotion)
Check if a given object has validation errors.
|
boolean |
hasErrorsOrWarnings()
Return
true if the asset has any errors or warnings. |
boolean |
hasErrorsOrWarnings(boolean abDemotion)
Return
true if the asset has any errors or warnings. |
boolean |
hasErrorsOrWarnings(java.util.List alistValidatableObject)
Determine if any of a list of ValidatableObject instance has any errors or warnings.
|
boolean |
hasErrorsOrWarnings(java.util.List alistValidatableObject,
boolean abDemotion)
Determine if any of a list of ValidatableObject instance has any errors or warnings.
|
boolean |
hasErrorsOrWarnings(java.lang.Object aObject)
Return
true if the object has any errors or warnings. |
boolean |
hasErrorsOrWarnings(java.lang.Object aObject,
boolean abDemotion)
Return
true if the object has any errors or warnings. |
boolean |
hasWarnings()
Return
true if the asset has any warnings. |
boolean |
hasWarnings(boolean abDemotion)
Return
true if the asset has any warnings. |
boolean |
hasWarnings(java.util.List alistValidatableObject)
Determine if any of a list of ValidatableObject instance has any warnings.
|
boolean |
hasWarnings(java.util.List alistValidatableObject,
boolean abDemotion)
Determine if any of a list of ValidatableObject instance has any warnings.
|
boolean |
hasWarnings(java.lang.Object aObject)
Check if a given object has validation warnings.
|
boolean |
hasWarnings(java.lang.Object aObject,
boolean abDemotion)
Check if a given object has validation warnings.
|
boolean |
isAPIStateEstablished()
Return
true if the API state has been established. |
boolean |
isEnabledRedo()
Determine whether redo function should be enabled.
|
boolean |
isEnabledUndo()
Determine whether undo function should be enabled.
|
boolean |
isInhibitNotification()
Accessor method for indicator that controls EMF model change notification.
|
boolean |
isLoaded()
Determine whether the primary resource has been specified and whether
it is currently loaded.
|
boolean |
isOperationModeNormal()
Determine whether operation mode is normal (i.e., no undo/redo in progress).
|
boolean |
isOperationModeRedo()
Determine whether redo is in progress.
|
boolean |
isOperationModeUndo()
Determine whether undo is in progress.
|
boolean |
isPassive()
Determine whether the API is operating in passive mode.
|
boolean |
isPostLoadInProgress()
Determine whether post load processing is currently in progress.
|
boolean |
isPrimaryResourceSet()
Determine whether the primary resource has been explicitly set.
|
boolean |
isReadOnly()
Get the ReadOnly flag for the asset.
|
boolean |
isResourceActivated(org.eclipse.emf.ecore.resource.Resource aResource)
Check to determine whether the specified resource is activated.
|
boolean |
isResourceConflict(org.eclipse.emf.ecore.resource.Resource aResource)
Determine whether the given Resource has a modification stamp on disk that differs
from that which is recorded in the API.
|
boolean |
isResourceDemandLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
Check to determine whether the specified resource was demand-loaded via loadResource
as opposed to lazy-loaded.
|
boolean |
isResourceLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
Determine whether the specified resource is loaded.
|
boolean |
isScrollableMessageDelegateAvailable()
Check to determine whether scrollable message delegate is available.
|
boolean |
isShowCanonicalValidationMessages()
Return an indication of whether canonical validation messages should be
shown to the user.
|
boolean |
isSuppressModifiedFlagUpdates()
Check to determine whether updates to the resource modified flag are being suppressed.
|
boolean |
isSuppressPostLoad()
Returns the current postLoad suppression state.
|
boolean |
isTransactionInProgress()
Return
true if a transaction is currently in progress. |
boolean |
isValid()
Test the validity state of this asset.
|
boolean |
isValid(boolean abDemotion)
Test the validity state of this asset.
|
org.eclipse.emf.ecore.resource.Resource |
loadResource(java.lang.String astrResource)
Convenience method to load the the editing domain's resource set with the
contents of the specified file.
|
org.eclipse.emf.ecore.resource.Resource |
loadResource(org.eclipse.emf.common.util.URI aURIResource)
Convenience method to load the the editing domain's resource set with the
contents of the specified file.
|
org.eclipse.emf.ecore.resource.Resource |
loadResource(org.eclipse.emf.common.util.URI aURIResource,
boolean abDemandLoad)
Convenience method to load the the editing domain's resource set with the
contents of the specified file.
|
IModelAPI |
newInstance()
A generic method that will return a new instance of a IModelAPI of the calling descendent class.
|
boolean |
noOperation()
Execute no-operation command.
|
void |
postLoad()
Perform any necessary functions after loading a resource.
|
void |
postMethod()
This method will fire after any setter/getter will execute.
|
void |
postMethod(boolean abRecord)
This method will fire after any setter/getter will execute.
|
void |
postsave()
Perform any necessary functions after saving.
|
void |
preMethod()
This method will fire before any setter/getter will execute.
|
void |
presave()
Perform any necessary functions prior to saving.
|
void |
redo()
Redo current changes.
|
org.eclipse.emf.ecore.resource.Resource |
reloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
Reload the specified resource (unload/load).
|
boolean |
remapResource(org.eclipse.emf.common.util.URI aURIOld,
org.eclipse.emf.common.util.URI aURINew)
Given an old URI, a new URI can unload the old Resource and load the new Resource.
|
boolean |
remapResource(org.eclipse.emf.common.util.URI aURIOld,
org.eclipse.emf.common.util.URI aURINew,
IModelAPI aIModelAPIReferenced)
Deprecated.
Third positional parameter is not used.
|
void |
removeBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
Remove an batched EMF model listener (i.e., un-subscribe).
|
void |
removeLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Remove a low-level EMF model listener (i.e., un-subscribe).
|
void |
removeModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
Remove an EMF model listener (i.e., un-subscribe).
|
void |
removeResource(org.eclipse.emf.ecore.resource.Resource aResource)
Remove the specified resource from the resource set.
|
void |
removeResourceListener(IResourceListener aIResourceListener)
Remove a resource listener (i.e., un-subscribe).
|
boolean |
removeView()
Remove the presentation metaphor (view) from the asset (API context object) represented
by this API.
|
boolean |
renameResource(org.eclipse.emf.ecore.resource.Resource aResource,
org.eclipse.emf.common.util.URI aURIResourceNew)
Rename the Resource identified by the specified URI.
|
boolean |
rollbackTransaction()
Rollback the current transaction essentially leaving the API
in it state as of the first beginTransaction.
|
void |
saveAll()
Save all resource changes.
|
void |
saveResource(org.eclipse.emf.ecore.resource.Resource aResource)
Save the contents of the specified resource to the file system with no
special options.
|
void |
setAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
Set annotation value.
|
void |
setAPIContextObject(org.eclipse.emf.ecore.EObject aEObjectAPIContext)
Set the API context object, namely the root object of the primary Resource.
|
void |
setAPIState(IModelAPI aIModelAPI)
Set this API's internal state identically to another API's state.
|
void |
setBuildNumber(int aiBuildNumber)
Set the Build Number of the asset.
|
void |
setEditingDomain(org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain aAdapterFactoryEditingDomain)
Setter for the editing domain.
|
void |
setInhibitNotification(boolean abInhibitNotification)
Setter for indicator that controls EMF model change notification.
|
void |
setLocale(java.util.Locale aLocale)
Set API Locale.
|
void |
setMajorServiceNumber(int aiMajorServiceNumber)
Set the Major Service Number of the asset.
|
void |
setMajorVersionNumber(int aiMajorVersionNumber)
Set the Major Version Number of the asset.
|
void |
setMessageBoxDelegate(IMessageBoxDelegate aIMessageBoxDelegate)
Set the optional message box delegate for the API.
|
void |
setMinorServiceNumber(int aiMinorServiceNumber)
Set the Minor Service Number of the asset.
|
void |
setMinorVersionNumber(int aiMinorVersionNumber)
Set the Minor Version Number of the asset.
|
void |
setModelAPIState(IModelAPIState aIModelAPIState)
Setter for model API state instance.
|
void |
setModelListeners(java.util.List aListModelListeners)
Set the list of model listeners.
|
void |
setPassive(boolean abPassive)
Set the passive mode indicator of this API.
|
void |
setPersistenceServicesDelegate(IPersistenceServicesDelegate aIPersistenceServicesDelegate)
Set the optional persistence services delegate for the API.
|
void |
setPostLoadInProgress(boolean abPostLoadInProgress)
Setter for post load in progress indicator.
|
void |
setPreferencesDelegate(IPreferencesDelegate aIPreferencesDelegate)
Set the optional preferences delegate for the API.
|
void |
setPrimaryResource(org.eclipse.emf.ecore.resource.Resource aResourcePrimary)
Set the primary resource of the API, typically the resource being maintained
by an editor.
|
void |
setReadOnly(boolean abReadOnly)
Set the ReadOnly flag for the asset.
|
void |
setScrollableMessageDelegate(IScrollableMessageDelegate aIScrollableMessageDelegate)
Set the optional scrollable messages delegate for the API.
|
boolean |
setSupportedLocales(java.util.Locale[] aLocaleArray)
Specify the set of locales supported by this asset using an array of Locale instances.
|
void |
setSuppressBrokenLinkValidation(boolean abSuppressBrokenLinkValidation)
Set the suppress broken link validation boolean of this Model
|
void |
setSuppressModifiedFlagUpdates(boolean abSuppressModifiedFlagUpdates)
Setter for suppress modified flag updates indicator.
|
void |
setSuppressPostLoad(boolean abSuppressPostLoad)
Set this indicator to
true to inhibit postLoad processing. |
void |
setSuppressValidation(boolean abSuppressValidation)
By setting this to true, the API will "validate" the Model when a change is made.
|
void |
setUserInterfaceInfoDelegate(IUserInterfaceInfoDelegate aIUserInterfaceInfoDelegate)
Set the optional user interface info delegate for the API.
|
void |
undo()
Undo current changes.
|
void |
unloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
Unload the specified resource.
|
void |
validate()
Validate the asset contained within this API.
|
void |
validateLicense()
This method will validate the License.
|
void activate()
com.corticon.rulesemf.common.Annotation addAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
aObject - Annotatable objectaName - Annotation nameaValue - Annotation valuevoid addBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
aIBatchedChangedListener - Batched listener instance to add to subscription list.void addLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to add to subscription list.void addModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to add to subscription list.void addResourceListener(IResourceListener aIResourceListener)
aIResourceListener - Listener instance to add to subscription list.boolean addView()
true if the command was successful.boolean beginTransaction()
true if transaction successfully started.boolean cancelTransaction()
true if transaction successfully cancelled.boolean canSetSupportedLocales(java.util.Locale[] aLocaleArray)
true if the client program could successfully execute
method setSupportedLocales using the supplied array of Locale instances.aLocaleArray - Array of proposed Locale instances.true if setSupportedLocales operation would be successful.void closeResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be closed.org.eclipse.emf.ecore.resource.Resource createResource(org.eclipse.emf.common.util.URI aURIResource)
aURIResource - URI of Resource to be created.void deleteAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
com.corticon.rulesemf.common.Annotation aAnnotation)
aObject - Annotatable objectaAnnotation - Annotation to removevoid deleteAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName)
aObject - Annotatable objectaName - Name of annotations that are to be removedvoid deleteAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
aObject - Annotatable objectaName - Name of annotations that are to be removedaValue - Value of annotations that are to be removedvoid deleteResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be deleted.int displayMessageBox(java.lang.String astrTitle,
java.lang.String astrMessage,
int aiStyleBits)
astrTitle - Title (typically appears at the top of the dialog window).astrMessage - Message to display in the body of the message box.aiStyleBits - Style specification.void dispose()
void doPostLoadValidation()
void doSmartValidation()
boolean endTransaction()
true if transaction successfully completed.boolean endTransaction(boolean abRecord)
abRecord - true to record transaction in command stack.true if transaction successfully completed.void flushCommandStack()
java.lang.String formatValidationMessageLocation(com.corticon.rulesemf.common.InternationalValidationMessage aInternationalValidationMessage)
aInternationalValidationMessage - International validation message.java.lang.String formatValidationMessageText(com.corticon.rulesemf.common.InternationalValidationMessage aInternationalValidationMessage)
aInternationalValidationMessage - International validation message.java.util.List getAllLocalesProvidingCompleteLocalization()
java.lang.String getAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName)
aObject - Annotatable objectaName - Annotation namejava.util.Collection getAnnotations(com.corticon.rulesemf.common.Annotatable aObject)
aObject - Annotatable objectjava.util.Collection getAnnotations(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName)
aObject - Annotatable objectaName - Annotation namejava.util.Collection getAnnotations(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
aObject - Annotatable objectaName - Annotation nameaValue - Annotation valueorg.eclipse.emf.ecore.EObject getAPIContextObject()
com.corticon.rulesemf.common.Asset getAsset()
java.lang.Object getBaseAttribute(java.util.List aListMultiValuedAttribute)
null.List - Multi-valued attribute list.null if no base value exists.java.lang.String getBaseAttributeString(java.util.List aListMultiValuedAttribute)
null.List - Multi-valued attribute list.null if no base value exists.java.util.List getBatchedModelListeners()
int getBuildNumber()
int getBuildNumberOfLastValidationRulesChange()
org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain getEditingDomain()
java.util.List getErrors(java.lang.Object aObject)
aObject - Object to be tested.java.util.List getErrors(java.lang.Object aObject,
boolean abDemotion)
aObject - Object to be tested.abDemotion - true to take demotion into account.int getIndexByLocale(java.util.Locale aLocale)
aLocale - Locale to be found in list.java.util.Locale getLocale()
java.lang.Object getLocalizedAttribute(java.util.List aListMultiValuedAttribute)
aListMultiValuedAttribute - Multi-valued attribute containing localized text.java.lang.String getLocalizedAttributeString(java.util.List aListMultiValuedAttribute)
aListMultiValuedAttribute - Multi-valued attribute containing localized text.java.util.List getLowLevelModelListeners()
int getMajorServiceNumber()
int getMajorVersionNumber()
java.lang.String getMessage(java.lang.String astrBundleKey)
astrBundleKey - Bundle key.java.lang.String getMessage(java.lang.String astrBundleKey,
java.util.Locale aLocale)
astrBundleKey - Bundle key.aLocale - Locale to retrieve.java.lang.String getMessageBase(java.lang.String astrKeyPrefix,
java.lang.String astrLocalizedString)
astrKeyPrefix - Bundle key prefix.astrLocalizedString - Localized String.IMessageBoxDelegate getMessageBoxDelegate()
null if none has been specified.int getMinorServiceNumber()
int getMinorVersionNumber()
IModelAPIState getModelAPIState()
java.util.List getModelListeners()
java.lang.String getNewResourceName(org.eclipse.emf.common.util.URI aURIContainer,
java.lang.String astrFileName,
java.lang.String astrFileExtension)
aURIContainer - EMF URI of container.astrFileName - File name.astrFileExtension - File extension.IPersistenceServicesDelegate getPersistenceServicesDelegate()
null if none has been specified.IPreferences getPreferences()
org.eclipse.emf.ecore.resource.Resource getPrimaryResource()
org.eclipse.emf.common.util.URI getPrimaryResourceURI()
IScrollableMessageDelegate getScrollableMessageDelegate()
java.util.Locale[] getSupportedLocales()
null.boolean getSuppressBrokenLinkValidation()
boolean getSuppressValidation()
true if validation is currently being suppressed.java.lang.String getToolTip(com.corticon.rulesemf.common.ValidatableObject aValidatableObject)
aValidatableObject - ValidatableObject from which messages to be readjava.lang.String getUpdateStamp()
null.IUserInterfaceInfoDelegate getUserInterfaceInfoDelegate()
null if none has been specified.int getValidationMessageCount(java.util.List aListValidationMessages,
com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity)
aListValidationMessages - List of validation messages.aValidationMessageSeverity - Validation message severity.int getValidationMessageCount(java.util.List aListValidationMessages,
com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity,
boolean abDemotion)
aListValidationMessages - List of validation messages.aValidationMessageSeverity - Validation message severity.abDemotion - true to take demotion into account.int getValidationMessageCount(com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity)
aValidationMessageSeverity - Validation message severity.int getValidationMessageCount(com.corticon.rulesemf.common.ValidationMessageSeverity aValidationMessageSeverity,
boolean abDemotion)
aValidationMessageSeverity - Validation message severity.abDemotion - true to take demotion into account.java.util.List getValidationMessages()
java.util.List<com.corticon.rulesemf.common.InternationalValidationMessage> getValidationMessages(java.lang.String astrTextKey)
astrTextKey - Text key to located.java.util.List getWarnings(java.lang.Object aObject)
aObject - Object to be tested.java.util.List getWarnings(java.lang.Object aObject,
boolean abDemotion)
aObject - Object to be tested.abDemotion - true to take demotion into account.void handleException(java.lang.Throwable e)
Throwable - that needs to be processedboolean hasErrors()
true if the asset has any errors.true if the asset has any errors.boolean hasErrors(boolean abDemotion)
true if the asset has any errors.abDemotion - true to take demotion into account.true if the asset has any errors.boolean hasErrors(java.util.List alistValidatableObject)
alistValidatableObject - List of validatable object instances.true if any validatable object in the list has errors.boolean hasErrors(java.util.List alistValidatableObject,
boolean abDemotion)
alistValidatableObject - List of validatable object instances.abDemotion - true to take demotion into account.true if any validatable object in the list has errors.boolean hasErrors(java.lang.Object aObject)
aObject - Object to be tested.true if the object has any validation errors.boolean hasErrors(java.lang.Object aObject,
boolean abDemotion)
aObject - Object to be tested.abDemotion - true to take demotion into account.true if the object has any validation errors.boolean hasErrorsOrWarnings()
true if the asset has any errors or warnings.true if the asset has any errors or warnings.boolean hasErrorsOrWarnings(boolean abDemotion)
true if the asset has any errors or warnings.abDemotion - true to take demotion into account.true if the asset has any errors or warnings.boolean hasErrorsOrWarnings(java.util.List alistValidatableObject)
alistValidatableObject - List of validatable object instances.true if any validatable object in the list has errors or warnings.boolean hasErrorsOrWarnings(java.util.List alistValidatableObject,
boolean abDemotion)
alistValidatableObject - List of validatable object instances.abDemotion - true to take demotion into account.true if any validatable object in the list has errors or warnings.boolean hasErrorsOrWarnings(java.lang.Object aObject)
true if the object has any errors or warnings.aObject - Object to be tested.true if the object has any errors or warnings.boolean hasErrorsOrWarnings(java.lang.Object aObject,
boolean abDemotion)
true if the object has any errors or warnings.aObject - Object to be tested.abDemotion - true to take demotion into account.true if the object has any errors or warnings.boolean hasWarnings()
true if the asset has any warnings.true if the asset has any warnings.boolean hasWarnings(boolean abDemotion)
true if the asset has any warnings.abDemotion - true to take demotion into account.true if the asset has any warnings.boolean hasWarnings(java.util.List alistValidatableObject)
alistValidatableObject - List of validatable object instances.true if any validatable object in the list has warnings.boolean hasWarnings(java.util.List alistValidatableObject,
boolean abDemotion)
alistValidatableObject - List of validatable object instances.abDemotion - true to take demotion into account.true if any validatable object in the list has warnings.boolean hasWarnings(java.lang.Object aObject)
aObject - Object to be tested.true if the object has any validation warnings.boolean hasWarnings(java.lang.Object aObject,
boolean abDemotion)
aObject - Object to be tested.abDemotion - true to take demotion into account.true if the object has any validation warnings.boolean isAPIStateEstablished()
true if the API state has been established.true if the API state is non-null.boolean isEnabledRedo()
true if redo function should be enabled.boolean isEnabledUndo()
true if undo function should be enabled.boolean isInhibitNotification()
true if EMF model change notifications are inhibited.boolean isLoaded()
true if primary resource is loaded.boolean isOperationModeNormal()
true if no undo/redo is in progress.boolean isOperationModeRedo()
true if redo is in progress.boolean isOperationModeUndo()
true if undo is in progress.boolean isPassive()
true if the API is operating in passive mode.boolean isPostLoadInProgress()
true if post load processing is currently in progress.boolean isPrimaryResourceSet()
true if primary resource has been explicitly set.boolean isResourceActivated(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to test.true if the specified resource is activated.boolean isResourceConflict(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource whose time stamp should be tested.true if disk resource modification stamp does not match API records.boolean isResourceDemandLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to test.true if the specified resource was demand-loaded.boolean isResourceLoaded(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to test.true if specified resource is loaded.boolean isScrollableMessageDelegateAvailable()
true if scrollable message delegate is available.boolean isShowCanonicalValidationMessages()
true if canonical messages should be shown to user.boolean isSuppressModifiedFlagUpdates()
true if updates to modified flag are being suppressed.boolean isSuppressPostLoad()
true if postLoad is currently being suppressed.boolean isTransactionInProgress()
true if a transaction is currently in progress.true if a transaction is currently in progress.boolean isReadOnly()
void setReadOnly(boolean abReadOnly)
ReadOnly - flag.boolean isValid()
true if the
asset has no validation errors.true if asset is valid.boolean isValid(boolean abDemotion)
true if the
asset has no validation errors.abDemotion - true to take demotion into account.true if asset is valid.org.eclipse.emf.ecore.resource.Resource loadResource(java.lang.String astrResource)
astrResource - String path of resource to load.org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI aURIResource)
aURIResource - URI of resource to load.org.eclipse.emf.ecore.resource.Resource loadResource(org.eclipse.emf.common.util.URI aURIResource,
boolean abDemandLoad)
aURIResource - URI of resource to load.abDemandLoad - true to indicate that Resource is should be considered demand-loaded.IModelAPI newInstance()
boolean noOperation()
true if the set command was successful.void postLoad()
void postMethod()
void postMethod(boolean abRecord)
abRecord - true to record transaction in command stack.void postsave()
void preMethod()
boolean - void presave()
void redo()
org.eclipse.emf.ecore.resource.Resource reloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be reloaded.boolean remapResource(org.eclipse.emf.common.util.URI aURIOld,
org.eclipse.emf.common.util.URI aURINew)
For example, if the Vocabulary associated with a Rulesheet has been moved from one location to another in the file system, supply the following parameters:
aURIOld - Old location of Vocabulary.aURIOld - URI of old asset.aURINew - URI of new asset.true if the command was successful.boolean remapResource(org.eclipse.emf.common.util.URI aURIOld,
org.eclipse.emf.common.util.URI aURINew,
IModelAPI aIModelAPIReferenced)
aURIOld - URI of old asset.aURINew - URI of new asset.true if the command was successful.void removeBatchedModelListener(IBatchedChangeListener aIBatchedChangedListener)
aIBatchedChangedListener - Listener instance to remove from subscription list.void removeLowLevelModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to remove from subscription list.void removeModelListener(org.eclipse.emf.edit.provider.INotifyChangedListener aINotifyChangedListener)
aINotifyChangedListener - Listener instance to remove from subscription list.void removeResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to be removed.void removeResourceListener(IResourceListener aIResourceListener)
aIResourceListener - Resource listener instance to remove from subscription list.boolean removeView()
true if the command was successful.boolean renameResource(org.eclipse.emf.ecore.resource.Resource aResource,
org.eclipse.emf.common.util.URI aURIResourceNew)
aResource - Resource to be renamed.aURIResourceNew - New Resource URI.true if the command was successful.boolean rollbackTransaction()
void saveAll()
void saveResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource instance to savevoid setAnnotation(com.corticon.rulesemf.common.Annotatable aObject,
java.lang.String aName,
java.lang.String aValue)
aObject - Annotatable objectaName - Annotation nameaValue - Annotation valuevoid setAPIContextObject(org.eclipse.emf.ecore.EObject aEObjectAPIContext)
aEObjectAPIContext - Reference to API context object.void setAPIState(IModelAPI aIModelAPI)
aIModelAPI - Model API to use as source for state information.void setBuildNumber(int aiBuildNumber)
aiBuildNumber - Build number.void setEditingDomain(org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain aAdapterFactoryEditingDomain)
aAdapterFactoryEditingDomain - Instance of the editing domain.void setInhibitNotification(boolean abInhibitNotification)
abInhibitNotification - true to inhibit EMF model change notifications.void setLocale(java.util.Locale aLocale)
Locale - for this API.void setMajorServiceNumber(int aiMajorServiceNumber)
aiMajorServiceNumber - Major service number.void setMajorVersionNumber(int aiMajorVersionNumber)
aiMajorVersionNumber - Major version number.void setMessageBoxDelegate(IMessageBoxDelegate aIMessageBoxDelegate)
aIMessageBoxDelegate - Message box delegate instance.void setMinorServiceNumber(int aiMinorServiceNumber)
aiMinorServiceNumber - Minor service number.void setMinorVersionNumber(int aiMinorVersionNumber)
aiMinorVersionNumber - Minor version number.void setModelAPIState(IModelAPIState aIModelAPIState)
aIModelAPIState - Model API state instance.void setModelListeners(java.util.List aListModelListeners)
aListModelListeners - List of model listeners.void setPassive(boolean abPassive)
abPassive - true to set passive mode.void setPersistenceServicesDelegate(IPersistenceServicesDelegate aIPersistenceServicesDelegate)
aIPersistenceServicesDelegate - Persistence services delegate instance.void setPostLoadInProgress(boolean abPostLoadInProgress)
abPostLoadInProgress - true to indicate that post load is in progress.void setPreferencesDelegate(IPreferencesDelegate aIPreferencesDelegate)
aIPreferencesDelegate - Preferences delegate instance.void setPrimaryResource(org.eclipse.emf.ecore.resource.Resource aResourcePrimary)
aResourcePrimary - Primary Resource.void setScrollableMessageDelegate(IScrollableMessageDelegate aIScrollableMessageDelegate)
aIScrollableMessageDelegate - Message box delegate instance.boolean setSupportedLocales(java.util.Locale[] aLocaleArray)
aLocaleArray - Array of Locale instances.true if the transaction was successful.void setSuppressBrokenLinkValidation(boolean abSuppressBrokenLinkValidation)
void setSuppressModifiedFlagUpdates(boolean abSuppressModifiedFlagUpdates)
abSuppressModifiedFlagUpdates - true to set suppress modified flag updates indicator.void setSuppressPostLoad(boolean abSuppressPostLoad)
true to inhibit postLoad processing.
This is particularly useful for new assets, because EMF signals that an
asset is being loaded when in fact it is being created.abSuppressPostLoad - true to suppress postLoad processing.void setSuppressValidation(boolean abSuppressValidation)
abSuppressValidation - true to suppress validation.void setUserInterfaceInfoDelegate(IUserInterfaceInfoDelegate aIUserInterfaceInfoDelegate)
aIUserInterfaceInfoDelegate - User interface info delegate instance.void undo()
void unloadResource(org.eclipse.emf.ecore.resource.Resource aResource)
aResource - Resource to unload.void validate()
void validateLicense()
Copyright © 2005-2013 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.