| UMMF documentation | Contained in the UMMF distribution. |
__validate_type__typecheckisaIfExpisaOCL__Expressions__IfExp__model_name __isAbstract__tangram_schema___initialize__initialize__createconditionset_conditionadd_conditionremove_conditionclear_conditioncount_conditionelseExpressionset_elseExpressionadd_elseExpressionremove_elseExpressionclear_elseExpressioncount_elseExpressionthenExpressionset_thenExpressionadd_thenExpressionremove_thenExpressionclear_thenExpressioncount_thenExpression
UMMF::UML_1_5::OCL::Expressions::IfExp --
1.5
NO ATTRIBUTES
: THIS 0..1 ----> condition : UMMF::UML_1_5::OCL::Expressions::OclExpression 11changeableinstancenonepublicSet::Object : THIS 0..1 ----> elseExpression : UMMF::UML_1_5::OCL::Expressions::OclExpression 11changeableinstancenonepublicSet::Object : THIS 0..1 ----> thenExpression : UMMF::UML_1_5::OCL::Expressions::OclExpression 11changeableinstancenonepublicSet::Object__validate_typeUMMF::UML_1_5::OCL::Expressions::IfExp->__validate_type($value);
Returns true if $value is a valid representation of UMMF::UML_1_5::OCL::Expressions::IfExp.
__typecheckUMMF::UML_1_5::OCL::Expressions::IfExp->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::UML_1_5::OCL::Expressions::IfExp-__validate_type($value)>> is false.
isaIfExpReturns true if receiver is a UMMF::UML_1_5::OCL::Expressions::IfExp. Other receivers will return false.
isaOCL__Expressions__IfExpReturns true if receiver is a UMMF::UML_1_5::OCL::Expressions::IfExp.
Other receivers will return false.
This is the fully qualified version of the isaIfExp method.
__model_name my $name = $obj_or_package->__model_name;
Returns the UML Model name ('OCL::Expressions::IfExp') for an object or package of
this Classifier.
__isAbstract$package->__isAbstract;
Returns 0.
__tangram_schemamy $tangram_schema $obj_or_package->__tangram_schema
Returns a HASH ref that describes this Classifier for Tangram.
___initializeInitialize all Attributes and AssociationEnds in a instance of this Classifier. Does not initalize slots in its Generalizations.
See also: __initialize.
__initializeInitialize all slots in this Classifier and all its Generalizations.
See also: ___initialize.
__createCalls all <<create>> Methods for this Classifier and all Generalizations.
See also: ___create.
conditionmy $val = $obj->condition;
Returns the AssociationEnd condition value of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
set_condition$obj->set_condition($val);
Sets the AssociationEnd condition value.
$val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
Returns $obj.
add_condition$obj->add_condition($val);
Adds the AssociationEnd condition value.
$val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
Throws exception if a value already exists.
Returns $obj.
remove_condition$obj->remove_condition($val);
Removes the AssociationEnd condition value $val.
Returns $obj.
clear_condition$obj->clear_condition;
Clears the AssociationEnd condition links to UMMF::UML_1_5::OCL::Expressions::OclExpression.
Returns $obj.
count_condition$obj->count_condition;
Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::OclExpression associated with condition.
elseExpressionmy $val = $obj->elseExpression;
Returns the AssociationEnd elseExpression value of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
set_elseExpression$obj->set_elseExpression($val);
Sets the AssociationEnd elseExpression value.
$val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
Returns $obj.
add_elseExpression$obj->add_elseExpression($val);
Adds the AssociationEnd elseExpression value.
$val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
Throws exception if a value already exists.
Returns $obj.
remove_elseExpression$obj->remove_elseExpression($val);
Removes the AssociationEnd elseExpression value $val.
Returns $obj.
clear_elseExpression$obj->clear_elseExpression;
Clears the AssociationEnd elseExpression links to UMMF::UML_1_5::OCL::Expressions::OclExpression.
Returns $obj.
count_elseExpression$obj->count_elseExpression;
Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::OclExpression associated with elseExpression.
thenExpressionmy $val = $obj->thenExpression;
Returns the AssociationEnd thenExpression value of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
set_thenExpression$obj->set_thenExpression($val);
Sets the AssociationEnd thenExpression value.
$val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
Returns $obj.
add_thenExpression$obj->add_thenExpression($val);
Adds the AssociationEnd thenExpression value.
$val must of type UMMF::UML_1_5::OCL::Expressions::OclExpression.
Throws exception if a value already exists.
Returns $obj.
remove_thenExpression$obj->remove_thenExpression($val);
Removes the AssociationEnd thenExpression value $val.
Returns $obj.
clear_thenExpression$obj->clear_thenExpression;
Clears the AssociationEnd thenExpression links to UMMF::UML_1_5::OCL::Expressions::OclExpression.
Returns $obj.
count_thenExpression$obj->count_thenExpression;
Returns the number of elements of type UMMF::UML_1_5::OCL::Expressions::OclExpression associated with thenExpression.
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::IfExp; #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::IfExp') ; }
sub __typecheck { my ($self, $x, $msg) = @_; confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::OCL::Expressions::IfExp' . ": value '$x'") unless __validate_type($self, $x); }
sub isaIfExp { 1 }
sub isaOCL__Expressions__IfExp { 1 } ################################################################# # Introspection #
sub __model_name { 'OCL::Expressions::IfExp' }
sub __isAbstract { 0; } my $__tangram_schema;
sub __tangram_schema { my ($self) = @_; $__tangram_schema ||= { 'classes' => [ 'UMMF::UML_1_5::OCL::Expressions::IfExp' => { 'table' => 'OCL__Expressions__IfExp', 'abstract' => 0, 'slots' => { # Attributes # Associations 'condition' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::OCL::Expressions::OclExpression', 'col' => 'condition', 'aggreg' => '1', } , 'elseExpression' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::OCL::Expressions::OclExpression', 'col' => 'elseExpression', 'aggreg' => '1', } , 'thenExpression' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::OCL::Expressions::OclExpression', 'col' => 'thenExpression', '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 # <--> # condition 1 UMMF::UML_1_5::OCL::Expressions::OclExpression. if ( defined $self->{'condition'} ) { my $x = $self->{'condition'}; $self->{'condition'} = undef; $self->set_condition($x); } # AssociationEnd # 0..1 # <--> # elseExpression 1 UMMF::UML_1_5::OCL::Expressions::OclExpression. if ( defined $self->{'elseExpression'} ) { my $x = $self->{'elseExpression'}; $self->{'elseExpression'} = undef; $self->set_elseExpression($x); } # AssociationEnd # 0..1 # <--> # thenExpression 1 UMMF::UML_1_5::OCL::Expressions::OclExpression. if ( defined $self->{'thenExpression'} ) { my $x = $self->{'thenExpression'}; $self->{'thenExpression'} = undef; $self->set_thenExpression($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::IfExp::___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::IfExp::___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 <---> condition # type = UMMF::UML_1_5::OCL::Expressions::OclExpression # multiplicity = 1 # ordering =
sub condition ($) { my ($self) = @_; $self->{'condition'}; }
sub set_condition ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'condition'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::IfExp.condition") } # Recursion lock $self->{'condition'} = $val ; # Remove and add associations with other ends. } $self; }
sub add_condition ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'condition'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::IfExp.condition"); # confess("UMMF::UML_1_5::OCL::Expressions::IfExp::condition: too many") # if defined $self->{'condition'}; # Recursion lock $self->{'condition'} = $val ; # Remove and add associations with other ends. } $self; }
sub remove_condition ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'condition'}) eq $val ) { # Recursion lock $val = $self->{'condition'} = undef; # Recursion lock # Remove and add associations with other ends. } }
sub clear_condition ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'condition'}) ) { # Recursion lock my $val = $self->{'condition'} = undef; # Recursion lock # Remove and add associations with other ends. } $self; }
sub count_condition ($) { my ($self) = @_; my $x = $self->{'condition'}; defined $x ? 1 : 0; }
################################################################# # AssociationEnd <---> elseExpression # type = UMMF::UML_1_5::OCL::Expressions::OclExpression # multiplicity = 1 # ordering =
sub elseExpression ($) { my ($self) = @_; $self->{'elseExpression'}; }
sub set_elseExpression ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'elseExpression'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::IfExp.elseExpression") } # Recursion lock $self->{'elseExpression'} = $val ; # Remove and add associations with other ends. } $self; }
sub add_elseExpression ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'elseExpression'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::IfExp.elseExpression"); # confess("UMMF::UML_1_5::OCL::Expressions::IfExp::elseExpression: too many") # if defined $self->{'elseExpression'}; # Recursion lock $self->{'elseExpression'} = $val ; # Remove and add associations with other ends. } $self; }
sub remove_elseExpression ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'elseExpression'}) eq $val ) { # Recursion lock $val = $self->{'elseExpression'} = undef; # Recursion lock # Remove and add associations with other ends. } }
sub clear_elseExpression ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'elseExpression'}) ) { # Recursion lock my $val = $self->{'elseExpression'} = undef; # Recursion lock # Remove and add associations with other ends. } $self; }
sub count_elseExpression ($) { my ($self) = @_; my $x = $self->{'elseExpression'}; defined $x ? 1 : 0; }
################################################################# # AssociationEnd <---> thenExpression # type = UMMF::UML_1_5::OCL::Expressions::OclExpression # multiplicity = 1 # ordering =
sub thenExpression ($) { my ($self) = @_; $self->{'thenExpression'}; }
sub set_thenExpression ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'thenExpression'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::IfExp.thenExpression") } # Recursion lock $self->{'thenExpression'} = $val ; # Remove and add associations with other ends. } $self; }
sub add_thenExpression ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'thenExpression'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::OCL::Expressions::OclExpression')->__typecheck($val, "UMMF::UML_1_5::OCL::Expressions::IfExp.thenExpression"); # confess("UMMF::UML_1_5::OCL::Expressions::IfExp::thenExpression: too many") # if defined $self->{'thenExpression'}; # Recursion lock $self->{'thenExpression'} = $val ; # Remove and add associations with other ends. } $self; }
sub remove_thenExpression ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'thenExpression'}) eq $val ) { # Recursion lock $val = $self->{'thenExpression'} = undef; # Recursion lock # Remove and add associations with other ends. } }
sub clear_thenExpression ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'thenExpression'}) ) { # Recursion lock my $val = $self->{'thenExpression'} = undef; # Recursion lock # Remove and add associations with other ends. } $self; }
sub count_thenExpression ($) { my ($self) = @_; my $x = $self->{'thenExpression'}; defined $x ? 1 : 0; } # End of Class IfExp
############################################################################ 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: ###