|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IAssociationMapping
This interface is not intended to be implemented by clients. Instances can
be obtained by
org.eclipse.hyades.ui.extension.IAssociationMappingRegistry#retrieveAssociationMapping(String).
| Method Summary | |
|---|---|
boolean |
addToAvoidedSet(java.lang.String type,
IAssociationDescriptor associationDescriptor)
Adds an association descriptor to the "avoided set" of a given type. |
IAssociationDescriptor[] |
associationDescriptors()
Returns all the association descriptors of this mapping. |
IAssociationDescriptor |
createAssociationDescriptor()
Creates an association descriptor owned by this mapping. |
IAssociationDescriptor |
getAssociationDescriptor(java.lang.String id)
Returns the association descriptor that has the specified id and that is not associated to any type. |
IAssociationDescriptor |
getAssociationDescriptor(java.lang.String type,
java.lang.String id)
Returns the association descriptor that has the specified id and that is a specific type. |
IAssociationDescriptor[] |
getAssociationDescriptors()
Returns the association descriptors of this mapping that are not associated to any type. |
IAssociationDescriptor[] |
getAssociationDescriptors(java.lang.String type)
Returns the association descriptors of this mapping that are associated to - or that applies to - a type. |
IAssociationMappingRegistry |
getAssociationMappingRegistry()
Returns the association mapping registry that contains this mapping |
IAssociationDescriptor[] |
getAvoidedAssociationDescriptors(java.lang.String type)
Returns all the association descriptors from the "avoided set" of a given type. |
IAssociationDescriptor |
getDefaultAssociationDescriptor()
Returns the default association descriptor from the set of descriptors that are not associated to a type. |
IAssociationDescriptor |
getDefaultAssociationDescriptor(java.lang.String type)
Returns the default association descriptor associated to a type. |
java.lang.String |
getExtensionPoint()
Returns the extension point name that defines the association descriptors of this mapping. |
java.lang.String |
getPluginId()
Returns the id of the plugin that declares the association descriptors of this mapping. |
java.lang.String[] |
getTypes()
Returns the types that are used with this mapping. |
boolean |
removeAllFromAvoidSet(java.lang.String type)
Removes all the association descriptors from the "avoided set" of a given type. |
boolean |
removeFromAvoidedSet(java.lang.String type,
IAssociationDescriptor associationDescriptor)
Removes an association descriptor from the "avoided set" of a given type. |
boolean |
setDefaultAssociationDescriptor(IAssociationDescriptor associationDescriptor)
Sets the default association descriptor for the set of descriptors that are not associated to a type. |
boolean |
setDefaultAssociationDescriptor(java.lang.String type,
IAssociationDescriptor associationDescriptor)
Sets the default association descriptor for a given type. |
| Methods inherited from interface org.eclipse.hyades.ui.util.IDisposable |
|---|
dispose |
| Method Detail |
|---|
IAssociationMappingRegistry getAssociationMappingRegistry()
java.lang.String getExtensionPoint()
java.lang.String getPluginId()
java.lang.String[] getTypes()
IAssociationDescriptor[] associationDescriptors()
This method doesn't follow the "get" naming convention to reduce the change of being used in the wrong scenario.
IAssociationDescriptor[] getAssociationDescriptors()
IAssociationDescriptor[] getAssociationDescriptors(java.lang.String type)
throws java.lang.IllegalArgumentException
The type argument is, for example, a type of "Monitor" or a
type of "Test Suite".
type -
java.lang.IllegalArgumentException - if the type is null.IAssociationDescriptor getAssociationDescriptor(java.lang.String id)
id -
IAssociationDescriptor getAssociationDescriptor(java.lang.String type,
java.lang.String id)
throws java.lang.IllegalArgumentException
id - type -
java.lang.IllegalArgumentException - if the type is null.IAssociationDescriptor getDefaultAssociationDescriptor()
IAssociationDescriptor getDefaultAssociationDescriptor(java.lang.String type)
throws java.lang.IllegalArgumentException
type -
java.lang.IllegalArgumentException - if the type is null.
boolean setDefaultAssociationDescriptor(IAssociationDescriptor associationDescriptor)
throws java.lang.IllegalArgumentException
associationDescriptor -
true if the default was set or false
otherwise.
IllegalArgumentException
- java.lang.IllegalArgumentException
boolean setDefaultAssociationDescriptor(java.lang.String type,
IAssociationDescriptor associationDescriptor)
throws java.lang.IllegalArgumentException
type - associationDescriptor -
true if the default was set or false
otherwise.
IllegalArgumentException
- null.java.lang.IllegalArgumentException
boolean addToAvoidedSet(java.lang.String type,
IAssociationDescriptor associationDescriptor)
type - associationDescriptor -
true if the association was added to the avoid set or
false otherwise.
boolean removeFromAvoidedSet(java.lang.String type,
IAssociationDescriptor associationDescriptor)
type - associationDescriptor -
true if the association was removed from the avoid set or
false otherwise.boolean removeAllFromAvoidSet(java.lang.String type)
type - associationDescriptor -
true if the association was removed from the avoid set or
false otherwise.IAssociationDescriptor[] getAvoidedAssociationDescriptors(java.lang.String type)
type -
IAssociationDescriptor createAssociationDescriptor()
Although the descriptor created by this method is added to the list
of untyped descriptors of this mapping, there is no validation against
the IAssociationDescriptor that may be registered to this
mapping's registry. It is up to the invoker of this method that the
descriptor has all the required attributes.
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||