1
2
3
4
5
6
7
8 package org.exolab.castor.builder.binding.xml;
9
10
11
12
13
14
15 public class Interface implements java.io.Serializable {
16
17
18
19
20
21
22
23
24
25 private java.lang.String _name;
26
27
28
29
30
31
32 public Interface() {
33 super();
34 }
35
36
37
38
39
40
41
42
43
44
45
46 public java.lang.String getName(
47 ) {
48 return this._name;
49 }
50
51
52
53
54
55
56 public boolean isValid(
57 ) {
58 try {
59 validate();
60 } catch (org.exolab.castor.xml.ValidationException vex) {
61 return false;
62 }
63 return true;
64 }
65
66
67
68
69
70
71
72
73
74
75 public void marshal(
76 final java.io.Writer out)
77 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
78 org.exolab.castor.xml.Marshaller.marshal(this, out);
79 }
80
81
82
83
84
85
86
87
88
89
90
91
92 public void marshal(
93 final org.xml.sax.ContentHandler handler)
94 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
95 org.exolab.castor.xml.Marshaller.marshal(this, handler);
96 }
97
98
99
100
101
102
103 public void setName(
104 final java.lang.String name) {
105 this._name = name;
106 }
107
108
109
110
111
112
113
114
115
116
117
118
119 public static org.exolab.castor.builder.binding.xml.Interface unmarshalInterface(
120 final java.io.Reader reader)
121 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
122 return (org.exolab.castor.builder.binding.xml.Interface) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.builder.binding.xml.Interface.class, reader);
123 }
124
125
126
127
128
129
130
131 public void validate(
132 )
133 throws org.exolab.castor.xml.ValidationException {
134 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
135 validator.validate(this);
136 }
137
138 }