public interface OneToOneAssociation extends ObjectAssociation, OneToOneFeature, MutableCurrentHolder
| Modifier and Type | Interface and Description |
|---|---|
static class |
OneToOneAssociation.Functions |
ObjectAssociation.Filters, ObjectAssociation.Predicates, ObjectAssociation.Util| Modifier and Type | Method and Description |
|---|---|
void |
clearAssociation(ObjectAdapter inObject)
Deprecated.
|
PropertyAccessContext |
createAccessInteractionContext(AuthenticationSession session,
InteractionInvocationMethod interactionMethod,
ObjectAdapter targetObjectAdapter)
Creates an
InteractionContext that represents access to this
property. |
ValidityContext<?> |
createValidateInteractionContext(AuthenticationSession session,
InteractionInvocationMethod interactionMethod,
ObjectAdapter targetObjectAdapter,
ObjectAdapter proposedValue)
Creates an
InteractionContext that represents validation of a
proposed new value for the property. |
void |
initAssociation(ObjectAdapter inObject,
ObjectAdapter associate)
Initialise this field in the specified object with the specified
reference - this call should only affect the specified object, and not
any related objects.
|
Consent |
isAssociationValid(ObjectAdapter inObject,
ObjectAdapter associate)
Determines if the specified reference is valid for setting this field in
the specified object, represented as a
Consent. |
void |
setAssociation(ObjectAdapter inObject,
ObjectAdapter associate)
Deprecated.
|
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, removeFacetsetgetvoid initAssociation(ObjectAdapter inObject, ObjectAdapter associate)
PropertyAccessContext createAccessInteractionContext(AuthenticationSession session, InteractionInvocationMethod interactionMethod, ObjectAdapter targetObjectAdapter)
InteractionContext that represents access to this
property.ValidityContext<?> createValidateInteractionContext(AuthenticationSession session, InteractionInvocationMethod interactionMethod, ObjectAdapter targetObjectAdapter, ObjectAdapter proposedValue)
InteractionContext that represents validation of a
proposed new value for the property.
Typically it is easier to just call
isAssociationValid(ObjectAdapter, ObjectAdapter) or
#isAssociationValidResult(ObjectAdapter, ObjectAdapter); this is
provided as API for symmetry with interactions (such as
AccessContext accesses) have no corresponding vetoing methods.
Consent isAssociationValid(ObjectAdapter inObject, ObjectAdapter associate)
Consent.@Deprecated void setAssociation(ObjectAdapter inObject, ObjectAdapter associate)
MutableCurrentHolder.set(ObjectAdapter, ObjectAdapter)initAssociation method
should be used on each of the objects.@Deprecated void clearAssociation(ObjectAdapter inObject)
MutableCurrentHolder.set(ObjectAdapter, ObjectAdapter)null) in the specified
object, and remove any association back-link.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.