UMMF::UML_1_5::Foundation::Core::TemplateParameter - UMMF::UML_1_5::Foundation::Core::TemplateParameter documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::Foundation::Core::TemplateParameter --

VERSION

Top

1.5

SYNOPSIS

Top

DESCRIPTION

Top

USAGE

Top

EXPORT

Top

METATYPE

Top

UMMF::UML_1_5::Foundation::Core::AssociationClass

SUPERCLASSES

Top

UMMF::UML_1_5::Foundation::Core::Element

ATTRIBUTES

Top

NO ATTRIBUTES

ASSOCIATIONS

Top

templateParameter_defaultElement : THIS 0..* <---> defaultElement : UMMF::UML_1_5::Foundation::Core::ModelElement 0..1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Foundation::Core::ModelElement
multiplicity = 0..1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = public
container_type = Set::Object

templateParameter_AC : THIS 0..* <---> template : UMMF::UML_1_5::Foundation::Core::ModelElement 1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Foundation::Core::ModelElement
multiplicity = 1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = composite
visibility = public
container_type = Set::Object

template_AC : THIS 0..1 <---> templateParameter : UMMF::UML_1_5::Foundation::Core::ModelElement 1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Foundation::Core::ModelElement
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = ordered
isNavigable = 1
aggregation = none
visibility = public
container_type = ARRAY

METHODS

Top

__validate_type

  UMMF::UML_1_5::Foundation::Core::TemplateParameter->__validate_type($value);

Returns true if $value is a valid representation of UMMF::UML_1_5::Foundation::Core::TemplateParameter.

__typecheck

  UMMF::UML_1_5::Foundation::Core::TemplateParameter->__typecheck($value, $msg);

Calls confess() with $msg if <UMMF::UML_1_5::Foundation::Core::TemplateParameter-__validate_type($value)>> is false.

isaTemplateParameter

Returns true if receiver is a UMMF::UML_1_5::Foundation::Core::TemplateParameter. Other receivers will return false.

isaFoundation__Core__TemplateParameter

Returns true if receiver is a UMMF::UML_1_5::Foundation::Core::TemplateParameter. Other receivers will return false. This is the fully qualified version of the isaTemplateParameter method.

__model_name

  my $name = $obj_or_package->__model_name;

Returns the UML Model name ('Foundation::Core::TemplateParameter') for an object or package of this Classifier.

__isAbstract

  $package->__isAbstract;

Returns 0.

__tangram_schema

  my $tangram_schema $obj_or_package->__tangram_schema

Returns a HASH ref that describes this Classifier for Tangram.

See UMMF::Export::Perl::Tangram

___initialize

Initialize all Attributes and AssociationEnds in a instance of this Classifier. Does not initalize slots in its Generalizations.

See also: __initialize.

__initialize

Initialize all slots in this Classifier and all its Generalizations.

See also: ___initialize.

__create

Calls all <<create>> Methods for this Classifier and all Generalizations.

See also: ___create.

defaultElement

  my $val = $obj->defaultElement;

Returns the AssociationEnd defaultElement value of type UMMF::UML_1_5::Foundation::Core::ModelElement.

set_defaultElement

  $obj->set_defaultElement($val);

Sets the AssociationEnd defaultElement value. $val must of type UMMF::UML_1_5::Foundation::Core::ModelElement. Returns $obj.

add_defaultElement

  $obj->add_defaultElement($val);

Adds the AssociationEnd defaultElement value. $val must of type UMMF::UML_1_5::Foundation::Core::ModelElement. Throws exception if a value already exists. Returns $obj.

remove_defaultElement

  $obj->remove_defaultElement($val);

Removes the AssociationEnd defaultElement value $val. Returns $obj.

clear_defaultElement

  $obj->clear_defaultElement;

Clears the AssociationEnd defaultElement links to UMMF::UML_1_5::Foundation::Core::ModelElement. Returns $obj.

count_defaultElement

  $obj->count_defaultElement;

Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::ModelElement associated with defaultElement.

template

  my $val = $obj->template;

Returns the AssociationEnd template value of type UMMF::UML_1_5::Foundation::Core::ModelElement.

set_template

  $obj->set_template($val);

Sets the AssociationEnd template value. $val must of type UMMF::UML_1_5::Foundation::Core::ModelElement. Returns $obj.

add_template

  $obj->add_template($val);

