UMMF::UML_1_5::OCL::Expressions::VariableDeclaration - UMMF::UML_1_5::OCL::Expressions::VariableDeclaration documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::OCL::Expressions::VariableDeclaration --

VERSION

Top

1.5

SYNOPSIS

Top

DESCRIPTION

Top

USAGE

Top

EXPORT

Top

METATYPE

Top

UMMF::UML_1_5::Foundation::Core::Class

SUPERCLASSES

Top

UMMF::UML_1_5::Foundation::Core::Element

ATTRIBUTES

Top

NO ATTRIBUTES

ASSOCIATIONS

Top

result : THIS 1 <---> baseExpr : UMMF::UML_1_5::OCL::Expressions::IterateExp 0..1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::OCL::Expressions::IterateExp
multiplicity = 0..1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = composite
visibility = public
container_type = Set::Object

initializedVariable : THIS 0..1 <---> initExpression : UMMF::UML_1_5::OCL::Expressions::OclExpression 0..1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::OCL::Expressions::OclExpression
multiplicity = 0..1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = public
container_type = Set::Object

iterators : THIS 1..* <---> loopExpr : UMMF::UML_1_5::OCL::Expressions::LoopExp 0..1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::OCL::Expressions::LoopExp
multiplicity = 0..1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = composite
visibility = public
container_type = Set::Object

tuplePart : THIS 0..* <---> tupleLiteralExp : UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp 1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp
multiplicity = 1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = private
container_type = Set::Object

: THIS 1 ----> type : UMMF::UML_1_5::Foundation::Core::Classifier 1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Foundation::Core::Classifier
multiplicity = 1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = public
container_type = Set::Object

variable : THIS 1 <---- : UMMF::UML_1_5::OCL::Expressions::LetExp 0..1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::OCL::Expressions::LetExp
multiplicity = 0..1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 0
aggregation = composite
visibility = private
container_type = Set::Object

referredVariable : THIS 1 <---> variableExp : UMMF::UML_1_5::OCL::Expressions::VariableExp 0..*

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::OCL::Expressions::VariableExp
multiplicity = 0..*
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = private
container_type = Set::Object

METHODS

Top

__validate_type

  UMMF::UML_1_5::OCL::Expressions::VariableDeclaration->__validate_type($value);

Returns true if $value is a valid representation of UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.

__typecheck

  UMMF::UML_1_5::OCL::Expressions::VariableDeclaration->__typecheck($value, $msg);

Calls confess() with $msg if <UMMF::UML_1_5::OCL::Expressions::VariableDeclaration-__validate_type($value)>> is false.

isaVariableDeclaration

Returns true if receiver is a UMMF::UML_1_5::OCL::Expressions::VariableDeclaration. Other receivers will return false.

isaOCL__Expressions__VariableDeclaration

Returns true if receiver is a UMMF::UML_1_5::OCL::Expressions::VariableDeclaration. Other receivers will return false. This is the fully qualified version of the isaVariableDeclaration method.

__model_name

  my $name = $obj_or_package->__model_name;

Returns the UML Model name ('OCL::Expressions::VariableDeclaration') for an object or package of this Classifier.

__isAbstract

  $package->__isAbstract;

Returns 0.

__tangram_schema

  my $tangram_schema $obj_or_package->__tangram_schema

Returns a HASH ref that describes this Classifier for Tangram.

See UMMF::Export::Perl::Tangram

___initialize

Initialize all Attributes and AssociationEnds in a instance of this Classifier. Does not initalize slots in its Generalizations.

See also: __initialize.

__initialize

Initialize all slots in this Classifier and all its Generalizations.

See also: ___initialize.

__create

Calls all <<create>> Methods for this Classifier and all Generalizations.

See also: ___create.

baseExpr

  my $val = $obj->baseExpr;

Returns the AssociationEnd baseExpr value of type UMMF::UML_1_5::OCL::Expressions::IterateExp.

set_baseExpr

  $obj->set_baseExpr($val);

Sets the AssociationEnd baseExpr value. $val must of type UMMF::UML_1_5::OCL::Expressions::IterateExp. Returns $obj.

add_baseExpr

  $obj->add_baseExpr($val);

Adds the AssociationEnd baseExpr value. $val must of type UMMF::UML_1_5::OCL::Expressions::IterateExp. Throws exception if a value already exists. Returns $obj.

remove_baseExpr

  $obj->remove_baseExpr($val);

Removes the AssociationEnd baseExpr value $val. Returns $obj.

