| UMMF documentation | Contained in the UMMF distribution. |
__validate_type__typecheckisaExtensionPointisaBehavioral_Elements__Use_Cases__ExtensionPoint__model_name __isAbstract__tangram_schema___initialize__initialize__createlocationset_locationcount_locationextendset_extendadd_extendremove_extendclear_extendcount_extenduseCaseset_useCaseadd_useCaseremove_useCaseclear_useCasecount_useCase
UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint --
1.5
location : UMMF::UML_1_5::Foundation::Data_Types::LocationReference private1changeableinstanceunorderedSet::ObjectextensionPoint : THIS 1..* <---> extend : UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend 0..*0..*changeableinstancenoneprivateSet::ObjectextensionPoint : THIS 0..* <---> useCase : UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase 11changeableinstancenoneprivateSet::Object__validate_typeUMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint->__validate_type($value);
Returns true if $value is a valid representation of UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint.
__typecheckUMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint-__validate_type($value)>> is false.
isaExtensionPointReturns true if receiver is a UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint. Other receivers will return false.
isaBehavioral_Elements__Use_Cases__ExtensionPointReturns true if receiver is a UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint.
Other receivers will return false.
This is the fully qualified version of the isaExtensionPoint method.
__model_name my $name = $obj_or_package->__model_name;
Returns the UML Model name ('Behavioral_Elements::Use_Cases::ExtensionPoint') 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.
locationmy $val = $obj->location;
Returns the UMMF::UML_1_5::Foundation::Data_Types::LocationReference value of Attribute location.
set_location$obj->set_location($val);
Sets the value of Attribute location.
$val must be of type UMMF::UML_1_5::Foundation::Data_Types::LocationReference or undef.
Returns $obj.
count_location$obj->count_location;
Returns the number of elements (0 or 1) in location.
extendmy @val = $obj->extend; my $ary_val = $obj->extend;
Returns the AssociationEnd extend values of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend.
In array context, returns all the objects in the Association.
In scalar context, returns an array ref of all the objects in the Association.
set_extend$obj->set_extend(@val);
Sets the AssociationEnd extend value.
Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend.
Returns $obj.
add_extend$obj->add_extend(@val);
Adds AssociationEnd extend values.
Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend.
Returns $obj.
remove_extend$obj->remove_extend(@val);
Removes the AssociationEnd extend values @val.
Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend.
Returns $obj.
clear_extend$obj->clear_extend;
Clears the AssociationEnd extend links to UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend.
Returns $obj.
count_extend$obj->count_extend;
Returns the number of elements associated with extend.
useCasemy $val = $obj->useCase;
Returns the AssociationEnd useCase value of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase.
set_useCase$obj->set_useCase($val);
Sets the AssociationEnd useCase value.
$val must of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase.
Returns $obj.
add_useCase$obj->add_useCase($val);
Adds the AssociationEnd useCase value.
$val must of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase.
Throws exception if a value already exists.
Returns $obj.
remove_useCase$obj->remove_useCase($val);
Removes the AssociationEnd useCase value $val.
Returns $obj.
clear_useCase$obj->clear_useCase;
Clears the AssociationEnd useCase links to UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase.
Returns $obj.
count_useCase$obj->count_useCase;
Returns the number of elements of type UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase associated with useCase.
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::Behavioral_Elements::Use_Cases::ExtensionPoint; #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::ModelElement ); ################################################################# # 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::Behavioral_Elements::Use_Cases::ExtensionPoint') ; }
sub __typecheck { my ($self, $x, $msg) = @_; confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint' . ": value '$x'") unless __validate_type($self, $x); }
sub isaExtensionPoint { 1 }
sub isaBehavioral_Elements__Use_Cases__ExtensionPoint { 1 } ################################################################# # Introspection #
sub __model_name { 'Behavioral_Elements::Use_Cases::ExtensionPoint' }
sub __isAbstract { 0; } my $__tangram_schema;
sub __tangram_schema { my ($self) = @_; $__tangram_schema ||= { 'classes' => [ 'UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint' => { 'table' => 'Behavioral_Elements__Use_Cases__ExtensionPoint', 'abstract' => 0, 'slots' => { # Attributes 'location' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Data_Types::LocationReference', 'col' => 'location', } , # Associations 'extend' => { 'type_impl' => 'set', 'class' => 'UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend', 'table' => 'Behavioral_Elements__Use_Cases__ExtensionPoint_Extend', 'item' => 'extend', 'coll' => 'extensionPoint', } , 'useCase' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase', 'col' => 'useCase', } , }, 'bases' => [ 'UMMF::UML_1_5::Foundation::Core::ModelElement', ], '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 # Attribute location if ( exists $self->{'location'} ) { my $x = $self->{'location'}; $self->{'location'} = undef; $self->set_location($x); } else { } # Associations # AssociationEnd # extensionPoint 1..* # <--> # extend 0..* UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend. if ( defined $self->{'extend'} ) { my $x = $self->{'extend'}; $self->{'extend'} = Set::Object->new(); $self->set_extend(@$x); } # AssociationEnd # extensionPoint 0..* # <--> # useCase 1 UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase. if ( defined $self->{'useCase'} ) { my $x = $self->{'useCase'}; $self->{'useCase'} = undef; $self->set_useCase($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->UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint::___initialize; $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize; $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___initialize; $self; }
sub __create { my ($self, @args) = @_; # $DB::single = 1; $self->UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint::___create(@args); $self->UMMF::UML_1_5::Foundation::Core::Element::___create(); $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___create(); $self; } ################################################################# # Attributes #
################################################################# # Attribute location # type = UMMF::UML_1_5::Foundation::Data_Types::LocationReference # multiplicity = 1 # ordering = unordered # ownerScope = instance # initialValue =
sub location ($) { my ($self) = @_; ; my $val = $self->{'location'}; ; $val; }
sub set_location ($$) { my ($self, $val) = @_; ; if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Data_Types::LocationReference')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint.location"); } $self->{'location'} = $val ; ; $self; }
sub count_location ($) { my ($self) = @_; ; my $val = $self->{'location'}; ; defined $val ? 1 : 0; } ################################################################# # Association #
################################################################# # AssociationEnd extensionPoint <---> extend # type = UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend # multiplicity = 0..* # ordering =
sub extend ($) { my ($self) = @_; my $x = $self->{'extend'}; # confess("Container for extend $x is not a blessed ref: " . Data::Dumper->new([ $self ], [qw($self)])->Maxdepth(2)->Dump()) if $x && ref($x) !~ /::/; wantarray ? ($x ? $x->members() : ()) : [ $x ? $x->members() : () ]; }
sub set_extend ($@) { my ($self, @val) = @_; $self->clear_extend; $self->add_extend(@val); }
sub add_extend ($@) { my ($self, @val) = @_; my $x = $self->{'extend'} ||= Set::Object->new(); my $old; # Place holder for other MACRO. for my $val ( @val ) { # Recursion lock next if $x->includes($val); $self->__use('UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint.extend"); # Recursion lock $x->insert($val); # weaken? # Remove and add associations with other ends. $old->remove_extensionPoint($self) if $old; $val->add_extensionPoint($self) if $val; } $self; }
sub remove_extend ($@) { my ($self, @val) = @_; my $x = $self->{'extend'} ||= Set::Object->new(); for my $old ( @val ) { # Recursion lock next unless $x->includes($old); my $val = $old; $self->__use('UMMF::UML_1_5::Behavioral_Elements::Use_Cases::Extend')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint.extend"); # Recursion lock $x->remove($old); $val = undef; # Remove associations with other ends. $old->remove_extensionPoint($self) if $old; $val->add_extensionPoint($self) if $val; ; } $self; }
sub clear_extend ($) { my ($self) = @_; my $x = $self->{'extend'} ||= Set::Object->new(); my $val; # Place holder for other MACRO. $self->{'extend'} = Set::Object->new(); # Recursion lock for my $old ( $x->members() ) { # Recursion lock # Remove associations with other ends. $old->remove_extensionPoint($self) if $old; $val->add_extensionPoint($self) if $val; ; } $self; }
sub count_extend ($) { my ($self) = @_; my $x = $self->{'extend'}; defined $x ? $x->size : 0; }
################################################################# # AssociationEnd extensionPoint <---> useCase # type = UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase # multiplicity = 1 # ordering =
sub useCase ($) { my ($self) = @_; $self->{'useCase'}; }
sub set_useCase ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'useCase'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint.useCase") } # Recursion lock $self->{'useCase'} = $val ; # Remove and add associations with other ends. $old->remove_extensionPoint($self) if $old; $val->add_extensionPoint($self) if $val; } $self; }
sub add_useCase ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'useCase'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::Behavioral_Elements::Use_Cases::UseCase')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint.useCase"); # confess("UMMF::UML_1_5::Behavioral_Elements::Use_Cases::ExtensionPoint::useCase: too many") # if defined $self->{'useCase'}; # Recursion lock $self->{'useCase'} = $val ; # Remove and add associations with other ends. $old->remove_extensionPoint($self) if $old; $val->add_extensionPoint($self) if $val; } $self; }
sub remove_useCase ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'useCase'}) eq $val ) { # Recursion lock $val = $self->{'useCase'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_extensionPoint($self) if $old; $val->add_extensionPoint($self) if $val; } }
sub clear_useCase ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'useCase'}) ) { # Recursion lock my $val = $self->{'useCase'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_extensionPoint($self) if $old; $val->add_extensionPoint($self) if $val; } $self; }
sub count_useCase ($) { my ($self) = @_; my $x = $self->{'useCase'}; defined $x ? 1 : 0; } # End of Class ExtensionPoint
############################################################################ 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: ###