package org.infosec.ismp.model; import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; /** * parm value * * @version $Revision$ $Date$ */ @SuppressWarnings("serial") public class Value implements java.io.Serializable { /** * internal content storage */ private java.lang.String _content = ""; /** * Field _type. */ private java.lang.String _type = "string"; /** * Field _encoding. */ private java.lang.String _encoding = "text"; // ----------------/ // - Constructors -/ // ----------------/ public Value() { super(); setContent(""); setType("string"); setEncoding("text"); } // -----------/ // - Methods -/ // -----------/ /** * Returns the value of field 'content'. The field 'content' * has the following description: internal content storage * * @return the value of field 'Content'. */ public java.lang.String getContent() { return this._content; } /** * Returns the value of field 'encoding'. * * @return the value of field 'Encoding'. */ public java.lang.String getEncoding() { return this._encoding; } /** * Returns the value of field 'type'. * * @return the value of field 'Type'. */ public java.lang.String getType() { return this._type; } /** * * * @param out * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema */ public void marshal(final java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } /** * * * @param handler * @throws java.io.IOException if an IOException occurs during * marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling */ public void marshal(final org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } /** * Sets the value of field 'content'. The field 'content' has * the following description: internal content storage * * @param content the value of field 'content'. */ public void setContent(final java.lang.String content) { this._content = content; } /** * Sets the value of field 'encoding'. * * @param encoding the value of field 'encoding'. */ public void setEncoding(final java.lang.String encoding) { this._encoding = encoding; } /** * Sets the value of field 'type'. * * @param type the value of field 'type'. */ public void setType(final java.lang.String type) { this._type = type; } /** * Method unmarshal. * * @param reader * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema * @return the unmarshaled org.opennms.netmgt.xml.event.Value */ public static Value unmarshal(final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (Value) Unmarshaller.unmarshal(Value.class, reader); } }