public interface OneToManyAssociation extends ObjectAssociation, OneToManyFeature
ObjectAssociation.Filters, ObjectAssociation.Functions, ObjectAssociation.Predicates, ObjectAssociation.UtilOneToManyFeature.CollectionSemantics| Modifier and Type | Method and Description |
|---|---|
void |
addElement(ObjectAdapter owningObjectAdapter,
ObjectAdapter objectToAdd)
Add the specified element to this collection field in the specified
object.
|
void |
clearCollection(ObjectAdapter inObject)
Remove all elements from this collection field in the specified object.
|
ValidityContext<?> |
createValidateAddInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
ObjectAdapter owningObjectAdapter,
ObjectAdapter proposedObjectToAdd)
Creates an
InteractionContext that represents validation of a
candidate object to be added to the collection. |
ValidityContext<?> |
createValidateRemoveInteractionContext(AuthenticationSession session,
InteractionInvocationMethod invocationMethod,
ObjectAdapter owningObjectAdapter,
ObjectAdapter proposedObjectToRemove)
Creates an
InteractionContext that represents validation of a
candidate object to be removed from the collection. |
Consent |
isValidToAdd(ObjectAdapter owningObjectAdapter,
ObjectAdapter proposedObjectToAdd)
Determines if the specified element can be added to the collection field,
represented as a
Consent. |
Consent |
isValidToRemove(ObjectAdapter owningObjectAdapter,
ObjectAdapter proposedObjectToRemove)
Determines if the specified element can be removed from the collection
field, represented as a
Consent. |
void |
removeElement(ObjectAdapter owningObjectAdapter,
ObjectAdapter oObjectToRemove)
Remove the specified element from this collection field in the specified
object.
|
getAutoComplete, getAutoCompleteMinLength, getBusinessKeyName, getChoices, getDefault, hasAutoComplete, hasChoices, isEmpty, isMandatory, isNotPersisted, toDefaultcreateUsableInteractionContext, createVisibleInteractionContext, debugData, getHelp, isAction, isAlwaysHidden, isOneToManyAssociation, isOneToOneAssociation, isPropertyOrCollection, isUsable, isVisiblegetDescription, getId, getName, getSpecificationgetFeatureType, getInstancegetIdentifieraddFacet, addFacet, containsDoOpFacet, containsFacet, getFacet, getFacets, getFacetTypes, removeFacet, removeFacetgetgetCollectionSemanticsValidityContext<?> createValidateAddInteractionContext(AuthenticationSession session, InteractionInvocationMethod invocationMethod, ObjectAdapter owningObjectAdapter, ObjectAdapter proposedObjectToAdd)
InteractionContext that represents validation of a
candidate object to be added to the collection.
Typically it is easier to just call
isValidToAdd(ObjectAdapter, ObjectAdapter) or
#isValidToAddResult(ObjectAdapter, ObjectAdapter); this is
provided as API for symmetry with interactions (such as
AccessContext accesses) have no corresponding vetoing methods.
Consent isValidToAdd(ObjectAdapter owningObjectAdapter, ObjectAdapter proposedObjectToAdd)
Consent.
If allowed the add
method can be called with the same parameters, .
#isValidToAddResult(ObjectAdapter, ObjectAdapter)void addElement(ObjectAdapter owningObjectAdapter, ObjectAdapter objectToAdd)
ValidityContext<?> createValidateRemoveInteractionContext(AuthenticationSession session, InteractionInvocationMethod invocationMethod, ObjectAdapter owningObjectAdapter, ObjectAdapter proposedObjectToRemove)
InteractionContext that represents validation of a
candidate object to be removed from the collection.
Typically it is easier to just call
isValidToAdd(ObjectAdapter, ObjectAdapter) or
#isValidToAddResult(ObjectAdapter, ObjectAdapter); this is
provided as API for symmetry with interactions (such as
AccessContext accesses) have no corresponding vetoing methods.
Consent isValidToRemove(ObjectAdapter owningObjectAdapter, ObjectAdapter proposedObjectToRemove)
Consent.
If allowed the remove method can be called with the same parameters, .
removeElement(ObjectAdapter, ObjectAdapter),
#isValidToAddResult(ObjectAdapter, ObjectAdapter)void removeElement(ObjectAdapter owningObjectAdapter, ObjectAdapter oObjectToRemove)
void clearCollection(ObjectAdapter inObject)
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.