UMMF::MOF_1_3::Model::Import - UMMF::MOF_1_3::Model::Import documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::MOF_1_3::Model::Import --

VERSION

Top

1.3

SYNOPSIS

Top

DESCRIPTION

Top

USAGE

Top

EXPORT

Top

METATYPE

Top

UMMF::UML_1_5::Foundation::Core::Class

SUPERCLASSES

Top

UMMF::MOF_1_3::Model::ModelElement

ATTRIBUTES

Top

visibility : UMMF::MOF_1_3::Model::VisibilityKind

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

isClustered : UMMF::MOF_1_3::Model::Boolean

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

ASSOCIATIONS

Top

importer : THIS 0..* <---> imported : UMMF::MOF_1_3::Model::Namespace 1

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

METHODS

Top

__validate_type

  UMMF::MOF_1_3::Model::Import->__validate_type($value);

Returns true if $value is a valid representation of UMMF::MOF_1_3::Model::Import.

__typecheck

  UMMF::MOF_1_3::Model::Import->__typecheck($value, $msg);

Calls confess() with $msg if <UMMF::MOF_1_3::Model::Import-__validate_type($value)>> is false.

isaImport

Returns true if receiver is a UMMF::MOF_1_3::Model::Import. Other receivers will return false.

isaModel__Import

Returns true if receiver is a UMMF::MOF_1_3::Model::Import. Other receivers will return false. This is the fully qualified version of the isaImport method.

__model_name

  my $name = $obj_or_package->__model_name;

Returns the UML Model name ('Model::Import') 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::MOF_1_3::Model::VisibilityKind value of Attribute visibility.

set_visibility

  $obj->set_visibility($val);

Sets the value of Attribute visibility. $val must be of type UMMF::MOF_1_3::Model::VisibilityKind or undef. Returns $obj.

count_visibility

  $obj->count_visibility;

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

isClustered

  my $val = $obj->isClustered;

Returns the UMMF::MOF_1_3::Model::Boolean value of Attribute isClustered.

set_isClustered

  $obj->set_isClustered($val);

Sets the value of Attribute isClustered. $val must be of type UMMF::MOF_1_3::Model::Boolean or undef. Returns $obj.

count_isClustered

  $obj->count_isClustered;

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

imported

  my $val = $obj->imported;

Returns the AssociationEnd imported value of type UMMF::MOF_1_3::Model::Namespace.

set_imported

  $obj->set_imported($val);

Sets the AssociationEnd imported value. $val must of type UMMF::MOF_1_3::Model::Namespace. Returns $obj.

add_imported

  $obj->add_imported($val);

Adds the AssociationEnd imported value. $val must of type UMMF::MOF_1_3::Model::Namespace. Throws exception if a value already exists. Returns $obj.

remove_imported

  $obj->remove_imported($val);

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

clear_imported

  $obj->clear_imported;

Clears the AssociationEnd imported links to UMMF::MOF_1_3::Model::Namespace. Returns $obj.

count_imported

  $obj->count_imported;

Returns the number of elements of type UMMF::MOF_1_3::Model::Namespace associated with imported.

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::MOF_1_3::Model::Import;

#use 5.6.1;
use strict;
use warnings;

#################################################################
# Version
#

our $VERSION = do { my @r = (q{1.3} =~ /\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::MOF_1_3::__ObjectBase qw(:__ummf_array);


#################################################################
# Generalizations
#

use base qw(
  UMMF::MOF_1_3::Model::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::MOF_1_3::Model::Import')  ;
}


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

  confess("typecheck: $msg: type '" . 'UMMF::MOF_1_3::Model::Import' . ": value '$x'")
    unless __validate_type($self, $x);
}


sub isaImport { 1 }


sub isaModel__Import { 1 }


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

sub __model_name { 'Model::Import' }



sub __isAbstract { 0; }


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

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::MOF_1_3::Model::Import' =>
     {
       'table' => 'Model__Import',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 	       'visibility'
       => {
	 'type_impl' => 'string',
                                             'col' => 'visibility', 

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

                                                                                                                   }
      ,
         
	 # Associations
	 	 	       'imported'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::MOF_1_3::Model::Namespace',

                                             'col' => 'imported', 

                                                                                                                   }
      ,
                         },
       'bases' => [  'UMMF::MOF_1_3::Model::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 visibility
  if ( exists $self->{'visibility'} ) {
    my $x = $self->{'visibility'};
    $self->{'visibility'} = undef;
        $self->set_visibility($x);
      } else {
      }
  
    # Attribute isClustered
  if ( exists $self->{'isClustered'} ) {
    my $x = $self->{'isClustered'};
    $self->{'isClustered'} = undef;
        $self->set_isClustered($x);
      } else {
      }
  


  # Associations

  # AssociationEnd 
  #  importer 0..*
  #  <--> 
  #  imported 1 UMMF::MOF_1_3::Model::Namespace.
    if ( defined $self->{'imported'} ) {
    my $x = $self->{'imported'};
    $self->{'imported'} = undef;
    $self->set_imported($x);
  }
  

  $self;
}


my $__initialize_use;

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

  # $DB::single = 1;

  unless ( ! $__initialize_use ) {
    $__initialize_use = 1;
    $self->__use('UMMF::MOF_1_3::Model::ModelElement');
  }

  $self->UMMF::MOF_1_3::Model::Import::___initialize;
  $self->UMMF::MOF_1_3::Model::ModelElement::___initialize;

  $self;
}
      

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

  # $DB::single = 1;
  $self->UMMF::MOF_1_3::Model::Import::___create(@args);
  $self->UMMF::MOF_1_3::Model::ModelElement::___create();

  $self;
}




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



#################################################################
# Attribute visibility
# type = UMMF::MOF_1_3::Model::VisibilityKind
# multiplicity = 1
# ordering = unordered
# ownerScope = instance
# initialValue = 

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

  ;

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

  ;

  $val;
}


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

  ;

  if ( defined $val ) {
    $self->__use('UMMF::MOF_1_3::Model::VisibilityKind')->__typecheck($val, "UMMF::MOF_1_3::Model::Import.visibility");
  }

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

  ;

  $self;
}


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

  ;

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

  ;

  defined $val ? 1 : 0;
}



#################################################################
# Attribute isClustered
# type = UMMF::MOF_1_3::Model::Boolean
# multiplicity = 1
# ordering = unordered
# ownerScope = instance
# initialValue = 

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

  ;

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

  ;

  $val;
}


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

  ;

  if ( defined $val ) {
    ;
  }

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

  ;

  $self;
}


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

  ;

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

  ;

  defined $val ? 1 : 0;
}




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


#################################################################
# AssociationEnd importer <---> imported
# type = UMMF::MOF_1_3::Model::Namespace
# multiplicity = 1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::MOF_1_3::Model::Namespace')->__typecheck($val, "UMMF::MOF_1_3::Model::Import.imported") }

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

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

    }
		  
  $self;
}


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

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

  my $old;
  if ( ($old = $self->{'imported'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::MOF_1_3::Model::Namespace')->__typecheck($val, "UMMF::MOF_1_3::Model::Import.imported");
      
    # confess("UMMF::MOF_1_3::Model::Import::imported: too many")
    # if defined $self->{'imported'};

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}







# End of Class Import


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

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