| UMMF documentation | Contained in the UMMF distribution. |
__validate_type__typecheckisaReferenceisaModel__Reference__model_name __isAbstract__tangram_schema___initialize__initialize__createexposedEndset_exposedEndadd_exposedEndremove_exposedEndclear_exposedEndcount_exposedEndreferencedEndset_referencedEndadd_referencedEndremove_referencedEndclear_referencedEndcount_referencedEnd
UMMF::MOF_1_3::Model::Reference --
1.3
NO ATTRIBUTES
referrer : THIS 0..* <---> exposedEnd : UMMF::MOF_1_3::Model::AssociationEnd 11changeableinstancenonepublicSet::Objectreferent : THIS 0..* <---> referencedEnd : UMMF::MOF_1_3::Model::AssociationEnd 11changeableinstancenonepublicSet::Object__validate_typeUMMF::MOF_1_3::Model::Reference->__validate_type($value);
Returns true if $value is a valid representation of UMMF::MOF_1_3::Model::Reference.
__typecheckUMMF::MOF_1_3::Model::Reference->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::MOF_1_3::Model::Reference-__validate_type($value)>> is false.
isaReferenceReturns true if receiver is a UMMF::MOF_1_3::Model::Reference. Other receivers will return false.
isaModel__ReferenceReturns true if receiver is a UMMF::MOF_1_3::Model::Reference.
Other receivers will return false.
This is the fully qualified version of the isaReference method.
__model_name my $name = $obj_or_package->__model_name;
Returns the UML Model name ('Model::Reference') 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.
exposedEndmy $val = $obj->exposedEnd;
Returns the AssociationEnd exposedEnd value of type UMMF::MOF_1_3::Model::AssociationEnd.
set_exposedEnd$obj->set_exposedEnd($val);
Sets the AssociationEnd exposedEnd value.
$val must of type UMMF::MOF_1_3::Model::AssociationEnd.
Returns $obj.
add_exposedEnd$obj->add_exposedEnd($val);
Adds the AssociationEnd exposedEnd value.
$val must of type UMMF::MOF_1_3::Model::AssociationEnd.
Throws exception if a value already exists.
Returns $obj.
remove_exposedEnd$obj->remove_exposedEnd($val);
Removes the AssociationEnd exposedEnd value $val.
Returns $obj.
clear_exposedEnd$obj->clear_exposedEnd;
Clears the AssociationEnd exposedEnd links to UMMF::MOF_1_3::Model::AssociationEnd.
Returns $obj.
count_exposedEnd$obj->count_exposedEnd;
Returns the number of elements of type UMMF::MOF_1_3::Model::AssociationEnd associated with exposedEnd.
referencedEndmy $val = $obj->referencedEnd;
Returns the AssociationEnd referencedEnd value of type UMMF::MOF_1_3::Model::AssociationEnd.
set_referencedEnd$obj->set_referencedEnd($val);
Sets the AssociationEnd referencedEnd value.
$val must of type UMMF::MOF_1_3::Model::AssociationEnd.
Returns $obj.
add_referencedEnd$obj->add_referencedEnd($val);
Adds the AssociationEnd referencedEnd value.
$val must of type UMMF::MOF_1_3::Model::AssociationEnd.
Throws exception if a value already exists.
Returns $obj.
remove_referencedEnd$obj->remove_referencedEnd($val);
Removes the AssociationEnd referencedEnd value $val.
Returns $obj.
clear_referencedEnd$obj->clear_referencedEnd;
Clears the AssociationEnd referencedEnd links to UMMF::MOF_1_3::Model::AssociationEnd.
Returns $obj.
count_referencedEnd$obj->count_referencedEnd;
Returns the number of elements of type UMMF::MOF_1_3::Model::AssociationEnd associated with referencedEnd.
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::MOF_1_3::Model::Reference; #use 5.6.1; use strict; use warnings; ################################################################# # Version # our $VERSION = do { my @r = (q{1.3} =~ /\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::MOF_1_3::__ObjectBase qw(:__ummf_array); ################################################################# # Generalizations # use base qw( UMMF::MOF_1_3::Model::StructuralFeature ); ################################################################# # Exports # our @EXPORT_OK = qw( ); our %EXPORT_TAGS = ( 'all' => \@EXPORT_OK ); ################################################################# # Validation #
sub __validate_type($$) { my ($self, $x) = @_; no warnings; UNIVERSAL::isa($x, 'UMMF::MOF_1_3::Model::Reference') ; }
sub __typecheck { my ($self, $x, $msg) = @_; confess("typecheck: $msg: type '" . 'UMMF::MOF_1_3::Model::Reference' . ": value '$x'") unless __validate_type($self, $x); }
sub isaReference { 1 }
sub isaModel__Reference { 1 } ################################################################# # Introspection #
sub __model_name { 'Model::Reference' }
sub __isAbstract { 0; } my $__tangram_schema;
sub __tangram_schema { my ($self) = @_; $__tangram_schema ||= { 'classes' => [ 'UMMF::MOF_1_3::Model::Reference' => { 'table' => 'Model__Reference', 'abstract' => 0, 'slots' => { # Attributes # Associations 'exposedEnd' => { 'type_impl' => 'ref', 'class' => 'UMMF::MOF_1_3::Model::AssociationEnd', 'col' => 'exposedEnd', } , 'referencedEnd' => { 'type_impl' => 'ref', 'class' => 'UMMF::MOF_1_3::Model::AssociationEnd', 'col' => 'referencedEnd', } , }, 'bases' => [ 'UMMF::MOF_1_3::Model::StructuralFeature', ], '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 # referrer 0..* # <--> # exposedEnd 1 UMMF::MOF_1_3::Model::AssociationEnd. if ( defined $self->{'exposedEnd'} ) { my $x = $self->{'exposedEnd'}; $self->{'exposedEnd'} = undef; $self->set_exposedEnd($x); } # AssociationEnd # referent 0..* # <--> # referencedEnd 1 UMMF::MOF_1_3::Model::AssociationEnd. if ( defined $self->{'referencedEnd'} ) { my $x = $self->{'referencedEnd'}; $self->{'referencedEnd'} = undef; $self->set_referencedEnd($x); } $self; } my $__initialize_use;
sub __initialize { my ($self) = @_; # $DB::single = 1; unless ( ! $__initialize_use ) { $__initialize_use = 1; $self->__use('UMMF::MOF_1_3::Model::Feature'); $self->__use('UMMF::MOF_1_3::Model::ModelElement'); $self->__use('UMMF::MOF_1_3::Model::TypedElement'); $self->__use('UMMF::MOF_1_3::Model::StructuralFeature'); } $self->UMMF::MOF_1_3::Model::Reference::___initialize; $self->UMMF::MOF_1_3::Model::Feature::___initialize; $self->UMMF::MOF_1_3::Model::ModelElement::___initialize; $self->UMMF::MOF_1_3::Model::TypedElement::___initialize; $self->UMMF::MOF_1_3::Model::StructuralFeature::___initialize; $self; }
sub __create { my ($self, @args) = @_; # $DB::single = 1; $self->UMMF::MOF_1_3::Model::Reference::___create(@args); $self->UMMF::MOF_1_3::Model::Feature::___create(); $self->UMMF::MOF_1_3::Model::ModelElement::___create(); $self->UMMF::MOF_1_3::Model::TypedElement::___create(); $self->UMMF::MOF_1_3::Model::StructuralFeature::___create(); $self; } ################################################################# # Attributes # ################################################################# # Association #
################################################################# # AssociationEnd referrer <---> exposedEnd # type = UMMF::MOF_1_3::Model::AssociationEnd # multiplicity = 1 # ordering =
sub exposedEnd ($) { my ($self) = @_; $self->{'exposedEnd'}; }
sub set_exposedEnd ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'exposedEnd'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::MOF_1_3::Model::AssociationEnd')->__typecheck($val, "UMMF::MOF_1_3::Model::Reference.exposedEnd") } # Recursion lock $self->{'exposedEnd'} = $val ; # Remove and add associations with other ends. $old->remove_referrer($self) if $old; $val->add_referrer($self) if $val; } $self; }
sub add_exposedEnd ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'exposedEnd'}) ne $val ) { # Recursion lock $self->__use('UMMF::MOF_1_3::Model::AssociationEnd')->__typecheck($val, "UMMF::MOF_1_3::Model::Reference.exposedEnd"); # confess("UMMF::MOF_1_3::Model::Reference::exposedEnd: too many") # if defined $self->{'exposedEnd'}; # Recursion lock $self->{'exposedEnd'} = $val ; # Remove and add associations with other ends. $old->remove_referrer($self) if $old; $val->add_referrer($self) if $val; } $self; }
sub remove_exposedEnd ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'exposedEnd'}) eq $val ) { # Recursion lock $val = $self->{'exposedEnd'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_referrer($self) if $old; $val->add_referrer($self) if $val; } }
sub clear_exposedEnd ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'exposedEnd'}) ) { # Recursion lock my $val = $self->{'exposedEnd'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_referrer($self) if $old; $val->add_referrer($self) if $val; } $self; }
sub count_exposedEnd ($) { my ($self) = @_; my $x = $self->{'exposedEnd'}; defined $x ? 1 : 0; }
################################################################# # AssociationEnd referent <---> referencedEnd # type = UMMF::MOF_1_3::Model::AssociationEnd # multiplicity = 1 # ordering =
sub referencedEnd ($) { my ($self) = @_; $self->{'referencedEnd'}; }
sub set_referencedEnd ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'referencedEnd'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::MOF_1_3::Model::AssociationEnd')->__typecheck($val, "UMMF::MOF_1_3::Model::Reference.referencedEnd") } # Recursion lock $self->{'referencedEnd'} = $val ; # Remove and add associations with other ends. $old->remove_referent($self) if $old; $val->add_referent($self) if $val; } $self; }
sub add_referencedEnd ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'referencedEnd'}) ne $val ) { # Recursion lock $self->__use('UMMF::MOF_1_3::Model::AssociationEnd')->__typecheck($val, "UMMF::MOF_1_3::Model::Reference.referencedEnd"); # confess("UMMF::MOF_1_3::Model::Reference::referencedEnd: too many") # if defined $self->{'referencedEnd'}; # Recursion lock $self->{'referencedEnd'} = $val ; # Remove and add associations with other ends. $old->remove_referent($self) if $old; $val->add_referent($self) if $val; } $self; }
sub remove_referencedEnd ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'referencedEnd'}) eq $val ) { # Recursion lock $val = $self->{'referencedEnd'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_referent($self) if $old; $val->add_referent($self) if $val; } }
sub clear_referencedEnd ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'referencedEnd'}) ) { # Recursion lock my $val = $self->{'referencedEnd'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_referent($self) if $old; $val->add_referent($self) if $val; } $self; }
sub count_referencedEnd ($) { my ($self) = @_; my $x = $self->{'referencedEnd'}; defined $x ? 1 : 0; } # End of Class Reference
############################################################################ 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: ###