01: /**
02: * Licensed under the Common Development and Distribution License,
03: * you may not use this file except in compliance with the License.
04: * You may obtain a copy of the License at
05: *
06: * http://www.sun.com/cddl/
07: *
08: * Unless required by applicable law or agreed to in writing, software
09: * distributed under the License is distributed on an "AS IS" BASIS,
10: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11: * implied. See the License for the specific language governing
12: * permissions and limitations under the License.
13: */package com.sun.facelets.tag;
14:
15: /**
16: * A mutable set of rules to be used in auto-wiring state to a particular object
17: * instance. Rules assigned to this object will be composed into a single
18: * Metadata instance.
19: *
20: * @author Jacob Hookom
21: * @version $Id: MetaRuleset.java,v 1.2 2005/08/24 04:38:47 jhook Exp $
22: */
23: public abstract class MetaRuleset {
24: /**
25: * @param attribute
26: * @return
27: */
28: public abstract MetaRuleset ignore(String attribute);
29:
30: /**
31: * @return
32: */
33: public abstract MetaRuleset ignoreAll();
34:
35: /**
36: * @param attribute
37: * @param property
38: * @return
39: */
40: public abstract MetaRuleset alias(String attribute, String property);
41:
42: /**
43: * @param mapper
44: * @return
45: */
46: public abstract MetaRuleset add(Metadata mapper);
47:
48: /**
49: * @param rule
50: * @return
51: */
52: public abstract MetaRuleset addRule(MetaRule rule);
53:
54: /**
55: * @return
56: */
57: public abstract Metadata finish();
58: }
|