| UMMF documentation | Contained in the UMMF distribution. |
__validate_type__typecheckisaConstraintisaFoundation__Core__Constraint__model_name __isAbstract__tangram_schema___initialize__initialize__createbodyset_bodycount_bodyconstrainedElementset_constrainedElementadd_constrainedElementremove_constrainedElementclear_constrainedElementcount_constrainedElementconstrainedStereotypeset_constrainedStereotypeadd_constrainedStereotyperemove_constrainedStereotypeclear_constrainedStereotypecount_constrainedStereotype
UMMF::UML_1_5::Foundation::Core::Constraint --
1.5
body : UMMF::UML_1_5::Foundation::Data_Types::BooleanExpression private1changeableinstanceunorderedSet::Objectconstraint : THIS 0..* <---> constrainedElement : UMMF::UML_1_5::Foundation::Core::ModelElement 0..10..1changeableinstancenonepublicSet::ObjectstereotypeConstraint : THIS 0..* <---> constrainedStereotype : UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype 0..10..1changeableinstancenonepublicSet::Object__validate_typeUMMF::UML_1_5::Foundation::Core::Constraint->__validate_type($value);
Returns true if $value is a valid representation of UMMF::UML_1_5::Foundation::Core::Constraint.
__typecheckUMMF::UML_1_5::Foundation::Core::Constraint->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::UML_1_5::Foundation::Core::Constraint-__validate_type($value)>> is false.
isaConstraintReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::Constraint. Other receivers will return false.
isaFoundation__Core__ConstraintReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::Constraint.
Other receivers will return false.
This is the fully qualified version of the isaConstraint method.
__model_name my $name = $obj_or_package->__model_name;
Returns the UML Model name ('Foundation::Core::Constraint') 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.
bodymy $val = $obj->body;
Returns the UMMF::UML_1_5::Foundation::Data_Types::BooleanExpression value of Attribute body.
set_body$obj->set_body($val);
Sets the value of Attribute body.
$val must be of type UMMF::UML_1_5::Foundation::Data_Types::BooleanExpression or undef.
Returns $obj.
count_body$obj->count_body;
Returns the number of elements (0 or 1) in body.
constrainedElementmy $val = $obj->constrainedElement;
Returns the AssociationEnd constrainedElement value of type UMMF::UML_1_5::Foundation::Core::ModelElement.
set_constrainedElement$obj->set_constrainedElement($val);
Sets the AssociationEnd constrainedElement value.
$val must of type UMMF::UML_1_5::Foundation::Core::ModelElement.
Returns $obj.
add_constrainedElement$obj->add_constrainedElement($val);
Adds the AssociationEnd constrainedElement value.
$val must of type UMMF::UML_1_5::Foundation::Core::ModelElement.
Throws exception if a value already exists.
Returns $obj.
remove_constrainedElement$obj->remove_constrainedElement($val);
Removes the AssociationEnd constrainedElement value $val.
Returns $obj.
clear_constrainedElement$obj->clear_constrainedElement;
Clears the AssociationEnd constrainedElement links to UMMF::UML_1_5::Foundation::Core::ModelElement.
Returns $obj.
count_constrainedElement$obj->count_constrainedElement;
Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::ModelElement associated with constrainedElement.
constrainedStereotypemy $val = $obj->constrainedStereotype;
Returns the AssociationEnd constrainedStereotype value of type UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype.
set_constrainedStereotype$obj->set_constrainedStereotype($val);
Sets the AssociationEnd constrainedStereotype value.
$val must of type UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype.
Returns $obj.
add_constrainedStereotype$obj->add_constrainedStereotype($val);
Adds the AssociationEnd constrainedStereotype value.
$val must of type UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype.
Throws exception if a value already exists.
Returns $obj.
remove_constrainedStereotype$obj->remove_constrainedStereotype($val);
Removes the AssociationEnd constrainedStereotype value $val.
Returns $obj.
clear_constrainedStereotype$obj->clear_constrainedStereotype;
Clears the AssociationEnd constrainedStereotype links to UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype.
Returns $obj.
count_constrainedStereotype$obj->count_constrainedStereotype;
Returns the number of elements of type UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype associated with constrainedStereotype.
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::Constraint; #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::Foundation::Core::Constraint') ; }
sub __typecheck { my ($self, $x, $msg) = @_; confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::Foundation::Core::Constraint' . ": value '$x'") unless __validate_type($self, $x); }
sub isaConstraint { 1 }
sub isaFoundation__Core__Constraint { 1 } ################################################################# # Introspection #
sub __model_name { 'Foundation::Core::Constraint' }
sub __isAbstract { 0; } my $__tangram_schema;
sub __tangram_schema { my ($self) = @_; $__tangram_schema ||= { 'classes' => [ 'UMMF::UML_1_5::Foundation::Core::Constraint' => { 'table' => 'Foundation__Core__Constraint', 'abstract' => 0, 'slots' => { # Attributes 'body' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Data_Types::BooleanExpression', 'col' => 'body', } , # Associations 'constrainedElement' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Core::ModelElement', 'null' => '1', 'col' => 'constrainedElement', } , 'constrainedStereotype' => { 'type_impl' => 'ref', 'class' => 'UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype', 'null' => '1', 'col' => 'constrainedStereotype', } , }, '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 body if ( exists $self->{'body'} ) { my $x = $self->{'body'}; $self->{'body'} = undef; $self->set_body($x); } else { } # Associations # AssociationEnd # constraint 0..* # <--> # constrainedElement 0..1 UMMF::UML_1_5::Foundation::Core::ModelElement. if ( defined $self->{'constrainedElement'} ) { my $x = $self->{'constrainedElement'}; $self->{'constrainedElement'} = undef; $self->set_constrainedElement($x); } # AssociationEnd # stereotypeConstraint 0..* # <--> # constrainedStereotype 0..1 UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype. if ( defined $self->{'constrainedStereotype'} ) { my $x = $self->{'constrainedStereotype'}; $self->{'constrainedStereotype'} = undef; $self->set_constrainedStereotype($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::Foundation::Core::Constraint::___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::Foundation::Core::Constraint::___create(@args); $self->UMMF::UML_1_5::Foundation::Core::Element::___create(); $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___create(); $self; } ################################################################# # Attributes #
################################################################# # Attribute body # type = UMMF::UML_1_5::Foundation::Data_Types::BooleanExpression # multiplicity = 1 # ordering = unordered # ownerScope = instance # initialValue =
sub body ($) { my ($self) = @_; ; my $val = $self->{'body'}; ; $val; }
sub set_body ($$) { my ($self, $val) = @_; ; if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Data_Types::BooleanExpression')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::Constraint.body"); } $self->{'body'} = $val ; ; $self; }
sub count_body ($) { my ($self) = @_; ; my $val = $self->{'body'}; ; defined $val ? 1 : 0; } ################################################################# # Association #
################################################################# # AssociationEnd constraint <---> constrainedElement # type = UMMF::UML_1_5::Foundation::Core::ModelElement # multiplicity = 0..1 # ordering =
sub constrainedElement ($) { my ($self) = @_; $self->{'constrainedElement'}; }
sub set_constrainedElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'constrainedElement'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::Constraint.constrainedElement") } # Recursion lock $self->{'constrainedElement'} = $val ; # Remove and add associations with other ends. $old->remove_constraint($self) if $old; $val->add_constraint($self) if $val; } $self; }
sub add_constrainedElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'constrainedElement'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::Constraint.constrainedElement"); # confess("UMMF::UML_1_5::Foundation::Core::Constraint::constrainedElement: too many") # if defined $self->{'constrainedElement'}; # Recursion lock $self->{'constrainedElement'} = $val ; # Remove and add associations with other ends. $old->remove_constraint($self) if $old; $val->add_constraint($self) if $val; } $self; }
sub remove_constrainedElement ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'constrainedElement'}) eq $val ) { # Recursion lock $val = $self->{'constrainedElement'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_constraint($self) if $old; $val->add_constraint($self) if $val; } }
sub clear_constrainedElement ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'constrainedElement'}) ) { # Recursion lock my $val = $self->{'constrainedElement'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_constraint($self) if $old; $val->add_constraint($self) if $val; } $self; }
sub count_constrainedElement ($) { my ($self) = @_; my $x = $self->{'constrainedElement'}; defined $x ? 1 : 0; }
################################################################# # AssociationEnd stereotypeConstraint <---> constrainedStereotype # type = UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype # multiplicity = 0..1 # ordering =
sub constrainedStereotype ($) { my ($self) = @_; $self->{'constrainedStereotype'}; }
sub set_constrainedStereotype ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'constrainedStereotype'}) ne $val ) { # Recursion lock if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::Constraint.constrainedStereotype") } # Recursion lock $self->{'constrainedStereotype'} = $val ; # Remove and add associations with other ends. $old->remove_stereotypeConstraint($self) if $old; $val->add_stereotypeConstraint($self) if $val; } $self; }
sub add_constrainedStereotype ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'constrainedStereotype'}) ne $val ) { # Recursion lock $self->__use('UMMF::UML_1_5::Foundation::Extension_Mechanisms::Stereotype')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::Constraint.constrainedStereotype"); # confess("UMMF::UML_1_5::Foundation::Core::Constraint::constrainedStereotype: too many") # if defined $self->{'constrainedStereotype'}; # Recursion lock $self->{'constrainedStereotype'} = $val ; # Remove and add associations with other ends. $old->remove_stereotypeConstraint($self) if $old; $val->add_stereotypeConstraint($self) if $val; } $self; }
sub remove_constrainedStereotype ($$) { my ($self, $val) = @_; no warnings; # Use of uninitialized value in string ne at ... my $old; if ( ($old = $self->{'constrainedStereotype'}) eq $val ) { # Recursion lock $val = $self->{'constrainedStereotype'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_stereotypeConstraint($self) if $old; $val->add_stereotypeConstraint($self) if $val; } }
sub clear_constrainedStereotype ($@) { my ($self) = @_; my $old; if ( defined ($old = $self->{'constrainedStereotype'}) ) { # Recursion lock my $val = $self->{'constrainedStereotype'} = undef; # Recursion lock # Remove and add associations with other ends. $old->remove_stereotypeConstraint($self) if $old; $val->add_stereotypeConstraint($self) if $val; } $self; }
sub count_constrainedStereotype ($) { my ($self) = @_; my $x = $self->{'constrainedStereotype'}; defined $x ? 1 : 0; } # End of Class Constraint
############################################################################ 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: ###