|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A FacetRegistry creates Facet objects and
maintains their association with their primary objects.
| Method Summary | |
boolean |
addFactory(Type primaryObjectType,
Type facetType,
FacetFactory factory)
Add a FacetFactory to this
FacetRegistry. |
void |
addTypeInfoListener(TypeInfoListener l)
|
void |
clear()
Clear all FacetFactory and Facet
objects from this FacetRegistry. |
boolean |
clearFacets(Object primaryObject)
Remove all references to any Facets for the
supplied primary object from this FacetRegistry. |
Facet |
getFacet(Object primaryObject,
Type facetType)
Obtain a facet of the supplied Type for a given
primary object. |
Set |
getFacetTypes(Object primaryObject)
Obtain the set of facet Types which can be
constructed for a given primary object. |
boolean |
removeFactory(Type primaryObjectType,
Type facetType)
Remove a FacetFactory from this
FacetRegistry. |
void |
removeTypeInfoListener(TypeInfoListener l)
|
| Method Detail |
public void clear()
FacetFactory and Facet
objects from this FacetRegistry.
public boolean addFactory(Type primaryObjectType,
Type facetType,
FacetFactory factory)
FacetFactory to this
FacetRegistry.primaryObjectType - the Type of primary
object to which this FacetFactory will be
applicable.facetType - the Type of the
Facets which this FacetFactory will
create.factory - the FacetFactory to add.true if this FacetFactory was modified
as a result of this operation; false otherwise.
public boolean removeFactory(Type primaryObjectType,
Type facetType)
FacetFactory from this
FacetRegistry.primaryObjectType - the Type of primary
object to which the desired FacetFactory is applicable.facetType - the Type of the
Facets which the desired FacetFactory
creates.true if this FacetFactory was
modified as a result of this operation; false
otherwise.public Set getFacetTypes(Object primaryObject)
Types which can be
constructed for a given primary object.primaryObject - the primary object for which to obtain the
facet Types.Types, which may be an
empty set but are never null.
public Facet getFacet(Object primaryObject,
Type facetType)
Type for a given
primary object.primaryObject - the primary object.facetType - the desired Type of the returned
facet.null if one could
not be constructed.public boolean clearFacets(Object primaryObject)
Facets for the
supplied primary object from this FacetRegistry.primaryObject - the object for which to remove the
Facets.true if this FacetRegistry
was modified as a result of this operation; false
otherwise.public void addTypeInfoListener(TypeInfoListener l)
public void removeTypeInfoListener(TypeInfoListener l)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||