//----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 5.7.0.0
//
// Created by Quasar Development 
//
//---------------------------------------------------


import Foundation

/**
* specDomain: S14500 (C-0-T19651-A14411-A14412-A14484-S14499-S14500-cpt)
*/

public enum EPA_FdV_AUTHZ_TransdermalPatch:Int,CustomStringConvertible
{
    case  TPATCH
    case  TPATH16
    case  TPATH24
    case  TPATH72
    case  TPATH2WK
    case  TPATHWK

    static func createWithXml(node:DDXMLNode) -> EPA_FdV_AUTHZ_TransdermalPatch?
    {
        return createWithString(value: node.stringValue!)
    }

    static func createWithString(value:String) -> EPA_FdV_AUTHZ_TransdermalPatch?
    {
        var i = 0
        while let item = EPA_FdV_AUTHZ_TransdermalPatch(rawValue: i) 
        {
            if String(describing: item) == value
            {
                return item
            }
            i += 1
        }
       return nil
    }

    public var stringValue : String
    {
        return description
    }

    public var description : String
    {
        switch self
        {
            case  .TPATCH: return "TPATCH"
            case  .TPATH16: return "TPATH16"
            case  .TPATH24: return "TPATH24"
            case  .TPATH72: return "TPATH72"
            case  .TPATH2WK: return "TPATH2WK"
            case  .TPATHWK: return "TPATHWK"
        }
    }

    public func getValue() -> Int
    {
        return rawValue
    }

    func serialize(__parent:DDXMLNode)
    {
        __parent.stringValue = stringValue
    }
}


        
