Interface ReferenceStrategy
-
public interface ReferenceStrategy
ADefaultReferenceService
customization strategy for adding an object to a reference of another.- Since:
- 1.16
- See Also:
DefaultReferenceService
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ReferenceStrategy.Provider
Specific Bazaar vendor interface for reference strategies.
-
Field Summary
Fields Modifier and Type Field Description static ReferenceStrategy
DEFAULT
The default strategy.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addElementsToReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Set<? extends org.eclipse.emf.ecore.EObject> objects)
Add a set of newobjects
to areference
.
-
-
-
Field Detail
-
DEFAULT
static final ReferenceStrategy DEFAULT
The default strategy. Just executes a simple command to add the reference.
-
-
Method Detail
-
addElementsToReference
boolean addElementsToReference(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Set<? extends org.eclipse.emf.ecore.EObject> objects)
Add a set of newobjects
to areference
.- Parameters:
owner
- an existing object to which the givenobjects
are to be added in thereference
reference
- the reference of theowner
to which theobjects
are to be addedobjects
- the new objects to be added to thereference
of theowner
- Returns:
true
if theobjects
were added to thereference
by this strategy;false
, otherwise
-
-