clear_baseExpr

  $obj->clear_baseExpr;

Clears the AssociationEnd baseExpr links to UMMF::UML_1_5::OCL::Expressions::IterateExp. Returns $obj.

count_baseExpr

  $obj->count_baseExpr;

Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::IterateExp associated with baseExpr.

initExpression

  my $val = $obj->initExpression;

Returns the AssociationEnd initExpression value of type UMMF::UML_1_5::OCL::Expressions::OclExpression.

set_initExpression

  $obj->set_initExpression($val);

Sets the AssociationEnd initExpression value. $val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression. Returns $obj.

add_initExpression

  $obj->add_initExpression($val);

Adds the AssociationEnd initExpression value. $val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression. Throws exception if a value already exists. Returns $obj.

remove_initExpression

  $obj->remove_initExpression($val);

Removes the AssociationEnd initExpression value $val. Returns $obj.

clear_initExpression

  $obj->clear_initExpression;

Clears the AssociationEnd initExpression links to UMMF::UML_1_5::OCL::Expressions::OclExpression. Returns $obj.

count_initExpression

  $obj->count_initExpression;

Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::OclExpression associated with initExpression.

loopExpr

  my $val = $obj->loopExpr;

Returns the AssociationEnd loopExpr value of type UMMF::UML_1_5::OCL::Expressions::LoopExp.

set_loopExpr

  $obj->set_loopExpr($val);

Sets the AssociationEnd loopExpr value. $val must of type UMMF::UML_1_5::OCL::Expressions::LoopExp. Returns $obj.

add_loopExpr

  $obj->add_loopExpr($val);

Adds the AssociationEnd loopExpr value. $val must of type UMMF::UML_1_5::OCL::Expressions::LoopExp. Throws exception if a value already exists. Returns $obj.

remove_loopExpr

  $obj->remove_loopExpr($val);

Removes the AssociationEnd loopExpr value $val. Returns $obj.

clear_loopExpr

  $obj->clear_loopExpr;

Clears the AssociationEnd loopExpr links to UMMF::UML_1_5::OCL::Expressions::LoopExp. Returns $obj.

count_loopExpr

  $obj->count_loopExpr;

Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::LoopExp associated with loopExpr.

tupleLiteralExp

  my $val = $obj->tupleLiteralExp;

Returns the AssociationEnd tupleLiteralExp value of type UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp.

set_tupleLiteralExp

  $obj->set_tupleLiteralExp($val);

Sets the AssociationEnd tupleLiteralExp value. $val must of type UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp. Returns $obj.

add_tupleLiteralExp

  $obj->add_tupleLiteralExp($val);

Adds the AssociationEnd tupleLiteralExp value. $val must of type UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp. Throws exception if a value already exists. Returns $obj.

remove_tupleLiteralExp

  $obj->remove_tupleLiteralExp($val);

Removes the AssociationEnd tupleLiteralExp value $val. Returns $obj.

clear_tupleLiteralExp

  $obj->clear_tupleLiteralExp;

Clears the AssociationEnd tupleLiteralExp links to UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp. Returns $obj.

count_tupleLiteralExp

  $obj->count_tupleLiteralExp;

Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp associated with tupleLiteralExp.

type

  my $val = $obj->type;

Returns the AssociationEnd type value of type UMMF::UML_1_5::Foundation::Core::Classifier.

set_type

  $obj->set_type($val);

Sets the AssociationEnd type value. $val must of type UMMF::UML_1_5::Foundation::Core::Classifier. Returns $obj.

add_type

  $obj->add_type($val);

Adds the AssociationEnd type value. $val must of type UMMF::UML_1_5::Foundation::Core::Classifier. Throws exception if a value already exists. Returns $obj.

remove_type

  $obj->remove_type($val);

Removes the AssociationEnd type value $val. Returns $obj.

clear_type

  $obj->clear_type;

Clears the AssociationEnd type links to UMMF::UML_1_5::Foundation::Core::Classifier. Returns $obj.

count_type

  $obj->count_type;

Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::Classifier associated with type.

variableExp

  my @val = $obj->variableExp;
  my $ary_val = $obj->variableExp;

Returns the AssociationEnd variableExp values of type UMMF::UML_1_5::OCL::Expressions::VariableExp. In array context, returns all the objects in the Association. In scalar context, returns an array ref of all the objects in the Association.

set_variableExp

  $obj->set_variableExp(@val);

Sets the AssociationEnd variableExp value. Elements of @val must of type UMMF::UML_1_5::OCL::Expressions::VariableExp. Returns $obj.

