UMMF::UML_1_5::OCL::Types::OclMessageType - UMMF::UML_1_5::OCL::Types::OclMessageType documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::OCL::Types::OclMessageType --

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

ATTRIBUTES

Top

NO ATTRIBUTES

ASSOCIATIONS

Top

: THIS 1 ----> referredOperation : UMMF::UML_1_5::Foundation::Core::Operation 0..1

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

: THIS 1 ----> referredSignal : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal 0..1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal
multiplicity = 0..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::Types::OclMessageType->__validate_type($value);

Returns true if $value is a valid representation of UMMF::UML_1_5::OCL::Types::OclMessageType.

__typecheck

  UMMF::UML_1_5::OCL::Types::OclMessageType->__typecheck($value, $msg);

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

isaOclMessageType

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

isaOCL__Types__OclMessageType

Returns true if receiver is a UMMF::UML_1_5::OCL::Types::OclMessageType. Other receivers will return false. This is the fully qualified version of the isaOclMessageType method.

__model_name

  my $name = $obj_or_package->__model_name;

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

referredOperation

  my $val = $obj->referredOperation;

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

set_referredOperation

  $obj->set_referredOperation($val);

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

add_referredOperation

  $obj->add_referredOperation($val);

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

remove_referredOperation

  $obj->remove_referredOperation($val);

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

clear_referredOperation

  $obj->clear_referredOperation;

Clears the AssociationEnd referredOperation links to UMMF::UML_1_5::Foundation::Core::Operation. Returns $obj.

count_referredOperation

  $obj->count_referredOperation;

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

referredSignal

  my $val = $obj->referredSignal;

Returns the AssociationEnd referredSignal value of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.

set_referredSignal

  $obj->set_referredSignal($val);

Sets the AssociationEnd referredSignal value. $val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal. Returns $obj.

add_referredSignal

  $obj->add_referredSignal($val);

Adds the AssociationEnd referredSignal value. $val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal. Throws exception if a value already exists. Returns $obj.

remove_referredSignal

  $obj->remove_referredSignal($val);

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

clear_referredSignal

  $obj->clear_referredSignal;

Clears the AssociationEnd referredSignal links to UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal. Returns $obj.

count_referredSignal

  $obj->count_referredSignal;

Returns the number of elements of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal associated with referredSignal.

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::Types::OclMessageType;

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



);


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


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

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


sub isaOclMessageType { 1 }


sub isaOCL__Types__OclMessageType { 1 }


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

sub __model_name { 'OCL::Types::OclMessageType' }



sub __isAbstract { 0; }


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

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::OCL::Types::OclMessageType' =>
     {
       'table' => 'OCL__Types__OclMessageType',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 
	 # Associations
	 	 	       'referredOperation'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Foundation::Core::Operation',

                  'null' => '1', 

                                    'col' => 'referredOperation', 

                                                                                                                   }
      ,
                  	 	       'referredSignal'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal',

                  'null' => '1', 

                                    'col' => 'referredSignal', 

                                                                                                                   }
      ,
                         },
       'bases' => [  'UMMF::UML_1_5::Foundation::Core::Classifier',  ],
       '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 
  #   1
  #  <--> 
  #  referredOperation 0..1 UMMF::UML_1_5::Foundation::Core::Operation.
    if ( defined $self->{'referredOperation'} ) {
    my $x = $self->{'referredOperation'};
    $self->{'referredOperation'} = undef;
    $self->set_referredOperation($x);
  }
  
  # AssociationEnd 
  #   1
  #  <--> 
  #  referredSignal 0..1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.
    if ( defined $self->{'referredSignal'} ) {
    my $x = $self->{'referredSignal'};
    $self->{'referredSignal'} = undef;
    $self->set_referredSignal($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::Namespace');
    $self->__use('UMMF::UML_1_5::Foundation::Core::Element');
    $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement');
    $self->__use('UMMF::UML_1_5::Foundation::Core::GeneralizableElement');
    $self->__use('UMMF::UML_1_5::Foundation::Core::Classifier');
  }

  $self->UMMF::UML_1_5::OCL::Types::OclMessageType::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Namespace::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::GeneralizableElement::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Classifier::___initialize;

  $self;
}
      

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

  # $DB::single = 1;
  $self->UMMF::UML_1_5::OCL::Types::OclMessageType::___create(@args);
  $self->UMMF::UML_1_5::Foundation::Core::Namespace::___create();
  $self->UMMF::UML_1_5::Foundation::Core::Element::___create();
  $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___create();
  $self->UMMF::UML_1_5::Foundation::Core::GeneralizableElement::___create();
  $self->UMMF::UML_1_5::Foundation::Core::Classifier::___create();

  $self;
}




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




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


#################################################################
# AssociationEnd  <---> referredOperation
# type = UMMF::UML_1_5::Foundation::Core::Operation
# multiplicity = 0..1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::Operation')->__typecheck($val, "UMMF::UML_1_5::OCL::Types::OclMessageType.referredOperation") }

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

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


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

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

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

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

    # Remove and add associations with other ends.
        
  }

  $self;
}


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

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

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

    # Remove and add associations with other ends.
        
  }
}


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

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

    # Remove and add associations with other ends.
          }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd  <---> referredSignal
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal
# multiplicity = 0..1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal')->__typecheck($val, "UMMF::UML_1_5::OCL::Types::OclMessageType.referredSignal") }

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

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


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

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

  my $old;
  if ( ($old = $self->{'referredSignal'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal')->__typecheck($val, "UMMF::UML_1_5::OCL::Types::OclMessageType.referredSignal");
      
    # confess("UMMF::UML_1_5::OCL::Types::OclMessageType::referredSignal: too many")
    # if defined $self->{'referredSignal'};

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

    # Remove and add associations with other ends.
        
  }

  $self;
}


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

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

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

    # Remove and add associations with other ends.
        
  }
}


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

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

    # Remove and add associations with other ends.
          }

  $self;
}


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

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

  defined $x ? 1 : 0;
}







# End of Class OclMessageType


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

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