KickJava   Java API By Example, From Geeks To Geeks.

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


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.*;
20
21
22 /** <p>Implementation of <code>xs:import</code>, as specified by
23  * the following:
24  * <pre>
25  * &lt;xs:element name="import" id="import"&gt;
26  * &lt;xs:annotation&gt;
27  * &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-import"/&gt;
28  * &lt;/xs:annotation&gt;
29  * &lt;xs:complexType&gt;
30  * &lt;xs:complexContent&gt;
31  * &lt;xs:extension base="xs:annotated"&gt;
32  * &lt;xs:attribute name="namespace" type="xs:anyURI"/&gt;
33  * &lt;xs:attribute name="schemaLocation" type="xs:anyURI"/&gt;
34  * &lt;/xs:extension&gt;
35  * &lt;/xs:complexContent&gt;
36  * &lt;/xs:complexType&gt;
37  * &lt;/xs:element&gt;
38  * </pre></p>
39  *
40  * @author <a HREF="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
41  */

42 public class XsEImportImpl extends XsTAnnotatedImpl implements XsEImport {
43   private XsAnyURI namespace;
44   private XsAnyURI schemaLocation;
45
46   protected XsEImportImpl(XsObject pParent) {
47     super(pParent);
48   }
49
50   public void setNamespace(XsAnyURI pNamespace) {
51     namespace = pNamespace;
52   }
53
54   public XsAnyURI getNamespace() {
55     return namespace;
56   }
57
58   public void setSchemaLocation(XsAnyURI pSchemaLocation) {
59     schemaLocation = pSchemaLocation;
60   }
61
62   public XsAnyURI getSchemaLocation() {
63     return schemaLocation;
64   }
65 }
66
Popular Tags