add_variableExp

  $obj->add_variableExp(@val);

Adds AssociationEnd variableExp values. Elements of @val must of type UMMF::UML_1_5::OCL::Expressions::VariableExp. Returns $obj.

remove_variableExp

  $obj->remove_variableExp(@val);

Removes the AssociationEnd variableExp values @val. Elements of @val must of type UMMF::UML_1_5::OCL::Expressions::VariableExp. Returns $obj.

clear_variableExp

  $obj->clear_variableExp;

Clears the AssociationEnd variableExp links to UMMF::UML_1_5::OCL::Expressions::VariableExp. Returns $obj.

count_variableExp

  $obj->count_variableExp;

Returns the number of elements associated with variableExp.

END OF DOCUMENT


UMMF documentation Contained in the UMMF distribution.
# -*- perl -*-
# DO NOT EDIT - This file is generated by UMMF; http://ummf.sourceforge.net 
# From template: $Id: Perl.txt,v 1.77 2006/05/14 01:40:03 kstephens Exp $

package UMMF::UML_1_5::OCL::Expressions::VariableDeclaration;

#use 5.6.1;
use strict;
use warnings;

#################################################################
# Version
#

our $VERSION = do { my @r = (q{1.5} =~ /\d+/g); sprintf "%d." . "%03d" x $#r, @r };


#################################################################
# Documentation
#



#################################################################
# Dependencies
#





use Carp qw(croak confess);
use Set::Object 1.05;
use Class::Multimethods 1.70;
use Data::Dumper;
use Scalar::Util qw(weaken);
use UMMF::UML_1_5::__ObjectBase qw(:__ummf_array);


#################################################################
# Generalizations
#

use base qw(
  UMMF::UML_1_5::Foundation::Core::Element



);


#################################################################
# Exports
#

our @EXPORT_OK = qw(
);
our %EXPORT_TAGS = ( 'all' => \@EXPORT_OK );





#################################################################
# Validation
#


sub __validate_type($$)
{
  my ($self, $x) = @_;

  no warnings;

  UNIVERSAL::isa($x, 'UMMF::UML_1_5::OCL::Expressions::VariableDeclaration')  ;
}


sub __typecheck
{
  my ($self, $x, $msg) = @_;

  confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::OCL::Expressions::VariableDeclaration' . ": value '$x'")
    unless __validate_type($self, $x);
}


sub isaVariableDeclaration { 1 }


sub isaOCL__Expressions__VariableDeclaration { 1 }


#################################################################
# Introspection
#

sub __model_name { 'OCL::Expressions::VariableDeclaration' }



sub __isAbstract { 0; }


my $__tangram_schema;
sub __tangram_schema
{
  my ($self) = @_;

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::OCL::Expressions::VariableDeclaration' =>
     {
       'table' => 'OCL__Expressions__VariableDeclaration',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 
	 # Associations
	 	 	       'baseExpr'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::OCL::Expressions::IterateExp',

                  'null' => '1', 

                                    'col' => 'baseExpr', 

                                                                                                                   }
      ,
                  	 	       'initExpression'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::OCL::Expressions::OclExpression',

                  'null' => '1', 

                                    'col' => 'initExpression', 

                                                                                 'aggreg' => '1', 

                                           }
      ,
                  	 	       'loopExpr'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::OCL::Expressions::LoopExp',

                  'null' => '1', 

                                    'col' => 'loopExpr', 

                                                                                                                   }
      ,
                  	 	       'tupleLiteralExp'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp',

                                             'col' => 'tupleLiteralExp', 

                                                                                                                   }
      ,
                  	 	       'type'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Foundation::Core::Classifier',

                                             'col' => 'type', 

                                                                                                                   }
      ,
                  	 	                     	 	       'variableExp'
       => {
	 'type_impl' => 'iset',
         'class' => 'UMMF::UML_1_5::OCL::Expressions::VariableExp',

                           'table' => 'OCL__Expressions__VariableDeclaration__variableExp', 

                                                               'coll' => 'referredVariable',

                                                                               }
      ,
                         },
       'bases' => [  'UMMF::UML_1_5::Foundation::Core::Element',  ],
       'sql' => {

       },
     },
   ],

   'sql' =>
   {
    # Note Tangram::Ref::get_exporter() has
    # "UPDATE $table SET $self->{col} = $refid WHERE id = $id",
    # The id_col is hard-coded, 
    # Thus id_col will not work.
    #'id_col' => '__sid',
    #'class_col' => '__stype',
   },
     # 'set_id' => sub { }
     # 'get_id' => sub { }

      
  };
}


