Class: Lutaml::SysMl::Block

Inherits:
Uml::Class show all
Defined in:
lib/lutaml/sysml/block.rb

Direct Known Subclasses

ConstraintBlock

Instance Attribute Summary collapse

Attributes inherited from Uml::Class

#associations, #attributes, #constraints, #data_types, #is_abstract, #members, #modifier, #nested_classifier, #operations, #package, #type

Attributes inherited from Uml::Classifier

#generalization

Attributes inherited from Uml::TopElement

#comments, #definition, #href, #keyword, #namespace, #stereotype, #visibility, #xmi_id, #xmi_uuid

Instance Method Summary collapse

Methods inherited from Uml::Class

#methods, #relationships

Methods included from Uml::HasMembers

#members=

Methods included from Uml::HasAttributes

#update_attributes

Constructor Details

#initializeBlock

Returns a new instance of Block.



5
6
7
8
9
10
# File 'lib/lutaml/sysml/block.rb', line 5

def initialize
	@xmi_id = nil
	@nested_classifier = []
	@stereotype = []
	@namespace = nil
end

Instance Attribute Details

#base_classObject

Returns the value of attribute base_class.



4
5
6
# File 'lib/lutaml/sysml/block.rb', line 4

def base_class
  @base_class
end

Instance Method Details

#full_nameObject



19
20
21
22
23
24
# File 'lib/lutaml/sysml/block.rb', line 19

def full_name
	if base_class != nil and base_class.name != nil
			return base_class.full_name
	end
	return nil
end

#nameObject



12
13
14
15
16
17
# File 'lib/lutaml/sysml/block.rb', line 12

def name
	if base_class != nil and base_class.name != nil
			return base_class.name
	end
	return nil
end