01: /*
02: * This class was automatically generated with
03: * <a href="http://www.castor.org">Castor 0.9.5.2</a>, using an XML
04: * Schema.
05: * $Id: Value.java 6385 2007-10-25 14:02:26Z wehrens $
06: */
07:
08: package org.gridsphere.portletcontainer.impl.descriptor;
09:
10: //---------------------------------/
11: //- Imported classes and packages -/
12: //---------------------------------/
13:
14: import org.exolab.castor.xml.Marshaller;
15: import org.exolab.castor.xml.Unmarshaller;
16:
17: /**
18: * Class Value.
19: *
20: * @version $Revision: 3298 $ $Date: 2004-06-29 07:19:44 -0700 (Tue, 29 Jun 2004) $
21: */
22: public class Value extends ValueType implements java.io.Serializable {
23:
24: //----------------/
25: //- Constructors -/
26: //----------------/
27:
28: public Value() {
29: super ();
30: } //-- org.gridsphere.portletcontainer.jsr.descriptor.Value()
31:
32: //-----------/
33: //- Methods -/
34: //-----------/
35:
36: /**
37: * Method isValid
38: */
39: public boolean isValid() {
40: try {
41: validate();
42: } catch (org.exolab.castor.xml.ValidationException vex) {
43: return false;
44: }
45: return true;
46: } //-- boolean isValid()
47:
48: /**
49: * Method marshal
50: *
51: * @param out
52: */
53: public void marshal(java.io.Writer out)
54: throws org.exolab.castor.xml.MarshalException,
55: org.exolab.castor.xml.ValidationException {
56:
57: Marshaller.marshal(this , out);
58: } //-- void marshal(java.io.Writer)
59:
60: /**
61: * Method marshal
62: *
63: * @param handler
64: */
65: public void marshal(org.xml.sax.ContentHandler handler)
66: throws java.io.IOException,
67: org.exolab.castor.xml.MarshalException,
68: org.exolab.castor.xml.ValidationException {
69:
70: Marshaller.marshal(this , handler);
71: } //-- void marshal(org.xml.sax.ContentHandler)
72:
73: /**
74: * Method unmarshal
75: *
76: * @param reader
77: */
78: public static java.lang.Object unmarshal(java.io.Reader reader)
79: throws org.exolab.castor.xml.MarshalException,
80: org.exolab.castor.xml.ValidationException {
81: return (org.gridsphere.portletcontainer.impl.descriptor.Value) Unmarshaller
82: .unmarshal(
83: org.gridsphere.portletcontainer.impl.descriptor.Value.class,
84: reader);
85: } //-- java.lang.Object unmarshal(java.io.Reader)
86:
87: /**
88: * Method validate
89: */
90: public void validate()
91: throws org.exolab.castor.xml.ValidationException {
92: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
93: validator.validate(this );
94: } //-- void validate()
95:
96: }
|