#################################################################
# Class Attributes
#


    

#################################################################
# Class Associations
#


    

#################################################################
# Initialization
#


sub ___initialize
{
  my ($self) = @_;

  # Attributes



  # Associations

  # AssociationEnd 
  #  result 1
  #  <--> 
  #  baseExpr 0..1 UMMF::UML_1_5::OCL::Expressions::IterateExp.
    if ( defined $self->{'baseExpr'} ) {
    my $x = $self->{'baseExpr'};
    $self->{'baseExpr'} = undef;
    $self->set_baseExpr($x);
  }
  
  # AssociationEnd 
  #  initializedVariable 0..1
  #  <--> 
  #  initExpression 0..1 UMMF::UML_1_5::OCL::Expressions::OclExpression.
    if ( defined $self->{'initExpression'} ) {
    my $x = $self->{'initExpression'};
    $self->{'initExpression'} = undef;
    $self->set_initExpression($x);
  }
  
  # AssociationEnd 
  #  iterators 1..*
  #  <--> 
  #  loopExpr 0..1 UMMF::UML_1_5::OCL::Expressions::LoopExp.
    if ( defined $self->{'loopExpr'} ) {
    my $x = $self->{'loopExpr'};
    $self->{'loopExpr'} = undef;
    $self->set_loopExpr($x);
  }
  
  # AssociationEnd 
  #  tuplePart 0..*
  #  <--> 
  #  tupleLiteralExp 1 UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp.
    if ( defined $self->{'tupleLiteralExp'} ) {
    my $x = $self->{'tupleLiteralExp'};
    $self->{'tupleLiteralExp'} = undef;
    $self->set_tupleLiteralExp($x);
  }
  
  # AssociationEnd 
  #   1
  #  <--> 
  #  type 1 UMMF::UML_1_5::Foundation::Core::Classifier.
    if ( defined $self->{'type'} ) {
    my $x = $self->{'type'};
    $self->{'type'} = undef;
    $self->set_type($x);
  }
  
  # AssociationEnd 
  #  referredVariable 1
  #  <--> 
  #  variableExp 0..* UMMF::UML_1_5::OCL::Expressions::VariableExp.
    if ( defined $self->{'variableExp'} ) {
    my $x = $self->{'variableExp'};
        $self->{'variableExp'} = Set::Object->new();
        $self->set_variableExp(@$x);
  }
  

  $self;
}


my $__initialize_use;

sub __initialize
{
  my ($self) = @_;

  # $DB::single = 1;

  unless ( ! $__initialize_use ) {
    $__initialize_use = 1;
    $self->__use('UMMF::UML_1_5::Foundation::Core::Element');
  }

  $self->UMMF::UML_1_5::OCL::Expressions::VariableDeclaration::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize;

  $self;
}
      

sub __create
{
  my ($self, @args) = @_;

  # $DB::single = 1;
  $self->UMMF::UML_1_5::OCL::Expressions::VariableDeclaration::___create(@args);
  $self->UMMF::UML_1_5::Foundation::Core::Element::___create();

  $self;
}




#################################################################
# Attributes
#




#################################################################
# Association
#


#################################################################
# AssociationEnd result <---> baseExpr
# type = UMMF::UML_1_5::OCL::Expressions::IterateExp
# multiplicity = 0..1
# ordering = 

sub baseExpr ($)
{
  my ($self) = @_;
		  
  $self->{'baseExpr'};
}


sub set_baseExpr ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'baseExpr'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::OCL::Expressions::IterateExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.baseExpr") }

    # Recursion lock
        $self->{'baseExpr'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_result($self) if $old;
    $val->add_result($self)    if $val;

    }
		  
  $self;
}


sub add_baseExpr ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'baseExpr'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::OCL::Expressions::IterateExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.baseExpr");
      
    # confess("UMMF::UML_1_5::OCL::Expressions::VariableDeclaration::baseExpr: too many")
    # if defined $self->{'baseExpr'};

    # Recursion lock
        $self->{'baseExpr'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_result($self) if $old;
    $val->add_result($self)    if $val;

  
  }

  $self;
}


sub remove_baseExpr ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'baseExpr'}) eq $val ) { # Recursion lock
    $val = $self->{'baseExpr'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_result($self) if $old;
    $val->add_result($self)    if $val;

  
  }
}


