UMMF::UML_1_5::OCL::Expressions::LetExp - UMMF::UML_1_5::OCL::Expressions::LetExp documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::OCL::Expressions::LetExp --

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::OCL::Expressions::OclExpression

ATTRIBUTES

Top

NO ATTRIBUTES

ASSOCIATIONS

Top

: THIS 0..1 ----> in : UMMF::UML_1_5::OCL::Expressions::OclExpression 1

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

: THIS 0..1 ----> variable : UMMF::UML_1_5::OCL::Expressions::VariableDeclaration 1

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

METHODS

Top

__validate_type

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

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

__typecheck

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

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

isaLetExp

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

isaOCL__Expressions__LetExp

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

__model_name

  my $name = $obj_or_package->__model_name;

Returns the UML Model name ('OCL::Expressions::LetExp') 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.

in

  my $val = $obj->in;

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

set_in

  $obj->set_in($val);

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

add_in

  $obj->add_in($val);

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

remove_in

  $obj->remove_in($val);

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

clear_in

  $obj->clear_in;

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

count_in

  $obj->count_in;

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

variable

  my $val = $obj->variable;

Returns the AssociationEnd variable value of type UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.

set_variable

  $obj->set_variable($val);

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

add_variable

  $obj->add_variable($val);

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

remove_variable

  $obj->remove_variable($val);

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

clear_variable

  $obj->clear_variable;

Clears the AssociationEnd variable links to UMMF::UML_1_5::OCL::Expressions::VariableDeclaration. Returns $obj.

count_variable

  $obj->count_variable;

Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::VariableDeclaration associated with variable.

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::LetExp;

#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::OCL::Expressions::OclExpression



);


#################################################################
# 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::LetExp')  ;
}


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

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


sub isaLetExp { 1 }


sub isaOCL__Expressions__LetExp { 1 }


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

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



sub __isAbstract { 0; }


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

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::OCL::Expressions::LetExp' =>
     {
       'table' => 'OCL__Expressions__LetExp',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 
	 # Associations
	 	 	       'in'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::OCL::Expressions::OclExpression',

                                             'col' => 'in', 

                                                                                 'aggreg' => '1', 

                                           }
      ,
                  	 	       'variable'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::OCL::Expressions::VariableDeclaration',

                                             'col' => 'variable', 

                                                                                 'aggreg' => '1', 

                                           }
      ,
                         },
       'bases' => [  'UMMF::UML_1_5::OCL::Expressions::OclExpression',  ],
       '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 
  #   0..1
  #  <--> 
  #  in 1 UMMF::UML_1_5::OCL::Expressions::OclExpression.
    if ( defined $self->{'in'} ) {
    my $x = $self->{'in'};
    $self->{'in'} = undef;
    $self->set_in($x);
  }
  
  # AssociationEnd 
  #   0..1
  #  <--> 
  #  variable 1 UMMF::UML_1_5::OCL::Expressions::VariableDeclaration.
    if ( defined $self->{'variable'} ) {
    my $x = $self->{'variable'};
    $self->{'variable'} = undef;
    $self->set_variable($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->__use('UMMF::UML_1_5::Foundation::Core::ModelElement');
    $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression');
  }

  $self->UMMF::UML_1_5::OCL::Expressions::LetExp::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___initialize;
  $self->UMMF::UML_1_5::OCL::Expressions::OclExpression::___initialize;

  $self;
}
      

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

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

  $self;
}




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




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


#################################################################
# AssociationEnd  <---> in
# type = UMMF::UML_1_5::OCL::Expressions::OclExpression
# multiplicity = 1
# ordering = 

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


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

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

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

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


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

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

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

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

    # Remove and add associations with other ends.
        
  }

  $self;
}


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

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

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

    # Remove and add associations with other ends.
        
  }
}


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

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

    # Remove and add associations with other ends.
          }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd  <---> variable
# type = UMMF::UML_1_5::OCL::Expressions::VariableDeclaration
# multiplicity = 1
# ordering = 

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


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

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

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

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


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

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

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

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

    # Remove and add associations with other ends.
        
  }

  $self;
}


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

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

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

    # Remove and add associations with other ends.
        
  }
}


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

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

    # Remove and add associations with other ends.
          }

  $self;
}


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

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

  defined $x ? 1 : 0;
}







# End of Class LetExp


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

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: ###