Class ::xotcl::Attribute

::xotcl::Attribute[i] create ... \
           [ -multivalued multivalued ] \
           [ -substdefault substdefault ]

Defined in

Class Relations

  • class: ::xotcl::MetaSlot[i]
  • superclass: ::nx::VariableSlot[i]
  • subclass: ::xo::Attribute[i]
::xotcl::MetaSlot create ::xotcl::Attribute \
     -superclass ::nx::VariableSlot

Methods (to be applied on instances)

  • __object_configureparameter (scripted, public)

     <instance of xotcl::Attribute[i]> __object_configureparameter

    Testcases:
    No testcase defined.
    set slotObjects [nsf::directdispatch [self] ::nsf::methods::object::info::lookupslots -type ::nx::Slot]
    set parameterDefinitions [::nsf::parameter::specs -nonposargs $slotObjects]
    lappend parameterDefinitions args:alias,method=residualargs,args
    return $parameterDefinitions
  • createForwarder (scripted, public)

     <instance of xotcl::Attribute[i]> createForwarder name domain
    Parameters:
    name (required)
    domain (required)

    Testcases:
    No testcase defined.
    ::nsf::method::forward $domain  -per-object=${:per-object}  $name  -prefix value=  ${:manager}  "%1 {get set}" %self  ${:forwardername}
  • default (setter)

  • domain (setter)

  • exists (scripted, public)

     <instance of xotcl::Attribute[i]> exists var
    Parameters:
    var (required)

    Testcases:
    No testcase defined.
    ::nsf::var::exists [self$var
  • instvar (alias)

  • istype (scripted, public)

     <instance of xotcl::Attribute[i]> istype class
    Parameters:
    class (required)

    Testcases:
    No testcase defined.
    return [expr {[::nsf::is class $class] &&
              [::nsf::directdispatch [self] ::nsf::methods::object::info::hastype $class]}]
  • multivalued (forward)

  • name (setter)

  • proc (alias)

  • residualargs (alias)

  • set (alias)

  • value=set (alias)