.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEChem

.. oe:constnamespace:: OEMonomerValidationReturnCode

   .. attention::

      |PRELIMINARY-API|

   The :oe:constns:`OEChem::OEMonomerValidationReturnCode` namespace
   contains codes representing the success or various issues of monomer validation
   when using the :oe:func:`OEChem::OEIsValidMonomerData` function. 

   .. seealso::

      * :oe:cls:`OEChem::OEMonomerData` class
      * :oe:cls:`OEChem::OEMonomerValidationResult` class

   It contains the following constants:

   .. oe:constant:: Success

      Represents that the monomer is **valid**.

   .. oe:constant:: InvalidMonomerCode

      The monomer code is invalid:

      * empty string or more the 20 character long
      * contains character other than: alphanumerical, ``-`` (dash), ``_`` (underscore), ``(`` or ``)`` or ``,`` (comma)
      * ``UNK`` is a reserved name and should nt be used as a monomer code

   .. oe:constant:: InvalidMonomerRGroups

      If the monomer has any invalid connection point defined my R-group map index.

   .. oe:constant:: InvalidMonomerSmiles

      The monomer smiles is invalid, if the :oe:func:`OEChem::OEParseSmiles` function return false.

   .. oe:constant:: InvalidMonomerType

      The monomer type is invalid or does not match to the type 
      returned by the :oe:func:`OEChem::OEGetMonomerType` function.

   .. oe:constant:: InvalidPolymerType

      The polymer type is invalid or does not match to the type 
      returned by the :oe:func:`OEChem::OEGetPolymerType` function.

   .. oe:constant:: MissingMonomerCode

      If the monomer has not code specified for any code-set.

   .. oe:constant:: MissingMonomerRGroups

      If the monomer has no connection point defined my R-group map index.

   .. oe:constant:: MissingMonomerSmiles

      If no smiles specified for the monomer structure.

   .. oe:constant:: UnspecifiedAtomStereo

      A monomer unspecified stereo at a chiral atom is considered invalid.

   .. oe:constant:: UnspecifiedBondStereo

      A monomer unspecified bond at a chiral bond is considered invalid.
