//
// Autogenerated by gaxb at 03:15:42 PM on 01/14/15
//

import UIKit

open class ImageView: ImageViewBase {
	lazy public var imageView = UIImageView()
	override open var view: UIView {
        get {
            return imageView
        }
        set {
            if let newValue = newValue as? UIImageView {
                imageView = newValue
            }
        }
    }

    open override func gaxbPrepare() {
        super.gaxbPrepare()
        setImageWithString(image)
    }

    public func setImageWithString(_ image: String?) {
        guard let image = image else {
            imageView.image = nil
            return
        }
        imageView.image = UIImage(gaxbString: image)
    }

}
