namespace eval ::wsdb::types::stock::trend { variable base xsd::integer variable validate ::wsdb::types::stock::trend::validate }
proc ::wsdb::types::stock::trend::validate { value } { variable base if {[::wsdb::types::${base}::validate "$value"] && [lsearch -exact {-1 0 1} "$value"] > -1} { return 1 } else { return 0 } }