sub clear_baseExpr ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'baseExpr'}) ) { # Recursion lock
    my $val = $self->{'baseExpr'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_result($self) if $old;
    $val->add_result($self)    if $val;

    }

  $self;
}


sub count_baseExpr ($)
{
  my ($self) = @_;

  my $x = $self->{'baseExpr'};

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd initializedVariable <---> initExpression
# type = UMMF::UML_1_5::OCL::Expressions::OclExpression
# multiplicity = 0..1
# ordering = 

sub initExpression ($)
{
  my ($self) = @_;
		  
  $self->{'initExpression'};
}


sub set_initExpression ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'initExpression'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.initExpression") }

    # Recursion lock
        $self->{'initExpression'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_initializedVariable($self) if $old;
    $val->add_initializedVariable($self)    if $val;

    }
		  
  $self;
}


sub add_initExpression ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'initExpression'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.initExpression");
      
    # confess("UMMF::UML_1_5::OCL::Expressions::VariableDeclaration::initExpression: too many")
    # if defined $self->{'initExpression'};

    # Recursion lock
        $self->{'initExpression'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_initializedVariable($self) if $old;
    $val->add_initializedVariable($self)    if $val;

  
  }

  $self;
}


sub remove_initExpression ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'initExpression'}) eq $val ) { # Recursion lock
    $val = $self->{'initExpression'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_initializedVariable($self) if $old;
    $val->add_initializedVariable($self)    if $val;

  
  }
}


sub clear_initExpression ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'initExpression'}) ) { # Recursion lock
    my $val = $self->{'initExpression'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_initializedVariable($self) if $old;
    $val->add_initializedVariable($self)    if $val;

    }

  $self;
}


sub count_initExpression ($)
{
  my ($self) = @_;

  my $x = $self->{'initExpression'};

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd iterators <---> loopExpr
# type = UMMF::UML_1_5::OCL::Expressions::LoopExp
# multiplicity = 0..1
# ordering = 

sub loopExpr ($)
{
  my ($self) = @_;
		  
  $self->{'loopExpr'};
}


sub set_loopExpr ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'loopExpr'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::OCL::Expressions::LoopExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.loopExpr") }

    # Recursion lock
        $self->{'loopExpr'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_iterators($self) if $old;
    $val->add_iterators($self)    if $val;

    }
		  
  $self;
}


sub add_loopExpr ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'loopExpr'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::OCL::Expressions::LoopExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.loopExpr");
      
    # confess("UMMF::UML_1_5::OCL::Expressions::VariableDeclaration::loopExpr: too many")
    # if defined $self->{'loopExpr'};

    # Recursion lock
        $self->{'loopExpr'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_iterators($self) if $old;
    $val->add_iterators($self)    if $val;

  
  }

  $self;
}


sub remove_loopExpr ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'loopExpr'}) eq $val ) { # Recursion lock
    $val = $self->{'loopExpr'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_iterators($self) if $old;
    $val->add_iterators($self)    if $val;

  
  }
}


sub clear_loopExpr ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'loopExpr'}) ) { # Recursion lock
    my $val = $self->{'loopExpr'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_iterators($self) if $old;
    $val->add_iterators($self)    if $val;

    }

  $self;
}


sub count_loopExpr ($)
{
  my ($self) = @_;

  my $x = $self->{'loopExpr'};

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd tuplePart <---> tupleLiteralExp
# type = UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp
# multiplicity = 1
# ordering = 

sub tupleLiteralExp ($)
{
  my ($self) = @_;
		  
  $self->{'tupleLiteralExp'};
}


sub set_tupleLiteralExp ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'tupleLiteralExp'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.tupleLiteralExp") }

    # Recursion lock
        $self->{'tupleLiteralExp'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_tuplePart($self) if $old;
    $val->add_tuplePart($self)    if $val;

    }
		  
  $self;
}


sub add_tupleLiteralExp ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'tupleLiteralExp'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::OCL::Expressions::TupleLiteralExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.tupleLiteralExp");
      
    # confess("UMMF::UML_1_5::OCL::Expressions::VariableDeclaration::tupleLiteralExp: too many")
    # if defined $self->{'tupleLiteralExp'};

    # Recursion lock
        $self->{'tupleLiteralExp'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_tuplePart($self) if $old;
    $val->add_tuplePart($self)    if $val;

  
  }

  $self;
}


sub remove_tupleLiteralExp ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'tupleLiteralExp'}) eq $val ) { # Recursion lock
    $val = $self->{'tupleLiteralExp'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_tuplePart($self) if $old;
    $val->add_tuplePart($self)    if $val;

  
  }
}


