javax.faces.view.facelets
Class MetaRule

java.lang.Object
javax.faces.view.facelets.MetaRule

public abstract class MetaRule

extends java.lang.Object

The root class of the abstraction that
dictates how attributes on a markup element in a Facelets VDL page
are wired to the JSF API object instance associated with that
element. The single method on this interface, applyRule(java.lang.String, javax.faces.view.facelets.TagAttribute, javax.faces.view.facelets.MetadataTarget),
returns an encapsulation of the behavior that actually does the work
of handling the attribute and its value. There are implementations of
specific concrete subclasses of this class for all the basic kinds of
elements that appear in Facelets VDL pages: components,
non-components, and attached objects.

MetaRule

applyRule

Return an abstraction that takes
appropriate action given the kind of rule represented by the
argument name, in the context of this particular
concrete subclass of MetaRule. The abstraction must
encapsulate the value from the argument
attribute.

Parameters:

name - the name for this rule. This will generally be the
name of a tag attribute in the VDL.

attribute - the name/value pair for this attribute on this
particular instance of an element in the page.

meta - the MetadataTarged that can be used to
discern what kind of action to encapsulate within the abstraction
to be returned.