# -*- perl -*-
# DO NOT EDIT - This file is generated by UML2CODE.
# From template: $Id: PerlTemplate.txt,v 1.12 2003/05/11 06:16:02 stephens Exp $

package UML::MetaModel::Model_Management::Subsystem;

use 5.6.1;
use strict;
use warnings;

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

our $VERSION = do { my @r = (q$Revision: 1.12 $ =~ /\d+/g); sprintf "%d." . "%03d" x $#r, @r };

#################################################################
# Dependencies
#



use Carp qw(croak confess);

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

use base qw(
  UML::MetaModel::Foundation::Core::Classifier  UML::MetaModel::Model_Management::Package


);

#################################################################
# Exports
#

our @EXPORT_OK = qw(
);
our %EXPORT_TAGS = ( ':all' => \@EXPORT_OK );





#################################################################
# Validation
#


=head2 __validate_type

  UML::MetaModel::Model_Management::Subsystem->__validate_type($value);

Returns true if $value is a valid value of UML::MetaModel::Model_Management::Subsystem.

=cut
sub __validate_type($$)
{
  my ($self, $x) = @_;

  no warnings;

  UNIVERSAL::isa($x, 'UML::MetaModel::Model_Management::Subsystem')  ;
}


=head2 __typecheck

  UML::MetaModel::Model_Management::Subsystem->__typecheck($value, $msg);

Calls C<confess()> with C<$msg> if C<UML::MetaModel::Model_Management::Subsystem-E<GT>__validate_type($value)> is false.

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

  confess("typecheck: $msg: type 'UML::MetaModel::Model_Management::Subsystem': value '$x'")
    unless __validate_type($self, $x);
}


=head2 isaSubsystem

Returns true if receiver is a C<UML::MetaModel::Model_Management::Subsystem>.
Other receivers will return false.

=cut
sub isaSubsystem { 1 }


=head2 isaModel_Management__Subsystem

Returns true if receiver is a C<UML::MetaModel::Model_Management::Subsystem>.
Other receivers will return false.
This is the fully qualified version of the C<isaSubsystem> method.

=cut
sub isaModel_Management__Subsystem { 1 }


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

=head2 __model_name 

  my $name = $obj_or_package->__model_name;

Returns the UML Model name (C<'Model_Management::Subsystem'>) for an object or package of
this Classifier.

=cut
sub __model_name { 'Model_Management::Subsystem' }




  




#################################################################
# Class Attributes
#


      

#################################################################
# Initialization
#

 
=head2 __intialize

Initialize all slots in this Classifier.
Does not initlaize slots in Generalizations.

See also: C<_initialize>.

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

  # Attributes

    # Attribute isInstantiable
  if ( exists $self->{'isInstantiable'} ) {
    my $x = $self->{'isInstantiable'};
    $self->{'isInstantiable'} = undef;
    $self->set_isInstantiable($x);
  } else {
      }
  


  # Associations


  $self;
}


my $__initialize_use;

=head2 _intialize

Initialize all slots in this Classifier and all Generalizations.

See also: C<__initialize>.

=cut
sub _initialize
{
  my ($self) = @_;

  # $DB::single = 1;

  unless ( ! $__initialize_use ) {
    $__initialize_use = 1;
    $self->__use('UML::MetaModel::Foundation::Core::GeneralizableElement');
    $self->__use('UML::MetaModel::Foundation::Core::Classifier');
    $self->__use('UML::MetaModel::Foundation::Core::Element');
    $self->__use('UML::MetaModel::Foundation::Core::ModelElement');
    $self->__use('UML::MetaModel::Foundation::Core::Namespace');
    $self->__use('UML::MetaModel::Model_Management::Package');
  }

  $self->UML::MetaModel::Model_Management::Subsystem::__initialize;
  $self->UML::MetaModel::Foundation::Core::GeneralizableElement::__initialize;
  $self->UML::MetaModel::Foundation::Core::Classifier::__initialize;
  $self->UML::MetaModel::Foundation::Core::Element::__initialize;
  $self->UML::MetaModel::Foundation::Core::ModelElement::__initialize;
  $self->UML::MetaModel::Foundation::Core::Namespace::__initialize;
  $self->UML::MetaModel::Model_Management::Package::__initialize;

  $self;
}
      

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



#################################################################
# Attribute isInstantiable
# type = UML::MetaModel::Foundation::Data_Types::Boolean
# multiplicity = 1

=head2 isInstantiable

  my $val = $obj->isInstantiable;

Returns the value of Attribute isInstantiable.

=cut
sub isInstantiable ($)
{
  my ($self) = @_;

  $self->{'isInstantiable'};
}


=head2 set_isInstantiable

  $obj->set_isInstantiable($val);

Sets the value of Attribute isInstantiable.
C<$val> must be of type C<UML::MetaModel::Foundation::Data_Types::Boolean>.
Returns C<$obj>.

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

  $self->__use('UML::MetaModel::Foundation::Data_Types::Boolean')->__typecheck($val, "UML::MetaModel::Model_Management::Subsystem.isInstantiable");

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

  $self
}


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




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

1; # is true!

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

### Keep these comments at end of file: ks.perl@kurtstephens.com 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: ###

