KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > generator > sg > AttributeSG


1 /*
2  * Copyright 2003,2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15
16  */

17 package org.apache.ws.jaxme.generator.sg;
18
19 import org.apache.ws.jaxme.js.DirectAccessible;
20 import org.apache.ws.jaxme.js.JavaMethod;
21 import org.apache.ws.jaxme.xs.xml.XsNamespaceList;
22 import org.apache.ws.jaxme.xs.xml.XsQName;
23 import org.apache.ws.jaxme.xs.xml.XsTWildcard;
24 import org.apache.ws.jaxme.generator.sg.PropertySG;
25 import org.apache.ws.jaxme.generator.sg.SGItem;
26 import org.apache.ws.jaxme.generator.sg.SGlet;
27 import org.apache.ws.jaxme.generator.sg.TypeSG;
28 import org.xml.sax.SAXException JavaDoc;
29
30
31 /** <p>A source generator for attributes.</p>
32  *
33  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
34  */

35 public interface AttributeSG extends SGItem {
36   /** <p>Returns the attribute name.</p>
37    */

38   public XsQName getName();
39
40   /** <p>Returns whether the attribute is required.</p>
41    */

42   public boolean isRequired();
43
44   /** <p>Invokes the given {@link SGlet} on any attribute value,
45    * assuming they are non-null.</p>
46    */

47   public void forAllValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) throws SAXException JavaDoc;
48
49   /** <p>Invokes the given {@link SGlet} on any non null attribute
50    * value.</p>
51    */

52   public void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) throws SAXException JavaDoc;
53
54   /** <p>Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.PropertySGChain}.</p>
55    */

56   public Object JavaDoc newPropertySGChain();
57
58   /** <p>Returns an instance of {@link org.apache.ws.jaxme.generator.sg.PropertySG}.</p>
59    */

60   public PropertySG getPropertySG();
61
62   /** <p>Returns the attributes type.</p>
63    */

64   public TypeSG getTypeSG();
65
66   /** <p>Returns whether this is a "wildcard" attribute.</p>
67    */

68   public boolean isWildcard();
69
70   /** <p>If this is a "wildcard" attribute: Returns the namespace
71    * list.</p>
72    */

73   public XsNamespaceList getNamespaceList();
74
75   /** <p>If this is a "wildcard" attribute: Returns how to process
76    * unknown attributes.</p>
77    */

78   public XsTWildcard.ProcessContents getProcessContents();
79 }
80
Popular Tags