1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.ws.commons.schema;
21
22 import javax.xml.namespace.QName;
23
24
25
26
27
28
29
30
31 public class XmlSchemaComplexContentExtension extends XmlSchemaContent {
32
33
34
35
36 public XmlSchemaComplexContentExtension() {
37 attributes = new XmlSchemaObjectCollection();
38
39 }
40
41
42 XmlSchemaAnyAttribute anyAttribute;
43
44 public void setAnyAttribute(XmlSchemaAnyAttribute anyAttribute) {
45 this.anyAttribute = anyAttribute;
46 }
47
48 public XmlSchemaAnyAttribute getAnyAttribute() {
49 return this.anyAttribute;
50 }
51
52
53 XmlSchemaObjectCollection attributes;
54
55 public XmlSchemaObjectCollection getAttributes() {
56 return this.attributes;
57 }
58
59
60 QName baseTypeName;
61
62 public void setBaseTypeName(QName baseTypeName) {
63 this.baseTypeName = baseTypeName;
64 }
65
66 public QName getBaseTypeName() {
67 return this.baseTypeName;
68 }
69
70
71 XmlSchemaParticle particle;
72
73 public XmlSchemaParticle getParticle() {
74 return this.particle;
75 }
76
77 public void setParticle(XmlSchemaParticle particle) {
78 this.particle = particle;
79 }
80
81 public String toString(String prefix, int tab) {
82 String xml = new String();
83 for (int i = 0; i < tab; i++)
84 xml += "\t";
85 if (!prefix.equals("") && prefix.indexOf(":") == -1)
86 prefix += ":";
87
88 xml += "<" + prefix + "extension>\n";
89
90 if (particle != null)
91 xml += particle.toString(prefix, (tab + 1));
92
93 for (int i = 0; i < tab; i++)
94 xml += "\t";
95
96 xml += "</" + prefix + "extension>\n";
97 return xml;
98 }
99 }