UMMF::UML_1_5::Model_Management::ElementImport - UMMF::UML_1_5::Model_Management::ElementImport documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::Model_Management::ElementImport --

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

ATTRIBUTES

Top

visibility : UMMF::UML_1_5::Foundation::Data_Types::VisibilityKind

metatype = UMMF::UML_1_5::Foundation::Core::Attribute
type = UMMF::UML_1_5::Foundation::Data_Types::VisibilityKind
visibility = private
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = unordered
initialValue = <"public">
container_type = Set::Object

alias : UMMF::UML_1_5::Foundation::Data_Types::Name

metatype = UMMF::UML_1_5::Foundation::Core::Attribute
type = UMMF::UML_1_5::Foundation::Data_Types::Name
visibility = private
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = unordered
initialValue = UNSPECIFIED
container_type = Set::Object

isSpecification : UMMF::UML_1_5::Foundation::Data_Types::Boolean

metatype = UMMF::UML_1_5::Foundation::Core::Attribute
type = UMMF::UML_1_5::Foundation::Data_Types::Boolean
visibility = private
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = unordered
initialValue = <"false">
container_type = Set::Object

ASSOCIATIONS

Top

package_AC : THIS 0..* <---> importedElement : 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 = none
visibility = public
container_type = Set::Object

importedElement_AC : THIS 0..* <---> package : UMMF::UML_1_5::Model_Management::Package 1

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

METHODS

Top

__validate_type

  UMMF::UML_1_5::Model_Management::ElementImport->__validate_type($value);

Returns true if $value is a valid representation of UMMF::UML_1_5::Model_Management::ElementImport.

__typecheck

  UMMF::UML_1_5::Model_Management::ElementImport->__typecheck($value, $msg);

Calls confess() with $msg if <UMMF::UML_1_5::Model_Management::ElementImport-__validate_type($value)>> is false.

isaElementImport

Returns true if receiver is a UMMF::UML_1_5::Model_Management::ElementImport. Other receivers will return false.

isaModel_Management__ElementImport

Returns true if receiver is a UMMF::UML_1_5::Model_Management::ElementImport. Other receivers will return false. This is the fully qualified version of the isaElementImport method.

__model_name

  my $name = $obj_or_package->__model_name;

Returns the UML Model name ('Model_Management::ElementImport') 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.

visibility

  my $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.

alias

  my $val = $obj->alias;

Returns the UMMF::UML_1_5::Foundation::Data_Types::Name value of Attribute alias.

set_alias

  $obj->set_alias($val);

Sets the value of Attribute alias. $val must be of type UMMF::UML_1_5::Foundation::Data_Types::Name or undef. Returns $obj.

count_alias

  $obj->count_alias;

Returns the number of elements (0 or 1) in alias.

isSpecification

  my $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.

importedElement

  my $val = $obj->importedElement;

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

set_importedElement

  $obj->set_importedElement($val);

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

add_importedElement

  $obj->add_importedElement($val);

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

remove_importedElement

  $obj->remove_importedElement($val);

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

clear_importedElement

  $obj->clear_importedElement;

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

count_importedElement

  $obj->count_importedElement;

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

package

  my $val = $obj->package;

Returns the AssociationEnd package value of type UMMF::UML_1_5::Model_Management::Package.

set_package

  $obj->set_package($val);

Sets the AssociationEnd package value. $val must of type UMMF::UML_1_5::Model_Management::Package. Returns $obj.

add_package

  $obj->add_package($val);

Adds the AssociationEnd package value. $val must of type UMMF::UML_1_5::Model_Management::Package. Throws exception if a value already exists. Returns $obj.

remove_package

  $obj->remove_package($val);

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

clear_package

  $obj->clear_package;

Clears the AssociationEnd package links to UMMF::UML_1_5::Model_Management::Package. Returns $obj.

count_package

  $obj->count_package;

Returns the number of elements of type UMMF::UML_1_5::Model_Management::Package associated with package.

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::Model_Management::ElementImport;

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


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

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


sub isaElementImport { 1 }


sub isaModel_Management__ElementImport { 1 }


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

