001: /*
002: * This class was automatically generated with
003: * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
004: * Schema.
005: * $Id$
006: */
007:
008: package com.calipso.reportgenerator.reportdefinitions;
009:
010: //---------------------------------/
011: //- Imported classes and packages -/
012: //---------------------------------/
013:
014: import java.io.IOException;
015: import java.io.Reader;
016: import java.io.Serializable;
017: import java.io.Writer;
018: import org.exolab.castor.xml.MarshalException;
019: import org.exolab.castor.xml.Marshaller;
020: import org.exolab.castor.xml.Unmarshaller;
021: import org.exolab.castor.xml.ValidationException;
022: import org.xml.sax.ContentHandler;
023:
024: /**
025: * Class ExcludeValue.
026: *
027: * @version $Revision$ $Date$
028: */
029: public class ExcludeValue implements java.io.Serializable {
030:
031: //--------------------------/
032: //- Class/Member Variables -/
033: //--------------------------/
034:
035: /**
036: * Field _value
037: */
038: private java.lang.String _value;
039:
040: //----------------/
041: //- Constructors -/
042: //----------------/
043:
044: public ExcludeValue() {
045: super ();
046: } //-- com.calipso.reportgenerator.reportdefinitions.ExcludeValue()
047:
048: //-----------/
049: //- Methods -/
050: //-----------/
051:
052: /**
053: * Method getValueReturns the value of field 'value'.
054: *
055: * @return the value of field 'value'.
056: */
057: public java.lang.String getValue() {
058: return this ._value;
059: } //-- java.lang.String getValue()
060:
061: /**
062: * Method isValid
063: */
064: public boolean isValid() {
065: try {
066: validate();
067: } catch (org.exolab.castor.xml.ValidationException vex) {
068: return false;
069: }
070: return true;
071: } //-- boolean isValid()
072:
073: /**
074: * Method marshal
075: *
076: * @param out
077: */
078: public void marshal(java.io.Writer out)
079: throws org.exolab.castor.xml.MarshalException,
080: org.exolab.castor.xml.ValidationException {
081:
082: Marshaller.marshal(this , out);
083: } //-- void marshal(java.io.Writer)
084:
085: /**
086: * Method marshal
087: *
088: * @param handler
089: */
090: public void marshal(org.xml.sax.ContentHandler handler)
091: throws java.io.IOException,
092: org.exolab.castor.xml.MarshalException,
093: org.exolab.castor.xml.ValidationException {
094:
095: Marshaller.marshal(this , handler);
096: } //-- void marshal(org.xml.sax.ContentHandler)
097:
098: /**
099: * Method setValueSets the value of field 'value'.
100: *
101: * @param value the value of field 'value'.
102: */
103: public void setValue(java.lang.String value) {
104: this ._value = value;
105: } //-- void setValue(java.lang.String)
106:
107: /**
108: * Method unmarshal
109: *
110: * @param reader
111: */
112: public static com.calipso.reportgenerator.reportdefinitions.ExcludeValue unmarshal(
113: java.io.Reader reader)
114: throws org.exolab.castor.xml.MarshalException,
115: org.exolab.castor.xml.ValidationException {
116: return (com.calipso.reportgenerator.reportdefinitions.ExcludeValue) Unmarshaller
117: .unmarshal(
118: com.calipso.reportgenerator.reportdefinitions.ExcludeValue.class,
119: reader);
120: } //-- com.calipso.reportgenerator.reportdefinitions.ExcludeValue unmarshal(java.io.Reader)
121:
122: /**
123: * Method validate
124: */
125: public void validate()
126: throws org.exolab.castor.xml.ValidationException {
127: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
128: validator.validate(this );
129: } //-- void validate()
130:
131: }
|