org.favabeans.base
Class DefaultFacetRegistry
java.lang.Object
|
+--org.favabeans.base.DefaultFacetRegistry
- All Implemented Interfaces:
- FacetRegistry
- public class DefaultFacetRegistry
- extends Object
- implements FacetRegistry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFacetRegistry
public DefaultFacetRegistry()
- Construct a new, empty
DefaultFacetRegistry
.
clear
public void clear()
- Description copied from interface:
FacetRegistry
- Clear all
FacetFactory
and Facet
objects from this FacetRegistry
.
- Specified by:
clear
in interface FacetRegistry
addFactory
public boolean addFactory(Type primaryObjectType,
Type facetType,
FacetFactory factory)
- Description copied from interface:
FacetRegistry
- Add a
FacetFactory
to this
FacetRegistry
.
- Specified by:
addFactory
in interface FacetRegistry
- Following copied from interface:
org.favabeans.base.FacetRegistry
- Parameters:
primaryObjectType
- the Type
of primary
object to which this FacetFactory
will be
applicable.facetType
- the Type
of the
Facet
s which this FacetFactory
will
create.factory
- the FacetFactory
to add.- Returns:
true
if this FacetFactory
was modified
as a result of this operation; false
otherwise.
removeFactory
public boolean removeFactory(Type primaryObjectType,
Type facetType)
- Description copied from interface:
FacetRegistry
- Remove a
FacetFactory
from this
FacetRegistry
.
- Specified by:
removeFactory
in interface FacetRegistry
- Following copied from interface:
org.favabeans.base.FacetRegistry
- Parameters:
primaryObjectType
- the Type
of primary
object to which the desired FacetFactory
is applicable.facetType
- the Type
of the
Facet
s which the desired FacetFactory
creates.- Returns:
true
if this FacetFactory
was
modified as a result of this operation; false
otherwise.
getFacetTypes
public Set getFacetTypes(Object primaryObject)
- Description copied from interface:
FacetRegistry
- Obtain the set of facet
Type
s which can be
constructed for a given primary object.
- Specified by:
getFacetTypes
in interface FacetRegistry
- Following copied from interface:
org.favabeans.base.FacetRegistry
- Parameters:
primaryObject
- the primary object for which to obtain the
facet Type
s.- Returns:
- the relevant facet
Type
s, which may be an
empty set but are never null
.
getFacet
public Facet getFacet(Object primaryObject,
Type facetType)
- Description copied from interface:
FacetRegistry
- Obtain a facet of the supplied
Type
for a given
primary object.
- Specified by:
getFacet
in interface FacetRegistry
- Following copied from interface:
org.favabeans.base.FacetRegistry
- Parameters:
primaryObject
- the primary object.facetType
- the desired Type
of the returned
facet.- Returns:
- an appropriate facet, or
null
if one could
not be constructed.
clearFacets
public boolean clearFacets(Object primaryObject)
- Description copied from interface:
FacetRegistry
- Remove all references to any
Facet
s for the
supplied primary object from this FacetRegistry
.
- Specified by:
clearFacets
in interface FacetRegistry
- Following copied from interface:
org.favabeans.base.FacetRegistry
- Parameters:
primaryObject
- the object for which to remove the
Facet
s.- Returns:
true
if this FacetRegistry
was modified as a result of this operation; false
otherwise.
addTypeInfoListener
public void addTypeInfoListener(TypeInfoListener l)
- Specified by:
addTypeInfoListener
in interface FacetRegistry
removeTypeInfoListener
public void removeTypeInfoListener(TypeInfoListener l)
- Specified by:
removeTypeInfoListener
in interface FacetRegistry
fireTypeInfoChanged
protected void fireTypeInfoChanged(Type type)
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.