org.nakedobjects.metamodel.spec.feature
Interface NakedObjectAssociationContainer

All Known Subinterfaces:
NakedObjectSpecification
All Known Implementing Classes:
InstanceCollectionSpecification, IntrospectableSpecificationAbstract, JavaSpecification, NakedObjectSpecificationNoMember

public interface NakedObjectAssociationContainer


Method Summary
 NakedObjectAssociation getAssociation(java.lang.String id)
          Get the field object representing the field with the specified field identifier.
 java.util.List<? extends NakedObjectAssociation> getAssociationList()
          As per getAssociations(), but returning a List.
 java.util.List<? extends NakedObjectAssociation> getAssociationList(Filter<NakedObjectAssociation> filter)
          As per getAssociations(Filter), but returning a List.
 NakedObjectAssociation[] getAssociations()
          Return all the fields that exist in an object of this specification, although they need not all be accessible or visible.
 NakedObjectAssociation[] getAssociations(Filter<NakedObjectAssociation> filter)
          Return all NakedObjectAssociations matching the supplied filter.
 java.util.List<OneToManyAssociation> getCollectionList()
          All associations that represents collections.
 java.util.List<OneToOneAssociation> getPropertyList()
          All associations that represent properties.
 

Method Detail

getAssociation

NakedObjectAssociation getAssociation(java.lang.String id)
Get the field object representing the field with the specified field identifier.


getAssociations

NakedObjectAssociation[] getAssociations()
Return all the fields that exist in an object of this specification, although they need not all be accessible or visible.


getAssociationList

java.util.List<? extends NakedObjectAssociation> getAssociationList()
As per getAssociations(), but returning a List.

Returns:

getAssociations

NakedObjectAssociation[] getAssociations(Filter<NakedObjectAssociation> filter)
Return all NakedObjectAssociations matching the supplied filter. To get the statically visible fields (where any invisible and unauthorised fields have been removed) use NakedObjectAssociationFilters#STATICALLY_VISIBLE_ASSOCIATIONS

See Also:
Filters

getAssociationList

java.util.List<? extends NakedObjectAssociation> getAssociationList(Filter<NakedObjectAssociation> filter)
As per getAssociations(Filter), but returning a List.

Returns:

getPropertyList

java.util.List<OneToOneAssociation> getPropertyList()
All associations that represent properties.


getCollectionList

java.util.List<OneToManyAssociation> getCollectionList()
All associations that represents collections.

Returns:


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.