KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ws > jaxme > xs > xml > impl > XsEAnyImpl


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.xs.xml.impl;
18
19 import org.apache.ws.jaxme.xs.xml.XsAGOccurs;
20 import org.apache.ws.jaxme.xs.xml.XsEAny;
21 import org.apache.ws.jaxme.xs.xml.XsObject;
22
23
24 /** <p>Implementation of the <code>xs:any</code> element, as
25  * specified by the following:
26  * <pre>
27  * &lt;xs:element name="any" id="any"&gt;
28  * &lt;xs:annotation&gt;
29  * &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-any"/&gt;
30  * &lt;/xs:annotation&gt;
31  * &lt;xs:complexType&gt;
32  * &lt;xs:complexContent&gt;
33  * &lt;xs:extension base="xs:wildcard"&gt;
34  * &lt;xs:attributeGroup ref="xs:occurs"/&gt;
35  * &lt;/xs:extension&gt;
36  * &lt;/xs:complexContent&gt;
37  * &lt;/xs:complexType&gt;
38  * &lt;/xs:element&gt;
39  * </pre></p>
40  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
41  */

42 public class XsEAnyImpl extends XsTWildcardImpl implements XsEAny {
43   private XsAGOccurs occurs = getObjectFactory().newXsAGOccurs(this);
44
45   protected XsEAnyImpl(XsObject pParent) {
46     super(pParent);
47   }
48
49   public void setMaxOccurs(String JavaDoc pMaxOccurs) {
50     occurs.setMaxOccurs(pMaxOccurs);
51   }
52
53   public int getMaxOccurs() {
54     return occurs.getMaxOccurs();
55   }
56
57   public void setMinOccurs(int pMinOccurs) {
58     occurs.setMinOccurs(pMinOccurs);
59   }
60
61   public int getMinOccurs() {
62     return occurs.getMinOccurs();
63   }
64 }
65
Popular Tags