/*
 * This class was automatically generated with 
 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
 * Schema.
 * $Id: Target.java,v 1.1 2008/09/23 23:10:11 oku Exp $
 */

package com.interpress_project.modernshare.client.controller.model.castor;

  //---------------------------------/
 //- Imported classes and packages -/
//---------------------------------/

import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;

/**
 * Class Target.
 * 
 * @version $Revision: 1.1 $ $Date: 2008/09/23 23:10:11 $
 */
@SuppressWarnings("serial")
public class Target implements java.io.Serializable {


      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * Field _folder.
     */
    private java.lang.String _folder;

    /**
     * Field _tagname.
     */
    private java.lang.String _tagname;

    /**
     * Field _status.
     */
    private java.lang.String _status;

    /**
     * Field _pc2host.
     */
    private boolean _pc2host;

    /**
     * keeps track of state for field: _pc2host
     */
    private boolean _has_pc2host;


      //----------------/
     //- Constructors -/
    //----------------/

    public Target() {
        super();
    }


      //-----------/
     //- Methods -/
    //-----------/

    /**
     */
    public void deletePc2host(
    ) {
        this._has_pc2host= false;
    }

    /**
     * Returns the value of field 'folder'.
     * 
     * @return the value of field 'Folder'.
     */
    public java.lang.String getFolder(
    ) {
        return this._folder;
    }

    /**
     * Returns the value of field 'pc2host'.
     * 
     * @return the value of field 'Pc2host'.
     */
    public boolean getPc2host(
    ) {
        return this._pc2host;
    }

    /**
     * Returns the value of field 'status'.
     * 
     * @return the value of field 'Status'.
     */
    public java.lang.String getStatus(
    ) {
        return this._status;
    }

    /**
     * Returns the value of field 'tagname'.
     * 
     * @return the value of field 'Tagname'.
     */
    public java.lang.String getTagname(
    ) {
        return this._tagname;
    }

    /**
     * Method hasPc2host.
     * 
     * @return true if at least one Pc2host has been added
     */
    public boolean hasPc2host(
    ) {
        return this._has_pc2host;
    }

    /**
     * Returns the value of field 'pc2host'.
     * 
     * @return the value of field 'Pc2host'.
     */
    public boolean isPc2host(
    ) {
        return this._pc2host;
    }

    /**
     * Method isValid.
     * 
     * @return true if this object is valid according to the schema
     */
    public boolean isValid(
    ) {
        try {
            validate();
        } catch (org.exolab.castor.xml.ValidationException vex) {
            return false;
        }
        return true;
    }

    /**
     * 
     * 
     * @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 'folder'.
     * 
     * @param folder the value of field 'folder'.
     */
    public void setFolder(
            final java.lang.String folder) {
        this._folder = folder;
    }

    /**
     * Sets the value of field 'pc2host'.
     * 
     * @param pc2host the value of field 'pc2host'.
     */
    public void setPc2host(
            final boolean pc2host) {
        this._pc2host = pc2host;
        this._has_pc2host = true;
    }

    /**
     * Sets the value of field 'status'.
     * 
     * @param status the value of field 'status'.
     */
    public void setStatus(
            final java.lang.String status) {
        this._status = status;
    }

    /**
     * Sets the value of field 'tagname'.
     * 
     * @param tagname the value of field 'tagname'.
     */
    public void setTagname(
            final java.lang.String tagname) {
        this._tagname = tagname;
    }

    /**
     * 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
     * com.interpress_project.modernshare.client.controller.model.castor.Target
     */
    public static com.interpress_project.modernshare.client.controller.model.castor.Target unmarshal(
            final java.io.Reader reader)
    throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
        return (com.interpress_project.modernshare.client.controller.model.castor.Target) Unmarshaller.unmarshal(com.interpress_project.modernshare.client.controller.model.castor.Target.class, reader);
    }

    /**
     * 
     * 
     * @throws org.exolab.castor.xml.ValidationException if this
     * object is an invalid instance according to the schema
     */
    public void validate(
    )
    throws org.exolab.castor.xml.ValidationException {
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
        validator.validate(this);
    }

}
