net.sourceforge.jfacets
Interface IInstanceFacet


public interface IInstanceFacet

Interface to be implemented by instance facets. Such facets are assigned to a target object type and must match a given instance in order to be returned by JFacets to clients.
Instance facets are created while JFacets climbs up the profiles/types graphs, so that it knows if they match or not. If they don't, it's just like they never existed in the lookup process.

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

Method Summary
 boolean matchesTargetObject(Object targetObject)
          Invoked on the facet just after creation (and assignation of the facet context if the facet also implements IFacet) to check wether this instance facet matches the target object or not.
 

Method Detail

matchesTargetObject

boolean matchesTargetObject(Object targetObject)
Invoked on the facet just after creation (and assignation of the facet context if the facet also implements IFacet) to check wether this instance facet matches the target object or not. the target object, false otherwise.

Parameters:
targetObject - The target object of the facet, as passed to jfacets.getFacet(...). CAN BE NULL in case of facets retrieved only by their type (with a null target object)
Returns:
true if this instance facet matches


Copyright © 2012. All Rights Reserved.