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

Web Service Links

Namespace Children of ::wsdb::types::address::companyName

Namespace Code for ::wsdb::types::address::companyName

namespace eval ::wsdb::types::address::companyName {
    variable base xsd::string
    variable maxLength 80
    variable validate ::wsdb::types::address::companyName::validate

}

Procedures in ::wsdb::types::address::companyName


proc ::wsdb::types::address::companyName::validate {
    value
    {errorListVar }
} {
    variable base
    variable maxLength

    if {"$errorListVar" ne ""} {
        upvar $errorListVar errorList
    }

    set valid 0
    set errorList [list $value]

    while {1} {
        if {![::wsdb::types::${base}::validate $value]} {
            lappend errorList "failed base test $base"
            break
        }
        set valueLength [string length $value]
        if {$valueLength > 80} {
            lappend errorList "failed maxLength test foundLength ($valueLength) > maxLength (80)"
            break
        }
        set valid 1
        break
    }

    return $valid
}