net.sourceforge.jfacets.impl
Class DefaultFacetContext

java.lang.Object
  extended by net.sourceforge.jfacets.impl.DefaultFacetContext
All Implemented Interfaces:
IFacetContext

public class DefaultFacetContext
extends java.lang.Object
implements IFacetContext

Default facet context implementation

Author:
Remi VANKEISBELCK - rvkb.com (remi 'at' rvkb.com)

Constructor Summary
DefaultFacetContext(java.lang.String facetName, IProfile profile, java.lang.Object targetObject, FacetDescriptor facetDescriptor)
           
 
Method Summary
 FacetDescriptor getFacetDescriptor()
          Return the facet descriptor that was used to lookup the facet
 java.lang.String getFacetName()
          Return the name of the facet when it was retrieved.
 IProfile getProfile()
          Return the profile that requested for the facet
 java.lang.Object getTargetObject()
          Return the targetObject for the facet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFacetContext

public DefaultFacetContext(java.lang.String facetName,
                           IProfile profile,
                           java.lang.Object targetObject,
                           FacetDescriptor facetDescriptor)
Method Detail

getFacetName

public java.lang.String getFacetName()
Description copied from interface: IFacetContext
Return the name of the facet when it was retrieved. Should return the same result than getFacetDsecriptor().getName().

Specified by:
getFacetName in interface IFacetContext

getProfile

public IProfile getProfile()
Description copied from interface: IFacetContext
Return the profile that requested for the facet

Specified by:
getProfile in interface IFacetContext

getTargetObject

public java.lang.Object getTargetObject()
Description copied from interface: IFacetContext
Return the targetObject for the facet

Specified by:
getTargetObject in interface IFacetContext

getFacetDescriptor

public FacetDescriptor getFacetDescriptor()
Description copied from interface: IFacetContext
Return the facet descriptor that was used to lookup the facet

Specified by:
getFacetDescriptor in interface IFacetContext
Returns:


Copyright © 2011. All Rights Reserved.