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 Rol.
026: *
027: * @version $Revision$ $Date$
028: */
029: public class Rol implements java.io.Serializable {
030:
031: //--------------------------/
032: //- Class/Member Variables -/
033: //--------------------------/
034:
035: /**
036: * Field _name
037: */
038: private java.lang.String _name;
039:
040: //----------------/
041: //- Constructors -/
042: //----------------/
043:
044: public Rol() {
045: super ();
046: } //-- com.calipso.reportgenerator.reportdefinitions.Rol()
047:
048: //-----------/
049: //- Methods -/
050: //-----------/
051:
052: /**
053: * Method getNameReturns the value of field 'name'.
054: *
055: * @return the value of field 'name'.
056: */
057: public java.lang.String getName() {
058: return this ._name;
059: } //-- java.lang.String getName()
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 setNameSets the value of field 'name'.
100: *
101: * @param name the value of field 'name'.
102: */
103: public void setName(java.lang.String name) {
104: this ._name = name;
105: } //-- void setName(java.lang.String)
106:
107: /**
108: * Method unmarshal
109: *
110: * @param reader
111: */
112: public static com.calipso.reportgenerator.reportdefinitions.Rol 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.Rol) Unmarshaller
117: .unmarshal(
118: com.calipso.reportgenerator.reportdefinitions.Rol.class,
119: reader);
120: } //-- com.calipso.reportgenerator.reportdefinitions.Rol 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: }
|