sub clear_tupleLiteralExp ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'tupleLiteralExp'}) ) { # Recursion lock
    my $val = $self->{'tupleLiteralExp'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_tuplePart($self) if $old;
    $val->add_tuplePart($self)    if $val;

    }

  $self;
}


sub count_tupleLiteralExp ($)
{
  my ($self) = @_;

  my $x = $self->{'tupleLiteralExp'};

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd  <---> type
# type = UMMF::UML_1_5::Foundation::Core::Classifier
# multiplicity = 1
# ordering = 

sub type ($)
{
  my ($self) = @_;
		  
  $self->{'type'};
}


sub set_type ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'type'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::Classifier')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.type") }

    # Recursion lock
        $self->{'type'} = $val
    ;

    # Remove and add associations with other ends.
          }
		  
  $self;
}


sub add_type ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'type'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::Foundation::Core::Classifier')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.type");
      
    # confess("UMMF::UML_1_5::OCL::Expressions::VariableDeclaration::type: too many")
    # if defined $self->{'type'};

    # Recursion lock
        $self->{'type'} = $val
    ;

    # Remove and add associations with other ends.
        
  }

  $self;
}


sub remove_type ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'type'}) eq $val ) { # Recursion lock
    $val = $self->{'type'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
  }
}


sub clear_type ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'type'}) ) { # Recursion lock
    my $val = $self->{'type'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
          }

  $self;
}


sub count_type ($)
{
  my ($self) = @_;

  my $x = $self->{'type'};

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd referredVariable <---> variableExp
# type = UMMF::UML_1_5::OCL::Expressions::VariableExp
# multiplicity = 0..*
# ordering = 

sub variableExp ($)
{
  my ($self) = @_;

    my $x = $self->{'variableExp'};

  # confess("Container for variableExp $x is not a blessed ref: " . Data::Dumper->new([ $self ], [qw($self)])->Maxdepth(2)->Dump()) if $x && ref($x) !~ /::/;
 
  wantarray ? ($x ? $x->members() : ()) : [ $x ? $x->members() : () ];
  
}


sub set_variableExp ($@)
{
  my ($self, @val) = @_;
  
  $self->clear_variableExp;
  $self->add_variableExp(@val);
}


sub add_variableExp ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'variableExp'} ||= Set::Object->new();
    my $old; # Place holder for other MACRO.
  
  for my $val ( @val ) {
    # Recursion lock
        next if $x->includes($val);
        $self->__use('UMMF::UML_1_5::OCL::Expressions::VariableExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.variableExp");

    # Recursion lock
        $x->insert($val);
    # weaken?
    
    # Remove and add associations with other ends.
        
    $old->remove_referredVariable($self) if $old;
    $val->add_referredVariable($self)    if $val;

    }
  
  $self;
}


sub remove_variableExp ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'variableExp'} ||= Set::Object->new();
  
  for my $old ( @val ) {
    # Recursion lock
        next unless $x->includes($old);
    
    my $val = $old;
      
    $self->__use('UMMF::UML_1_5::OCL::Expressions::VariableExp')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.variableExp");

    # Recursion lock
        $x->remove($old);
    
    $val = undef;

    # Remove associations with other ends.

        
    $old->remove_referredVariable($self) if $old;
    $val->add_referredVariable($self)    if $val;

  ;

  }
  
  $self;
}


sub clear_variableExp ($) 
{
  my ($self) = @_;
  
    my $x = $self->{'variableExp'} ||= Set::Object->new();
  
  my $val; # Place holder for other MACRO.
  
    $self->{'variableExp'} = Set::Object->new(); # Recursion lock
  for my $old ( $x->members() ) {     # Recursion lock
  
    # Remove associations with other ends.

        
    $old->remove_referredVariable($self) if $old;
    $val->add_referredVariable($self)    if $val;

  ;

  }
  
  $self;
}


sub count_variableExp ($)
{
  my ($self) = @_;

  my $x = $self->{'variableExp'};

    defined $x ? $x->size : 0;
  }







# End of Class VariableDeclaration


############################################################################

1; # is true!

############################################################################

### Keep these comments at end of file: kstephens@users.sourceforge.net 2003/04/06 ###
### Local Variables: ###
### mode:perl ###
### perl-indent-level:2 ###
### perl-continued-statement-offset:0 ###
### perl-brace-offset:0 ###
### perl-label-offset:0 ###
### End: ###