Adds the AssociationEnd template value. $val must of type UMMF::UML_1_5::Foundation::Core::ModelElement. Throws exception if a value already exists. Returns $obj.

remove_template

  $obj->remove_template($val);

Removes the AssociationEnd template value $val. Returns $obj.

clear_template

  $obj->clear_template;

Clears the AssociationEnd template links to UMMF::UML_1_5::Foundation::Core::ModelElement. Returns $obj.

count_template

  $obj->count_template;

Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::ModelElement associated with template.

templateParameter

  my $val = $obj->templateParameter;

Returns the AssociationEnd templateParameter value of type UMMF::UML_1_5::Foundation::Core::ModelElement.

set_templateParameter

  $obj->set_templateParameter($val);

Sets the AssociationEnd templateParameter value. $val must of type UMMF::UML_1_5::Foundation::Core::ModelElement. Returns $obj.

add_templateParameter

  $obj->add_templateParameter($val);

Adds the AssociationEnd templateParameter value. $val must of type UMMF::UML_1_5::Foundation::Core::ModelElement. Throws exception if a value already exists. Returns $obj.

remove_templateParameter

  $obj->remove_templateParameter($val);

Removes the AssociationEnd templateParameter value $val. Returns $obj.

clear_templateParameter

  $obj->clear_templateParameter;

Clears the AssociationEnd templateParameter links to UMMF::UML_1_5::Foundation::Core::ModelElement. Returns $obj.

count_templateParameter

  $obj->count_templateParameter;

Returns the number of elements of type UMMF::UML_1_5::Foundation::Core::ModelElement associated with templateParameter.

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::TemplateParameter;

#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::TemplateParameter')  ;
}


sub __typecheck
{
  my ($self, $x, $msg) = @_;

  confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::Foundation::Core::TemplateParameter' . ": value '$x'")
    unless __validate_type($self, $x);
}


sub isaTemplateParameter { 1 }


sub isaFoundation__Core__TemplateParameter { 1 }


#################################################################
# Introspection
#

sub __model_name { 'Foundation::Core::TemplateParameter' }



sub __isAbstract { 0; }


my $__tangram_schema;
sub __tangram_schema
{
  my ($self) = @_;

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::Foundation::Core::TemplateParameter' =>
     {
       'table' => 'Foundation__Core__TemplateParameter',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 
	 # Associations
	 	 	       'defaultElement'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Foundation::Core::ModelElement',

                  'null' => '1', 

                                    'col' => 'defaultElement', 

                                                                                                                   }
      ,
                  	 	       'template'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Foundation::Core::ModelElement',

                                             'col' => 'template', 

                                                                                                                   }
      ,
                  	 	       'templateParameter'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Foundation::Core::ModelElement',

                                             'col' => 'templateParameter', 

                                                                                 'aggreg' => '1', 

                                           }
      ,
                         },
       '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 
  #  templateParameter_defaultElement 0..*
  #  <--> 
  #  defaultElement 0..1 UMMF::UML_1_5::Foundation::Core::ModelElement.
    if ( defined $self->{'defaultElement'} ) {
    my $x = $self->{'defaultElement'};
    $self->{'defaultElement'} = undef;
    $self->set_defaultElement($x);
  }
  
  # AssociationEnd 
  #  templateParameter_AC 0..*
  #  <--> 
  #  template 1 UMMF::UML_1_5::Foundation::Core::ModelElement.
    if ( defined $self->{'template'} ) {
    my $x = $self->{'template'};
    $self->{'template'} = undef;
    $self->set_template($x);
  }
  
  # AssociationEnd 
  #  template_AC 0..1
  #  <--> 
  #  templateParameter 1 UMMF::UML_1_5::Foundation::Core::ModelElement.
    if ( defined $self->{'templateParameter'} ) {
    my $x = $self->{'templateParameter'};
    $self->{'templateParameter'} = undef;
    $self->set_templateParameter($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::TemplateParameter::___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::TemplateParameter::___create(@args);
  $self->UMMF::UML_1_5::Foundation::Core::Element::___create();

  $self;
}




#################################################################
# Attributes
#




#################################################################
# Association
#


#################################################################
# AssociationEnd templateParameter_defaultElement <---> defaultElement
# type = UMMF::UML_1_5::Foundation::Core::ModelElement
# multiplicity = 0..1
# ordering = 

sub defaultElement ($)
{
  my ($self) = @_;
		  
  $self->{'defaultElement'};
}


sub set_defaultElement ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'defaultElement'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateParameter.defaultElement") }

    # Recursion lock
        $self->{'defaultElement'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_defaultElement($self) if $old;
    $val->add_templateParameter_defaultElement($self)    if $val;

    }
		  
  $self;
}


