Top Inners Fields Constructors Methods
com.sun.faces.facelets.tag.faces

pack-priv final Class ComponentRule

extends MetaRule
Class Inheritance
Imports
java.util.logging.Level, .Logger, com.sun.faces.util.FacesLogger, jakarta.faces.component.UIComponent, jakarta.faces.view.facelets.FaceletContext, .MetaRule, .Metadata, .MetadataTarget, .TagAttribute

Author
Jacob Hookom
Version
$Id$

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
public static final ComponentRule
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Metadata
applyRule(String
the name for this rule. This will generally be the name of a tag attribute in the VDL.
name
,
TagAttribute
the name/value pair for this attribute on this particular instance of an element in the page.
attribute
,
MetadataTarget
the MetadataTarged that can be used to discern what kind of action to encapsulate within the abstraction to be returned.
meta
)

Implements abstract jakarta.faces.view.facelets.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.

private static void
warnAttr(TagAttribute attr, Class<?> type, String n)

Field Detail

Instanceback to summary
public static final ComponentRule Instance
logback to summary
private static final Logger log

Constructor Detail

ComponentRuleback to summary
public ComponentRule()

Method Detail

applyRuleback to summary
public Metadata applyRule(String name, TagAttribute attribute, MetadataTarget meta)

Implements abstract jakarta.faces.view.facelets.MetaRule.applyRule.

Doc from jakarta.faces.view.facelets.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:String

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

attribute:TagAttribute

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

meta:MetadataTarget

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

Returns:Metadata

the Metadata.

Annotations
@Override
warnAttrback to summary
private static void warnAttr(TagAttribute attr, Class<?> type, String n)
com.sun.faces.facelets.tag.faces back to summary

pack-priv final Class ComponentRule.LiteralAttributeMetadata

extends Metadata
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
applyMetadata(FaceletContext
The FaceletContext for this request.
ctx
,
Object
The instance from the Jakarta Faces Java API on which the action should be taken. For example, an instance of jakarta.faces.component.EditableValueHolder.
instance
)

Implements abstract jakarta.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute.

Field Detail

nameback to summary
private final String name
valueback to summary
private final String value

Constructor Detail

LiteralAttributeMetadataback to summary
public LiteralAttributeMetadata(String name, String value)

Method Detail

applyMetadataback to summary
public void applyMetadata(FaceletContext ctx, Object instance)

Implements abstract jakarta.faces.view.facelets.Metadata.applyMetadata.

Doc from jakarta.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute.

Parameters
ctx:FaceletContext

The FaceletContext for this request.

instance:Object

The instance from the Jakarta Faces Java API on which the action should be taken. For example, an instance of jakarta.faces.component.EditableValueHolder.

Annotations
@Override
com.sun.faces.facelets.tag.faces back to summary

pack-priv final Class ComponentRule.ValueExpressionMetadata

extends Metadata
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final TagAttribute
private final String
private final Class<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
applyMetadata(FaceletContext
The FaceletContext for this request.
ctx
,
Object
The instance from the Jakarta Faces Java API on which the action should be taken. For example, an instance of jakarta.faces.component.EditableValueHolder.
instance
)

Implements abstract jakarta.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute.

Field Detail

attrback to summary
private final TagAttribute attr
nameback to summary
private final String name
typeback to summary
private final Class<?> type

Constructor Detail

ValueExpressionMetadataback to summary
public ValueExpressionMetadata(String name, Class<T> type, TagAttribute attr)

Method Detail

applyMetadataback to summary
public void applyMetadata(FaceletContext ctx, Object instance)

Implements abstract jakarta.faces.view.facelets.Metadata.applyMetadata.

Doc from jakarta.faces.view.facelets.Metadata.applyMetadata.

Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute.

Parameters
ctx:FaceletContext

The FaceletContext for this request.

instance:Object

The instance from the Jakarta Faces Java API on which the action should be taken. For example, an instance of jakarta.faces.component.EditableValueHolder.

Annotations
@Override