The following operations are supported. For a formal definition, please review the Service Description.

Web Service Links

Namespace Children of ::wsdb::types::openacs::naturalNum

Namespace Code for ::wsdb::types::openacs::naturalNum

namespace eval ::wsdb::types::openacs::naturalNum {
    variable base xsd::integer
    variable pattern {^(0*)(([1-9][0-9]*|0))$}
    variable validate ::wsdb::types::openacs::naturalNum::validate

}

Procedures in ::wsdb::types::openacs::naturalNum


proc ::wsdb::types::openacs::naturalNum::validate {
    value
} {
        variable base
        variable pattern
        if {[::wsdb::types::${base}::validate $value] && [regexp $pattern $value]} {
            return 1
        } else {
            return 0
     }}