01: /*
02: * SchemaConstruct.java
03: *
04: * Created on September 26, 2006, 10:59 AM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.modules.e2e.api.schema;
11:
12: import javax.xml.namespace.QName;
13:
14: /**
15: *
16: * @author Michal Skvor
17: */
18: public class SchemaConstruct {
19:
20: public enum ConstructType {
21: ELEMENT, TYPE
22: };
23:
24: private String targetNamespace;
25: private QName name;
26: private ConstructType constructType;
27: private String javaName;
28:
29: private SchemaConstruct parent = null;
30:
31: public SchemaConstruct(SchemaConstruct.ConstructType constructType) {
32: this .constructType = constructType;
33: }
34:
35: public SchemaConstruct(SchemaConstruct.ConstructType constructType,
36: QName name) {
37: this .constructType = constructType;
38: this .name = name;
39: }
40:
41: public void setConstructType(
42: SchemaConstruct.ConstructType constructType) {
43: this .constructType = constructType;
44: }
45:
46: public SchemaConstruct.ConstructType getConstructType() {
47: return constructType;
48: }
49:
50: public void setTargetNamespace(String targetNamespace) {
51: this .targetNamespace = targetNamespace;
52: }
53:
54: public String getTargetNamespace() {
55: return targetNamespace;
56: }
57:
58: public void setName(QName name) {
59: this .name = name;
60: }
61:
62: public QName getName() {
63: return name;
64: }
65:
66: public void setJavaName(String name) {
67: javaName = name;
68: }
69:
70: public String getJavaName() {
71: return javaName;
72: }
73:
74: public void setParent(SchemaConstruct parent) {
75: this .parent = parent;
76: }
77:
78: public SchemaConstruct getParent() {
79: return parent;
80: }
81: }
|