Package jakarta.faces.view.facelets
Class MetaRuleset
java.lang.Object
jakarta.faces.view.facelets.MetaRuleset
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
-
Method Summary
Modifier and TypeMethodDescriptionabstract MetaRuleset
Add anotherMetadata
to this ruleset, returningthis
.abstract MetaRuleset
Add anotherMetaRule
to this ruleset, returningthis
.abstract MetaRuleset
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
Customize thisMetaRuleset
instance to advise it to ignore the attribute named by theattribute
argument, returningthis
.abstract MetaRuleset
Customize thisMetaRuleset
instance to advise it to ignore all attributes, returningthis
.
-
Constructor Details
-
MetaRuleset
public MetaRuleset()
-
-
Method Details
-
ignore
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
Customize this
MetaRuleset
instance to advise it to ignore all attributes, returningthis
.- Returns:
- the ignoreAll
MetaRuleset
. - Since:
- 2.0
-
alias
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
Add another
Metadata
to this ruleset, returningthis
.- Parameters:
metadata
- theMetadata
to add.- Returns:
- the
MetaRuleset
with theMetadata
added. - Since:
- 2.0
-
addRule
Add another
MetaRule
to this ruleset, returningthis
.- Parameters:
rule
- the rule to add.- Returns:
- the
MetaRuleset
with theMetaRule
added. - Since:
- 2.0
-
finish
Take actions to apply the rule.
- Returns:
- the Metadata with the MetaRuleSet applied.
-