Package jakarta.faces.view.facelets
Class MetaRuleset
java.lang.Object
jakarta.faces.view.facelets.MetaRuleset
- Direct Known Subclasses:
MetaRulesetImpl
public abstract class MetaRuleset extends Object
A mutable set of rules to be used in auto-wiring state to a particular object instance. Rules assigned to this object will be composed into a single Metadata instance which will encapsulate the ruleset.
- Since:
- 2.0
-
Constructor Summary
Constructors Constructor Description MetaRuleset() -
Method Summary
Modifier and Type Method Description abstract MetaRulesetadd(Metadata metadata)Add anotherMetadatato this ruleset, returningthis.abstract MetaRulesetaddRule(MetaRule rule)Add anotherMetaRuleto this ruleset, returningthis.abstract MetaRulesetalias(String attribute, String property)Customize thisMetaRulesetby removing the attribute named by argumentattributeand re-adding it under the name given by the argumentproperty, returningthis.abstract Metadatafinish()Take actions to apply the rule.abstract MetaRulesetignore(String attribute)Customize thisMetaRulesetinstance to advise it to ignore the attribute named by theattributeargument, returningthis.abstract MetaRulesetignoreAll()Customize thisMetaRulesetinstance to advise it to ignore all attributes, returningthis.
-
Constructor Details
-
MetaRuleset
public MetaRuleset()
-
-
Method Details
-
ignore
Customize this
MetaRulesetinstance to advise it to ignore the attribute named by theattributeargument, returningthis.- Parameters:
attribute- the name of the attribute to ignore.- Returns:
- the MetaRuleset with the given attribute ignored.
- Since:
- 2.0
-
ignoreAll
Customize this
MetaRulesetinstance to advise it to ignore all attributes, returningthis.- Returns:
- the ignoreAll
MetaRuleset. - Since:
- 2.0
-
alias
Customize this
MetaRulesetby removing the attribute named by argumentattributeand re-adding it under the name given by the argumentproperty, returningthis.- Parameters:
attribute- the attribute to remove.property- the property to add.- Returns:
- the aliased MetaRuleSet.
- Since:
- 2.0
-
add
Add another
Metadatato this ruleset, returningthis.- Parameters:
metadata- theMetadatato add.- Returns:
- the
MetaRulesetwith theMetadataadded. - Since:
- 2.0
-
addRule
Add another
MetaRuleto this ruleset, returningthis.- Parameters:
rule- the rule to add.- Returns:
- the
MetaRulesetwith theMetaRuleadded. - Since:
- 2.0
-
finish
Take actions to apply the rule.
- Returns:
- the Metadata with the MetaRuleSet applied.
-