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

public Class MetaRulesetImpl

extends MetaRuleset
Class Inheritance
Known Direct Subclasses
com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.CompositeComponentMetaRuleset
Imports
com.sun.faces.util.FacesLogger, .Util, javax.faces.view.facelets.*, java.beans.IntrospectionException, java.util.*, java.util.logging.Level, .Logger, java.lang.ref.WeakReference

Author
Jacob Hookom
Version
$Id$

Field Summary

Modifier and TypeField and Description
private final Map<String, TagAttribute>
private static final Logger
private final List<Metadata>
private static final Map<Class<T>, WeakReference<MetadataTarget>>
private static final Metadata
private final List<MetaRule>
private final Tag
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
MetaRulesetImpl(Tag tag, Class<?> type)

Method Summary

Modifier and TypeMethod and Description
public MetaRuleset
add(Metadata
the Metadata to add.
mapper
)

Implements abstract javax.faces.view.facelets.MetaRuleset.add.

Add another Metadata to this ruleset, returning this.

public MetaRuleset
addRule(MetaRule
the rule to add.
rule
)

Implements abstract javax.faces.view.facelets.MetaRuleset.addRule.

Add another MetaRule to this ruleset, returning this.

public MetaRuleset
alias(String
the attribute to remove.
attribute
,
String
the property to add.
property
)

Implements abstract javax.faces.view.facelets.MetaRuleset.alias.

Customize this MetaRuleset by removing the attribute named by argument attribute and re-adding it under the name given by the argument property, returning this.

public Metadata
finish()

Implements abstract javax.faces.view.facelets.MetaRuleset.finish.

Take actions to apply the rule.

protected MetadataTarget
public MetaRuleset
ignore(String
the name of the attribute to ignore.
attribute
)

Implements abstract javax.faces.view.facelets.MetaRuleset.ignore.

Customize this MetaRuleset instance to advise it to ignore the attribute named by the attribute argument, returning this.

public MetaRuleset
ignoreAll()

Implements abstract javax.faces.view.facelets.MetaRuleset.ignoreAll.

Customize this MetaRuleset instance to advise it to ignore all attributes, returning this.

Field Detail

attributesback to summary
private final Map<String, TagAttribute> attributes
LOGGERback to summary
private static final Logger LOGGER
mappersback to summary
private final List<Metadata> mappers
metadataback to summary
private static final Map<Class<T>, WeakReference<MetadataTarget>> metadata
NONEback to summary
private static final Metadata NONE
rulesback to summary
private final List<MetaRule> rules
tagback to summary
private final Tag tag
typeback to summary
private final Class<T> type

Constructor Detail

MetaRulesetImplback to summary
public MetaRulesetImpl(Tag tag, Class<?> type)

Method Detail

addback to summary
public MetaRuleset add(Metadata mapper)

Implements abstract javax.faces.view.facelets.MetaRuleset.add.

Doc from javax.faces.view.facelets.MetaRuleset.add.

Add another Metadata to this ruleset, returning this.

Parameters
mapper:Metadata

the Metadata to add.

Returns:MetaRuleset

the MetaRuleset with the Metadata added.

Annotations
@Override
addRuleback to summary
public MetaRuleset addRule(MetaRule rule)

Implements abstract javax.faces.view.facelets.MetaRuleset.addRule.

Doc from javax.faces.view.facelets.MetaRuleset.addRule.

Add another MetaRule to this ruleset, returning this.

Parameters
rule:MetaRule

the rule to add.

Returns:MetaRuleset

the MetaRuleset with the MetaRule added.

Annotations
@Override
aliasback to summary
public MetaRuleset alias(String attribute, String property)

Implements abstract javax.faces.view.facelets.MetaRuleset.alias.

Doc from javax.faces.view.facelets.MetaRuleset.alias.

Customize this MetaRuleset by removing the attribute named by argument attribute and re-adding it under the name given by the argument property, returning this.

Parameters
attribute:String

the attribute to remove.

property:String

the property to add.

Returns:MetaRuleset

the aliased MetaRuleSet.

Annotations
@Override
finishback to summary
public Metadata finish()

Implements abstract javax.faces.view.facelets.MetaRuleset.finish.

Doc from javax.faces.view.facelets.MetaRuleset.finish.

Take actions to apply the rule.

Returns:Metadata

the Metadata with the MetaRuleSet applied.

Annotations
@Override
getMetadataTargetback to summary
protected MetadataTarget getMetadataTarget()
ignoreback to summary
public MetaRuleset ignore(String attribute)

Implements abstract javax.faces.view.facelets.MetaRuleset.ignore.

Doc from javax.faces.view.facelets.MetaRuleset.ignore.

Customize this MetaRuleset instance to advise it to ignore the attribute named by the attribute argument, returning this.

Parameters
attribute:String

the name of the attribute to ignore.

Returns:MetaRuleset

the MetaRuleset with the given attribute ignored.

Annotations
@Override
ignoreAllback to summary
public MetaRuleset ignoreAll()

Implements abstract javax.faces.view.facelets.MetaRuleset.ignoreAll.

Doc from javax.faces.view.facelets.MetaRuleset.ignoreAll.

Customize this MetaRuleset instance to advise it to ignore all attributes, returning this.

Returns:MetaRuleset

the ignoreAll MetaRuleset.

Annotations
@Override