sub __model_name { 'Model_Management::ElementImport' }



sub __isAbstract { 0; }


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

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::Model_Management::ElementImport' =>
     {
       'table' => 'Model_Management__ElementImport',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 	       'visibility'
       => {
	 'type_impl' => 'string',
                                             'col' => 'visibility', 

                                                                                                                   }
      ,
         	       'alias'
       => {
	 'type_impl' => 'string',
                                             'col' => 'alias', 

                                                                                                                   }
      ,
         	       'isSpecification'
       => {
	 'type_impl' => 'string',
                                             'col' => 'isSpecification', 

                                                                                                                   }
      ,
         
	 # Associations
	 	 	       'importedElement'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Foundation::Core::ModelElement',

                                             'col' => 'importedElement', 

                                                                                                                   }
      ,
                  	 	       'package'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Model_Management::Package',

                                             'col' => 'package', 

                                                                                                                   }
      ,
                         },
       '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 alias
  if ( exists $self->{'alias'} ) {
    my $x = $self->{'alias'};
    $self->{'alias'} = undef;
        $self->set_alias($x);
      } else {
      }
  
    # Attribute isSpecification
  if ( exists $self->{'isSpecification'} ) {
    my $x = $self->{'isSpecification'};
    $self->{'isSpecification'} = undef;
        $self->set_isSpecification($x);
      } else {
        $self->{'isSpecification'} = "false";
      }
  


  # Associations

  # AssociationEnd 
  #  package_AC 0..*
  #  <--> 
  #  importedElement 1 UMMF::UML_1_5::Foundation::Core::ModelElement.
    if ( defined $self->{'importedElement'} ) {
    my $x = $self->{'importedElement'};
    $self->{'importedElement'} = undef;
    $self->set_importedElement($x);
  }
  
  # AssociationEnd 
  #  importedElement_AC 0..*
  #  <--> 
  #  package 1 UMMF::UML_1_5::Model_Management::Package.
    if ( defined $self->{'package'} ) {
    my $x = $self->{'package'};
    $self->{'package'} = undef;
    $self->set_package($x);
  }
  

  $self;
}


my $__initialize_use;

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

  # $DB::single = 1;

  unless ( ! $__initialize_use ) {
    $__initialize_use = 1;
  }

  $self->UMMF::UML_1_5::Model_Management::ElementImport::___initialize;

  $self;
}
      

sub __create
{
  my ($self, @args) = @_;

  # $DB::single = 1;
  $self->UMMF::UML_1_5::Model_Management::ElementImport::___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::Model_Management::ElementImport.visibility");
  }

    $self->{'visibility'} = $val
  ;

  ;

  $self;
}


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

  ;

  my $val = $self->{'visibility'};

  ;

  defined $val ? 1 : 0;
}



#################################################################
# Attribute alias
# type = UMMF::UML_1_5::Foundation::Data_Types::Name
# multiplicity = 1
# ordering = unordered
# ownerScope = instance
# initialValue = 

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

  ;

  my $val = $self->{'alias'};

  ;

  $val;
}


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

  ;

  if ( defined $val ) {
    ;
  }

    $self->{'alias'} = $val
  ;

  ;

  $self;
}


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

  ;

  my $val = $self->{'alias'};

  ;

  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 package_AC <---> importedElement
# type = UMMF::UML_1_5::Foundation::Core::ModelElement
# multiplicity = 1
# ordering = 

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


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

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

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd importedElement_AC <---> package
# type = UMMF::UML_1_5::Model_Management::Package
# multiplicity = 1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Model_Management::Package')->__typecheck($val, "UMMF::UML_1_5::Model_Management::ElementImport.package") }

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

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

    }
		  
  $self;
}


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

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

  my $old;
  if ( ($old = $self->{'package'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::Model_Management::Package')->__typecheck($val, "UMMF::UML_1_5::Model_Management::ElementImport.package");
      
    # confess("UMMF::UML_1_5::Model_Management::ElementImport::package: too many")
    # if defined $self->{'package'};

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}







# End of Class ElementImport


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

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