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