public final class AssociationModel extends Object implements org.qi4j.api.association.AssociationDescriptor, AssociationInfo, Binder, org.qi4j.functional.Visitable<AssociationModel>
Equality is based on the Association accessor object (associated type and name), not on the QualifiedName.
Constructor and Description |
---|
AssociationModel(AccessibleObject accessor,
ValueConstraintsInstance valueConstraintsInstance,
ValueConstraintsInstance associationConstraintsInstance,
org.qi4j.api.common.MetaInfo metaInfo) |
Modifier and Type | Method and Description |
---|---|
<ThrowableType extends Throwable> |
accept(org.qi4j.functional.Visitor<? super AssociationModel,ThrowableType> visitor) |
AccessibleObject |
accessor() |
void |
bind(Resolution resolution) |
void |
checkAssociationConstraints(org.qi4j.api.association.Association<?> association) |
void |
checkConstraints(Object value) |
boolean |
equals(Object o) |
AssociationInfo |
getBuilderInfo() |
int |
hashCode() |
boolean |
isAggregated() |
boolean |
isImmutable() |
<T> T |
metaInfo(Class<T> infoType) |
org.qi4j.api.common.QualifiedName |
qualifiedName() |
boolean |
queryable() |
String |
toString() |
Type |
type() |
public AssociationModel(AccessibleObject accessor, ValueConstraintsInstance valueConstraintsInstance, ValueConstraintsInstance associationConstraintsInstance, org.qi4j.api.common.MetaInfo metaInfo)
public <T> T metaInfo(Class<T> infoType)
metaInfo
in interface org.qi4j.api.structure.MetaInfoHolder
public org.qi4j.api.common.QualifiedName qualifiedName()
qualifiedName
in interface org.qi4j.api.association.AssociationDescriptor
qualifiedName
in interface AssociationInfo
public Type type()
type
in interface org.qi4j.api.association.AssociationDescriptor
type
in interface AssociationInfo
public boolean isImmutable()
isImmutable
in interface org.qi4j.api.association.AssociationDescriptor
isImmutable
in interface AssociationInfo
public boolean isAggregated()
isAggregated
in interface org.qi4j.api.association.AssociationDescriptor
public AccessibleObject accessor()
accessor
in interface org.qi4j.api.association.AssociationDescriptor
public boolean queryable()
queryable
in interface org.qi4j.api.association.AssociationDescriptor
public AssociationInfo getBuilderInfo()
public <ThrowableType extends Throwable> boolean accept(org.qi4j.functional.Visitor<? super AssociationModel,ThrowableType> visitor) throws ThrowableType extends Throwable
accept
in interface org.qi4j.functional.Visitable<AssociationModel>
ThrowableType extends Throwable
public void checkConstraints(Object value) throws org.qi4j.api.constraint.ConstraintViolationException
checkConstraints
in interface ConstraintsCheck
org.qi4j.api.constraint.ConstraintViolationException
public void checkAssociationConstraints(org.qi4j.api.association.Association<?> association) throws org.qi4j.api.constraint.ConstraintViolationException
org.qi4j.api.constraint.ConstraintViolationException
public void bind(Resolution resolution) throws org.qi4j.bootstrap.BindingException