/*
 * #%L
 * OME-XML C++ library for working with OME-XML metadata structures.
 * %%
 * Copyright © 2006 - 2016 Open Microscopy Environment:
 *   - Massachusetts Institute of Technology
 *   - National Institutes of Health
 *   - University of Dundee
 *   - Board of Regents of the University of Wisconsin-Madison
 *   - Glencoe Software, Inc.
 * %%
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 * The views and conclusions contained in the software and documentation are
 * those of the authors and should not be interpreted as representing official
 * policies, either expressed or implied, of any organization.
 * #L%
 */

/*─────────────────────────────────────────────────────────────────────────────
 *
 * THIS IS AUTOMATICALLY GENERATED CODE.  DO NOT MODIFY.
 *
 *─────────────────────────────────────────────────────────────────────────────
 */

#ifndef OME_XML_MODEL_MANUFACTURERSPEC_H
#define OME_XML_MODEL_MANUFACTURERSPEC_H

#include <algorithm>
#include <list>
#include <stdexcept>
#include <string>
#include <vector>

#include <ome/common/log.h>

#include <ome/common/xml/dom/Document.h>
#include <ome/common/xml/dom/Element.h>
#include <ome/common/xml/dom/Node.h>
#include <ome/common/xml/dom/NodeList.h>

#include <ome/xml/model/detail/OMEModelObject.h>

namespace ome
{
  namespace xml
  {
    namespace model
    {

      // Forward declarations.
      class OMEModel;

      /**
       * ManufacturerSpec model object.
       */
      class ManufacturerSpec : public detail::OMEModelObject
      {
      private:
        class Impl;
        /// Private implementation details.
        ome::compat::shared_ptr<Impl> impl;

      public:
        /// Default constructor.
        ManufacturerSpec();

        /**
         * Copy constructor.
         *
         * @param copy the ManufacturerSpec to copy.
         */
        ManufacturerSpec (const ManufacturerSpec& copy);

        /// Destructor.
        virtual
        ~ManufacturerSpec ();


        // Documented in superclass.
        bool
        validElementName(const std::string& name) const;


        // -- OMEModelObject API methods --

        /// @copydoc ome::xml::model::OMEModelObject::update
        virtual void
        update(const common::xml::dom::Element&  element,
               ome::xml::model::OMEModel& model);

      public:
        // -- ManufacturerSpec API methods --

        /// @copydoc ome::xml::model::OMEModelObject::link
        bool
        link (ome::compat::shared_ptr<Reference>& reference,
              ome::compat::shared_ptr< ome::xml::model::OMEModelObject>& object);

        /**
         * Get the LotNumber property.
         *
         * @returns the LotNumber property.
         */
        ome::compat::shared_ptr<std::string>
        getLotNumber ();

        /**
         * Get the LotNumber property.
         *
         * @returns the LotNumber property.
         */
        const ome::compat::shared_ptr<std::string>
        getLotNumber () const;

        /**
         * Set the LotNumber property.
         *
         * @param lotNumber the value to set.
         */
        void
        setLotNumber (ome::compat::shared_ptr<std::string>& lotNumber);

        /**
         * Get the Model property.
         *
         * @returns the Model property.
         */
        ome::compat::shared_ptr<std::string>
        getModel ();

        /**
         * Get the Model property.
         *
         * @returns the Model property.
         */
        const ome::compat::shared_ptr<std::string>
        getModel () const;

        /**
         * Set the Model property.
         *
         * @param model the value to set.
         */
        void
        setModel (ome::compat::shared_ptr<std::string>& model);

        /**
         * Get the SerialNumber property.
         *
         * @returns the SerialNumber property.
         */
        ome::compat::shared_ptr<std::string>
        getSerialNumber ();

        /**
         * Get the SerialNumber property.
         *
         * @returns the SerialNumber property.
         */
        const ome::compat::shared_ptr<std::string>
        getSerialNumber () const;

        /**
         * Set the SerialNumber property.
         *
         * @param serialNumber the value to set.
         */
        void
        setSerialNumber (ome::compat::shared_ptr<std::string>& serialNumber);

        /**
         * Get the Manufacturer property.
         *
         * @returns the Manufacturer property.
         */
        ome::compat::shared_ptr<std::string>
        getManufacturer ();

        /**
         * Get the Manufacturer property.
         *
         * @returns the Manufacturer property.
         */
        const ome::compat::shared_ptr<std::string>
        getManufacturer () const;

        /**
         * Set the Manufacturer property.
         *
         * @param manufacturer the value to set.
         */
        void
        setManufacturer (ome::compat::shared_ptr<std::string>& manufacturer);


        /// @copydoc ome::xml::model::OMEModelObject::asXMLElement
        virtual common::xml::dom::Element
        asXMLElement (common::xml::dom::Document& document) const;


      protected:
        // Documented in base class.
        virtual common::xml::dom::Element
        asXMLElementInternal (common::xml::dom::Document& document,
                              common::xml::dom::Element&  element) const;

      public:
       // Documented in superclass.
       const std::string&
       getXMLNamespace() const;
      };

    }
  }
}

#endif // OME_XML_MODEL_MANUFACTURERSPEC_H

/*
 * Local Variables:
 * mode:C++
 * End:
 */