sub add_defaultElement ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'defaultElement'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateParameter.defaultElement");
      
    # confess("UMMF::UML_1_5::Foundation::Core::TemplateParameter::defaultElement: too many")
    # if defined $self->{'defaultElement'};

    # Recursion lock
        $self->{'defaultElement'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_defaultElement($self) if $old;
    $val->add_templateParameter_defaultElement($self)    if $val;

  
  }

  $self;
}


sub remove_defaultElement ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'defaultElement'}) eq $val ) { # Recursion lock
    $val = $self->{'defaultElement'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_defaultElement($self) if $old;
    $val->add_templateParameter_defaultElement($self)    if $val;

  
  }
}


sub clear_defaultElement ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'defaultElement'}) ) { # Recursion lock
    my $val = $self->{'defaultElement'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_defaultElement($self) if $old;
    $val->add_templateParameter_defaultElement($self)    if $val;

    }

  $self;
}


sub count_defaultElement ($)
{
  my ($self) = @_;

  my $x = $self->{'defaultElement'};

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd templateParameter_AC <---> template
# type = UMMF::UML_1_5::Foundation::Core::ModelElement
# multiplicity = 1
# ordering = 

sub template ($)
{
  my ($self) = @_;
		  
  $self->{'template'};
}


sub set_template ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'template'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateParameter.template") }

    # Recursion lock
        $self->{'template'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_AC($self) if $old;
    $val->add_templateParameter_AC($self)    if $val;

    }
		  
  $self;
}


sub add_template ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'template'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateParameter.template");
      
    # confess("UMMF::UML_1_5::Foundation::Core::TemplateParameter::template: too many")
    # if defined $self->{'template'};

    # Recursion lock
        $self->{'template'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_AC($self) if $old;
    $val->add_templateParameter_AC($self)    if $val;

  
  }

  $self;
}


sub remove_template ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'template'}) eq $val ) { # Recursion lock
    $val = $self->{'template'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_AC($self) if $old;
    $val->add_templateParameter_AC($self)    if $val;

  
  }
}


sub clear_template ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'template'}) ) { # Recursion lock
    my $val = $self->{'template'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_templateParameter_AC($self) if $old;
    $val->add_templateParameter_AC($self)    if $val;

    }

  $self;
}


sub count_template ($)
{
  my ($self) = @_;

  my $x = $self->{'template'};

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd template_AC <---> templateParameter
# type = UMMF::UML_1_5::Foundation::Core::ModelElement
# multiplicity = 1
# ordering = ordered

sub templateParameter ($)
{
  my ($self) = @_;
		  
  $self->{'templateParameter'};
}


sub set_templateParameter ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'templateParameter'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateParameter.templateParameter") }

    # Recursion lock
        $self->{'templateParameter'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_template_AC($self) if $old;
    $val->add_template_AC($self)    if $val;

    }
		  
  $self;
}


sub add_templateParameter ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'templateParameter'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::TemplateParameter.templateParameter");
      
    # confess("UMMF::UML_1_5::Foundation::Core::TemplateParameter::templateParameter: too many")
    # if defined $self->{'templateParameter'};

    # Recursion lock
        $self->{'templateParameter'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_template_AC($self) if $old;
    $val->add_template_AC($self)    if $val;

  
  }

  $self;
}


sub remove_templateParameter ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'templateParameter'}) eq $val ) { # Recursion lock
    $val = $self->{'templateParameter'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_template_AC($self) if $old;
    $val->add_template_AC($self)    if $val;

  
  }
}


sub clear_templateParameter ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'templateParameter'}) ) { # Recursion lock
    my $val = $self->{'templateParameter'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_template_AC($self) if $old;
    $val->add_template_AC($self)    if $val;

    }

  $self;
}


sub count_templateParameter ($)
{
  my ($self) = @_;

  my $x = $self->{'templateParameter'};

  defined $x ? 1 : 0;
}







# End of Class TemplateParameter


############################################################################

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: ###