Source code: org/apache/axis/wsdl/symbolTable/Type.java
1 /*
2 * Copyright 2001-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 package org.apache.axis.wsdl.symbolTable;
17
18 import org.w3c.dom.Node;
19
20 import javax.xml.namespace.QName;
21
22 /**
23 * This class represents a TypeEntry that is a type (complexType, simpleType, etc.
24 *
25 * @author Rich Scheuerle (scheu@us.ibm.com)
26 */
27 public abstract class Type extends TypeEntry {
28 private boolean generated; // true if java class is generated during WSDL->Java processing
29
30 /**
31 * Create a Type object for an xml construct name that represents a base type
32 *
33 * @param pqName
34 */
35 protected Type(QName pqName) {
36 super(pqName);
37 }
38
39 /**
40 * Create a TypeEntry object for an xml construct that references a type that has
41 * not been defined yet. Defer processing until refType is known.
42 *
43 * @param pqName
44 * @param refType
45 * @param pNode
46 * @param dims
47 */
48 protected Type(QName pqName, TypeEntry refType, Node pNode, String dims) {
49 super(pqName, refType, pNode, dims);
50 }
51
52 /**
53 * Create a Type object for an xml construct that is not a base type
54 *
55 * @param pqName
56 * @param pNode
57 */
58 protected Type(QName pqName, Node pNode) {
59 super(pqName, pNode);
60 }
61 public void setGenerated(boolean b) {
62 generated = b;
63 }
64
65 public boolean isGenerated() {
66 return generated;
67 }
68 }