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 ViewParameterValue.
026: *
027: * @version $Revision$ $Date$
028: */
029: public class ViewParameterValue implements java.io.Serializable {
030:
031: //--------------------------/
032: //- Class/Member Variables -/
033: //--------------------------/
034:
035: /**
036: * Field _viewParamName
037: */
038: private java.lang.String _viewParamName;
039:
040: /**
041: * Field _viewParamValue
042: */
043: private java.lang.String _viewParamValue;
044:
045: //----------------/
046: //- Constructors -/
047: //----------------/
048:
049: public ViewParameterValue() {
050: super ();
051: } //-- com.calipso.reportgenerator.reportdefinitions.ViewParameterValue()
052:
053: //-----------/
054: //- Methods -/
055: //-----------/
056:
057: /**
058: * Method getViewParamNameReturns the value of field
059: * 'viewParamName'.
060: *
061: * @return the value of field 'viewParamName'.
062: */
063: public java.lang.String getViewParamName() {
064: return this ._viewParamName;
065: } //-- java.lang.String getViewParamName()
066:
067: /**
068: * Method getViewParamValueReturns the value of field
069: * 'viewParamValue'.
070: *
071: * @return the value of field 'viewParamValue'.
072: */
073: public java.lang.String getViewParamValue() {
074: return this ._viewParamValue;
075: } //-- java.lang.String getViewParamValue()
076:
077: /**
078: * Method isValid
079: */
080: public boolean isValid() {
081: try {
082: validate();
083: } catch (org.exolab.castor.xml.ValidationException vex) {
084: return false;
085: }
086: return true;
087: } //-- boolean isValid()
088:
089: /**
090: * Method marshal
091: *
092: * @param out
093: */
094: public void marshal(java.io.Writer out)
095: throws org.exolab.castor.xml.MarshalException,
096: org.exolab.castor.xml.ValidationException {
097:
098: Marshaller.marshal(this , out);
099: } //-- void marshal(java.io.Writer)
100:
101: /**
102: * Method marshal
103: *
104: * @param handler
105: */
106: public void marshal(org.xml.sax.ContentHandler handler)
107: throws java.io.IOException,
108: org.exolab.castor.xml.MarshalException,
109: org.exolab.castor.xml.ValidationException {
110:
111: Marshaller.marshal(this , handler);
112: } //-- void marshal(org.xml.sax.ContentHandler)
113:
114: /**
115: * Method setViewParamNameSets the value of field
116: * 'viewParamName'.
117: *
118: * @param viewParamName the value of field 'viewParamName'.
119: */
120: public void setViewParamName(java.lang.String viewParamName) {
121: this ._viewParamName = viewParamName;
122: } //-- void setViewParamName(java.lang.String)
123:
124: /**
125: * Method setViewParamValueSets the value of field
126: * 'viewParamValue'.
127: *
128: * @param viewParamValue the value of field 'viewParamValue'.
129: */
130: public void setViewParamValue(java.lang.String viewParamValue) {
131: this ._viewParamValue = viewParamValue;
132: } //-- void setViewParamValue(java.lang.String)
133:
134: /**
135: * Method unmarshal
136: *
137: * @param reader
138: */
139: public static com.calipso.reportgenerator.reportdefinitions.ViewParameterValue unmarshal(
140: java.io.Reader reader)
141: throws org.exolab.castor.xml.MarshalException,
142: org.exolab.castor.xml.ValidationException {
143: return (com.calipso.reportgenerator.reportdefinitions.ViewParameterValue) Unmarshaller
144: .unmarshal(
145: com.calipso.reportgenerator.reportdefinitions.ViewParameterValue.class,
146: reader);
147: } //-- com.calipso.reportgenerator.reportdefinitions.ViewParameterValue unmarshal(java.io.Reader)
148:
149: /**
150: * Method validate
151: */
152: public void validate()
153: throws org.exolab.castor.xml.ValidationException {
154: org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
155: validator.validate(this );
156: } //-- void validate()
157:
158: }
|