| UMMF documentation | Contained in the UMMF distribution. |
__validate_type__typecheckisaTemplateArgumentisaFoundation__Core__TemplateArgument__model_name __isAbstract__tangram_schema___initialize__initialize__createbindingset_bindingadd_bindingremove_bindingclear_bindingcount_bindingmodelElementset_modelElementadd_modelElementremove_modelElementclear_modelElementcount_modelElement
UMMF::UML_1_5::Foundation::Core::TemplateArgument --
1.5
NO ATTRIBUTES
argument : THIS 1..* <---> binding : UMMF::UML_1_5::Foundation::Core::Binding 11changeableinstancenonepublicSet::ObjecttemplateArgument : THIS 0..* <---> modelElement : UMMF::UML_1_5::Foundation::Core::ModelElement 11changeableinstancenonepublicSet::Object__validate_typeUMMF::UML_1_5::Foundation::Core::TemplateArgument->__validate_type($value);
Returns true if $value is a valid representation of UMMF::UML_1_5::Foundation::Core::TemplateArgument.
__typecheckUMMF::UML_1_5::Foundation::Core::TemplateArgument->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::UML_1_5::Foundation::Core::TemplateArgument-__validate_type($value)>> is false.
isaTemplateArgumentReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::TemplateArgument. Other receivers will return false.
isaFoundation__Core__TemplateArgumentReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::TemplateArgument.
Other receivers will return false.
This is the fully qualified version of the isaTemplateArgument method.
__model_name my $name = $obj_or_package->__model_name;
Returns the UML Model name ('Foundation::Core::TemplateArgument') 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.
bindingmy $val = $obj->binding;
Returns the AssociationEnd binding value of type UMMF::UML_1_5::Foundation::Core::Binding.
set_binding$obj->set_binding($val);
Sets the AssociationEnd binding value.
$val must of type UMMF::UML_1_5::Foundation::Core::Binding.
Returns $obj.
add_binding$obj->add_binding($val);
Adds the AssociationEnd binding value.
$val must of type UMMF::UML_1_5::Foundation::Core::Binding.
Throws exception if a value already exists.
Returns $obj.
remove_binding$obj->remove_binding($val);
Removes the AssociationEnd binding value $val.
Returns $obj.
clear_binding$obj->clear_binding;
Clears the AssociationEnd binding links to UMMF::UML_1_5::Foundation::Core::Binding.
Returns $obj.
count_binding$obj->count_binding;
Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::Binding associated with binding.
modelElementmy $val = $obj->modelElement;
Returns the AssociationEnd modelElement value of type UMMF::UML_1_5::Foundation::Core::ModelElement.
set_modelElement$obj->set_modelElement($val);
Sets the AssociationEnd modelElement value.
$val must of type UMMF::UML_1_5::Foundation::Core::ModelElement.
Returns $obj.
add_modelElement$obj->add_modelElement($val);
Adds the AssociationEnd modelElement value.
$val must of type UMMF::UML_1_5::Foundation::Core::ModelElement.
Throws exception if a value already exists.
Returns $obj.
remove_modelElement$obj->remove_modelElement($val);
Removes the AssociationEnd modelElement value $val.
Returns $obj.
clear_modelElement$obj->clear_modelElement;
Clears the AssociationEnd modelElement links to UMMF::UML_1_5::Foundation::Core::ModelElement.
Returns $obj.
count_modelElement$obj->count_modelElement;
Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::ModelElement associated with modelElement.
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::Foundation::Core::TemplateArgument; #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::Foundation::Core::TemplateArgument') ; }
sub __typecheck { my ($self, $x, $msg) = @_; confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::Foundation::Core::TemplateArgument' . ": value '$x'") unless __validate_type($self, $x); }
sub isaTemplateArgument { 1 }
sub isaFoundation__Core__TemplateArgument { 1 } ################################################################# # Introspection #
sub __model_name { 'Foundation::Core::TemplateArgument' }
sub __isAbstract { 0; } my $__tangram_schema;
sub __tangram_schema { my ($self) = @_; $__tangram_schema ||= { 'classes' => [ 'UMMF::UML_1_5::Foundation::Core::TemplateArgument' => { 'table' => 'Foundation__Core__TemplateArgument', 'abstract' => 0, 'slots' => { # Attributes # Associations 'binding' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Core::Binding', 'col' => 'binding', } , 'modelElement' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Core::ModelElement', 'col' => 'modelElement', } , }, '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 # argument 1..* # <--> # binding 1 UMMF::UML_1_5::Foundation::Core::Binding. if ( defined $self->{'binding'} ) { my $x = $self->{'binding'}; $self->{'binding'} = undef; $self->set_binding($x); } # AssociationEnd # templateArgument 0..* # <--> # modelElement 1 UMMF::UML_1_5::Foundation::Core::ModelElement. if ( defined $self->{'modelElement'} ) { my $x = $self->{'modelElement'}; $self->{'modelElement'} = undef; $self->set_modelElement($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::Foundation::Core::TemplateArgument::___initialize; $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize; $self; }
sub __create { my ($self, @args) = @_; # $DB::single = 1; $self->UMMF::UML_1_5::Foundation::Core::TemplateArgument::___create(@args); $self->UMMF::UML_1_5::Foundation::Core::Element::___create(); $self; } ################################################################# # Attributes # ################################################################# # Association #
################################################################# # AssociationEnd argument <---> binding # type = UMMF::UML_1_5::Foundation::Core::Binding # multiplicity = 1 # ordering =
sub binding ($) { my ($self) = @_; $self->{'binding'}; }
sub set_binding ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'binding'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::Binding')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateArgument.binding") } # Recursion lock $self->{'binding'} = $val ; # Remove and add associations with other ends. $old->remove_argument($self) if $old; $val->add_argument($self) if $val; } $self; }
sub add_binding ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'binding'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::Foundation::Core::Binding')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateArgument.binding"); # confess("UMMF::UML_1_5::Foundation::Core::TemplateArgument::binding: too many") # if defined $self->{'binding'}; # Recursion lock $self->{'binding'} = $val ; # Remove and add associations with other ends. $old->remove_argument($self) if $old; $val->add_argument($self) if $val; } $self; }
sub remove_binding ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'binding'}) eq $val ) { # Recursion lock $val = $self->{'binding'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_argument($self) if $old; $val->add_argument($self) if $val; } }
sub clear_binding ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'binding'}) ) { # Recursion lock my $val = $self->{'binding'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_argument($self) if $old; $val->add_argument($self) if $val; } $self; }
sub count_binding ($) { my ($self) = @_; my $x = $self->{'binding'}; defined $x ? 1 : 0; }
################################################################# # AssociationEnd templateArgument <---> modelElement # type = UMMF::UML_1_5::Foundation::Core::ModelElement # multiplicity = 1 # ordering =
sub modelElement ($) { my ($self) = @_; $self->{'modelElement'}; }
sub set_modelElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'modelElement'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateArgument.modelElement") } # Recursion lock $self->{'modelElement'} = $val ; # Remove and add associations with other ends. $old->remove_templateArgument($self) if $old; $val->add_templateArgument($self) if $val; } $self; }
sub add_modelElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'modelElement'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateArgument.modelElement"); # confess("UMMF::UML_1_5::Foundation::Core::TemplateArgument::modelElement: too many") # if defined $self->{'modelElement'}; # Recursion lock $self->{'modelElement'} = $val ; # Remove and add associations with other ends. $old->remove_templateArgument($self) if $old; $val->add_templateArgument($self) if $val; } $self; }
sub remove_modelElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'modelElement'}) eq $val ) { # Recursion lock $val = $self->{'modelElement'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_templateArgument($self) if $old; $val->add_templateArgument($self) if $val; } }
sub clear_modelElement ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'modelElement'}) ) { # Recursion lock my $val = $self->{'modelElement'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_templateArgument($self) if $old; $val->add_templateArgument($self) if $val; } $self; }
sub count_modelElement ($) { my ($self) = @_; my $x = $self->{'modelElement'}; defined $x ? 1 : 0; } # End of Class TemplateArgument
############################################################################ 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: ###