Package jakarta.faces.view.facelets
Class MetaRuleset
- java.lang.Object
-
- jakarta.faces.view.facelets.MetaRuleset
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract MetaRuleset
add(Metadata metadata)
Add anotherMetadata
to this ruleset, returningthis
.abstract MetaRuleset
addRule(MetaRule rule)
Add anotherMetaRule
to this ruleset, returningthis
.abstract MetaRuleset
alias(String attribute, String property)
Customize thisMetaRuleset
by removing the attribute named by argumentattribute
and re-adding it under the name given by the argumentproperty
, returningthis
.abstract Metadata
finish()
Take actions to apply the rule.abstract MetaRuleset
ignore(String attribute)
Customize thisMetaRuleset
instance to advise it to ignore the attribute named by theattribute
argument, returningthis
.abstract MetaRuleset
ignoreAll()
Customize thisMetaRuleset
instance to advise it to ignore all attributes, returningthis
.
-
-
-
Method Detail
-
ignore
public abstract MetaRuleset ignore(String attribute)
Customize this
MetaRuleset
instance to advise it to ignore the attribute named by theattribute
argument, returningthis
.- Parameters:
attribute
- the name of the attribute to ignore.- Returns:
- the MetaRuleset with the given attribute ignored.
- Since:
- 2.0
-
ignoreAll
public abstract MetaRuleset ignoreAll()
Customize this
MetaRuleset
instance to advise it to ignore all attributes, returningthis
.- Returns:
- the ignoreAll
MetaRuleset
. - Since:
- 2.0
-
alias
public abstract MetaRuleset alias(String attribute, String property)
Customize this
MetaRuleset
by removing the attribute named by argumentattribute
and 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
public abstract MetaRuleset add(Metadata metadata)
Add another
Metadata
to this ruleset, returningthis
.- Parameters:
metadata
- theMetadata
to add.- Returns:
- the
MetaRuleset
with theMetadata
added. - Since:
- 2.0
-
addRule
public abstract MetaRuleset addRule(MetaRule rule)
Add another
MetaRule
to this ruleset, returningthis
.- Parameters:
rule
- the rule to add.- Returns:
- the
MetaRuleset
with theMetaRule
added. - Since:
- 2.0
-
finish
public abstract Metadata finish()
Take actions to apply the rule.
- Returns:
- the Metadata with the MetaRuleSet applied.
-
-