| UMMF documentation | Contained in the UMMF distribution. |
__validate_type__typecheckisaElementOwnershipisaFoundation__Core__ElementOwnership__model_name __isAbstract__tangram_schema___initialize__initialize__createvisibilityset_visibilitycount_visibilityisSpecificationset_isSpecificationcount_isSpecificationnamespaceset_namespaceadd_namespaceremove_namespaceclear_namespacecount_namespaceownedElementset_ownedElementadd_ownedElementremove_ownedElementclear_ownedElementcount_ownedElement
UMMF::UML_1_5::Foundation::Core::ElementOwnership --
1.5
visibility : UMMF::UML_1_5::Foundation::Data_Types::VisibilityKind private1changeableinstanceunordered<"public">Set::ObjectisSpecification : UMMF::UML_1_5::Foundation::Data_Types::Boolean private1changeableinstanceunordered<"false">Set::ObjectownedElement_AC : THIS 0..* <---> namespace : UMMF::UML_1_5::Foundation::Core::Namespace 11changeableinstancecompositepublicSet::Objectnamespace_AC : THIS 0..1 <---> ownedElement : UMMF::UML_1_5::Foundation::Core::ModelElement 11changeableinstancenonepublicSet::Object__validate_typeUMMF::UML_1_5::Foundation::Core::ElementOwnership->__validate_type($value);
Returns true if $value is a valid representation of UMMF::UML_1_5::Foundation::Core::ElementOwnership.
__typecheckUMMF::UML_1_5::Foundation::Core::ElementOwnership->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::UML_1_5::Foundation::Core::ElementOwnership-__validate_type($value)>> is false.
isaElementOwnershipReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::ElementOwnership. Other receivers will return false.
isaFoundation__Core__ElementOwnershipReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::ElementOwnership.
Other receivers will return false.
This is the fully qualified version of the isaElementOwnership method.
__model_name my $name = $obj_or_package->__model_name;
Returns the UML Model name ('Foundation::Core::ElementOwnership') 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.
visibilitymy $val = $obj->visibility;
Returns the UMMF::UML_1_5::Foundation::Data_Types::VisibilityKind value of Attribute visibility.
set_visibility$obj->set_visibility($val);
Sets the value of Attribute visibility.
$val must be of type UMMF::UML_1_5::Foundation::Data_Types::VisibilityKind or undef.
Returns $obj.
count_visibility$obj->count_visibility;
Returns the number of elements (0 or 1) in visibility.
isSpecificationmy $val = $obj->isSpecification;
Returns the UMMF::UML_1_5::Foundation::Data_Types::Boolean value of Attribute isSpecification.
set_isSpecification$obj->set_isSpecification($val);
Sets the value of Attribute isSpecification.
$val must be of type UMMF::UML_1_5::Foundation::Data_Types::Boolean or undef.
Returns $obj.
count_isSpecification$obj->count_isSpecification;
Returns the number of elements (0 or 1) in isSpecification.
namespacemy $val = $obj->namespace;
Returns the AssociationEnd namespace value of type UMMF::UML_1_5::Foundation::Core::Namespace.
set_namespace$obj->set_namespace($val);
Sets the AssociationEnd namespace value.
$val must of type UMMF::UML_1_5::Foundation::Core::Namespace.
Returns $obj.
add_namespace$obj->add_namespace($val);
Adds the AssociationEnd namespace value.
$val must of type UMMF::UML_1_5::Foundation::Core::Namespace.
Throws exception if a value already exists.
Returns $obj.
remove_namespace$obj->remove_namespace($val);
Removes the AssociationEnd namespace value $val.
Returns $obj.
clear_namespace$obj->clear_namespace;
Clears the AssociationEnd namespace links to UMMF::UML_1_5::Foundation::Core::Namespace.
Returns $obj.
count_namespace$obj->count_namespace;
Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::Namespace associated with namespace.
ownedElementmy $val = $obj->ownedElement;
Returns the AssociationEnd ownedElement value of type UMMF::UML_1_5::Foundation::Core::ModelElement.
set_ownedElement$obj->set_ownedElement($val);
Sets the AssociationEnd ownedElement value.
$val must of type UMMF::UML_1_5::Foundation::Core::ModelElement.
Returns $obj.
add_ownedElement$obj->add_ownedElement($val);
Adds the AssociationEnd ownedElement value.
$val must of type UMMF::UML_1_5::Foundation::Core::ModelElement.
Throws exception if a value already exists.
Returns $obj.
remove_ownedElement$obj->remove_ownedElement($val);
Removes the AssociationEnd ownedElement value $val.
Returns $obj.
clear_ownedElement$obj->clear_ownedElement;
Clears the AssociationEnd ownedElement links to UMMF::UML_1_5::Foundation::Core::ModelElement.
Returns $obj.
count_ownedElement$obj->count_ownedElement;
Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::ModelElement associated with ownedElement.
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::ElementOwnership; #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::__ObjectBase ); ################################################################# # 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::ElementOwnership') ; }
sub __typecheck { my ($self, $x, $msg) = @_; confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::Foundation::Core::ElementOwnership' . ": value '$x'") unless __validate_type($self, $x); }
sub isaElementOwnership { 1 }
sub isaFoundation__Core__ElementOwnership { 1 } ################################################################# # Introspection #
sub __model_name { 'Foundation::Core::ElementOwnership' }
sub __isAbstract { 0; } my $__tangram_schema;
sub __tangram_schema { my ($self) = @_; $__tangram_schema ||= { 'classes' => [ 'UMMF::UML_1_5::Foundation::Core::ElementOwnership' => { 'table' => 'Foundation__Core__ElementOwnership', 'abstract' => 0, 'slots' => { # Attributes 'visibility' => { 'type_impl' => 'string', 'col' => 'visibility', } , 'isSpecification' => { 'type_impl' => 'string', 'col' => 'isSpecification', } , # Associations 'namespace' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Core::Namespace', 'col' => 'namespace', } , 'ownedElement' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Core::ModelElement', 'col' => 'ownedElement', 'aggreg' => '1', } , }, 'bases' => [ ], '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 visibility if ( exists $self->{'visibility'} ) { my $x = $self->{'visibility'}; $self->{'visibility'} = undef; $self->set_visibility($x); } else { $self->{'visibility'} = "public"; } # Attribute isSpecification if ( exists $self->{'isSpecification'} ) { my $x = $self->{'isSpecification'}; $self->{'isSpecification'} = undef; $self->set_isSpecification($x); } else { $self->{'isSpecification'} = "false"; } # Associations # AssociationEnd # ownedElement_AC 0..* # <--> # namespace 1 UMMF::UML_1_5::Foundation::Core::Namespace. if ( defined $self->{'namespace'} ) { my $x = $self->{'namespace'}; $self->{'namespace'} = undef; $self->set_namespace($x); } # AssociationEnd # namespace_AC 0..1 # <--> # ownedElement 1 UMMF::UML_1_5::Foundation::Core::ModelElement. if ( defined $self->{'ownedElement'} ) { my $x = $self->{'ownedElement'}; $self->{'ownedElement'} = undef; $self->set_ownedElement($x); } $self; } my $__initialize_use;
sub __initialize { my ($self) = @_; # $DB::single = 1; unless ( ! $__initialize_use ) { $__initialize_use = 1; } $self->UMMF::UML_1_5::Foundation::Core::ElementOwnership::___initialize; $self; }
sub __create { my ($self, @args) = @_; # $DB::single = 1; $self->UMMF::UML_1_5::Foundation::Core::ElementOwnership::___create(@args); $self; } ################################################################# # Attributes #
################################################################# # Attribute visibility # type = UMMF::UML_1_5::Foundation::Data_Types::VisibilityKind # multiplicity = 1 # ordering = unordered # ownerScope = instance # initialValue = "public"
sub visibility ($) { my ($self) = @_; ; my $val = $self->{'visibility'}; ; $val; }
sub set_visibility ($$) { my ($self, $val) = @_; ; if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Data_Types::VisibilityKind')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::ElementOwnership.visibility"); } $self->{'visibility'} = $val ; ; $self; }
sub count_visibility ($) { my ($self) = @_; ; my $val = $self->{'visibility'}; ; defined $val ? 1 : 0; }
################################################################# # Attribute isSpecification # type = UMMF::UML_1_5::Foundation::Data_Types::Boolean # multiplicity = 1 # ordering = unordered # ownerScope = instance # initialValue = "false"
sub isSpecification ($) { my ($self) = @_; ; my $val = $self->{'isSpecification'}; ; $val; }
sub set_isSpecification ($$) { my ($self, $val) = @_; ; if ( defined $val ) { ; } $self->{'isSpecification'} = $val ; ; $self; }
sub count_isSpecification ($) { my ($self) = @_; ; my $val = $self->{'isSpecification'}; ; defined $val ? 1 : 0; } ################################################################# # Association #
################################################################# # AssociationEnd ownedElement_AC <---> namespace # type = UMMF::UML_1_5::Foundation::Core::Namespace # multiplicity = 1 # ordering =
sub namespace ($) { my ($self) = @_; $self->{'namespace'}; }
sub set_namespace ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'namespace'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::Namespace')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::ElementOwnership.namespace") } # Recursion lock $self->{'namespace'} = $val ; # Remove and add associations with other ends. $old->remove_ownedElement_AC($self) if $old; $val->add_ownedElement_AC($self) if $val; } $self; }
sub add_namespace ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'namespace'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::Foundation::Core::Namespace')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::ElementOwnership.namespace"); # confess("UMMF::UML_1_5::Foundation::Core::ElementOwnership::namespace: too many") # if defined $self->{'namespace'}; # Recursion lock $self->{'namespace'} = $val ; # Remove and add associations with other ends. $old->remove_ownedElement_AC($self) if $old; $val->add_ownedElement_AC($self) if $val; } $self; }
sub remove_namespace ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'namespace'}) eq $val ) { # Recursion lock $val = $self->{'namespace'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_ownedElement_AC($self) if $old; $val->add_ownedElement_AC($self) if $val; } }
sub clear_namespace ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'namespace'}) ) { # Recursion lock my $val = $self->{'namespace'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_ownedElement_AC($self) if $old; $val->add_ownedElement_AC($self) if $val; } $self; }
sub count_namespace ($) { my ($self) = @_; my $x = $self->{'namespace'}; defined $x ? 1 : 0; }
################################################################# # AssociationEnd namespace_AC <---> ownedElement # type = UMMF::UML_1_5::Foundation::Core::ModelElement # multiplicity = 1 # ordering =
sub ownedElement ($) { my ($self) = @_; $self->{'ownedElement'}; }
sub set_ownedElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'ownedElement'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::ElementOwnership.ownedElement") } # Recursion lock $self->{'ownedElement'} = $val ; # Remove and add associations with other ends. $old->remove_namespace_AC($self) if $old; $val->add_namespace_AC($self) if $val; } $self; }
sub add_ownedElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'ownedElement'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::ElementOwnership.ownedElement"); # confess("UMMF::UML_1_5::Foundation::Core::ElementOwnership::ownedElement: too many") # if defined $self->{'ownedElement'}; # Recursion lock $self->{'ownedElement'} = $val ; # Remove and add associations with other ends. $old->remove_namespace_AC($self) if $old; $val->add_namespace_AC($self) if $val; } $self; }
sub remove_ownedElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'ownedElement'}) eq $val ) { # Recursion lock $val = $self->{'ownedElement'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_namespace_AC($self) if $old; $val->add_namespace_AC($self) if $val; } }
sub clear_ownedElement ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'ownedElement'}) ) { # Recursion lock my $val = $self->{'ownedElement'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_namespace_AC($self) if $old; $val->add_namespace_AC($self) if $val; } $self; }
sub count_ownedElement ($) { my ($self) = @_; my $x = $self->{'ownedElement'}; defined $x ? 1 : 0; } # End of Class ElementOwnership
############################################################################ 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: ###