Class: Namespace

Inherits:
Tag
  • Object
show all
Defined in:
lib/xmimodel/namespace.rb

Overview

UML:Namespace.ownedElement

Instance Attribute Summary collapse

Attributes inherited from Tag

#id, #parent_tag, #xml

Instance Method Summary collapse

Methods inherited from Tag

#xml_root

Constructor Details

#initialize(xml, parent_tag) ⇒ Namespace

# UML:ModelElement attr_reader :model_element

# UML:GeneralizableElement attr_reader :generalizable_element

# UML:Classifier attr_reader :classifier

# UML:AssociationClass attr_reader :association_class

# UML:Primitive attr_reader :Primitive

# UML:ProgrammingLanguageDataType attr_reader :ProgrammingLanguageDataType

# UML:Interface attr_reader :Interface

# UML:Component attr_reader :Component

# UML:Node attr_reader :Node

# UML:Artifact attr_reader :Artifact

# UML:Signal attr_reader :Signal

# UML:Exception attr_reader :Exception

# UML:Actor attr_reader :Actor

# UML:ClassifierRole attr_reader :ClassifierRole

# UML:ClassifierInState attr_reader :ClassifierInState

# UML:Subsystem attr_reader :Subsystem

# UML:AssociationRole attr_reader :AssociationRole

# UML:Stereotype attr_reader :Stereotype

# UML:Collaboration attr_reader :Collaboration

# UML:Model attr_reader :Model

# UML:Namespace attr_reader :Namespace

# UML:Feature attr_reader :Feature

# UML:StructuralFeature attr_reader :StructuralFeature

# UML:BehavioralFeature attr_reader :BehavioralFeature

# UML:Operation attr_reader :Operation

# UML:Method attr_reader :Method

# UML:Reception attr_reader :Reception

# UML:AssociationEnd attr_reader :AssociationEnd

# UML:AssociationEndRole attr_reader :AssociationEndRole

# UML:Constraint attr_reader :Constraint

# UML:Relationship attr_reader :Relationship

# UML:Generalization attr_reader :Generalization

# UML:Dependency attr_reader :Dependency

# UML:Abstraction attr_reader :Abstraction

# UML:Usage attr_reader :Usage

# UML:Binding attr_reader :Binding

# UML:Permission attr_reader :Permission

# UML:Flow attr_reader :Flow

# UML:Extend attr_reader :Extend

# UML:Include attr_reader :Include

# UML:Parameter attr_reader :Parameter

# UML:Comment attr_reader :Comment

# UML:EnumerationLiteral attr_reader :EnumerationLiteral

# UML:TagDefinition attr_reader :TagDefinition

# UML:TaggedValue attr_reader :TaggedValue

# UML:Instance attr_reader :Instance

# UML:Object attr_reader :Object

# UML:LinkObject attr_reader :LinkObject

# UML:DataValue attr_reader :DataValue

# UML:ComponentInstance attr_reader :ComponentInstance

# UML:NodeInstance attr_reader :NodeInstance

# UML:SubsystemInstance attr_reader :SubsystemInstance

# UML:UseCaseInstance attr_reader :UseCaseInstance

# UML:Action attr_reader :Action

# UML:CreateAction attr_reader :CreateAction

# UML:DestroyAction attr_reader :DestroyAction

# UML:UninterpretedAction attr_reader :UninterpretedAction

# UML:CallAction attr_reader :CallAction

# UML:SendAction attr_reader :SendAction

# UML:ActionSequence attr_reader :ActionSequence

# UML:ReturnAction attr_reader :ReturnAction

# UML:TerminateAction attr_reader :TerminateAction

# UML:AttributeLink attr_reader :AttributeLink

# UML:Link attr_reader :Link

# UML:Argument attr_reader :Argument

# UML:LinkEnd attr_reader :LinkEnd

# UML:Stimulus attr_reader :Stimulus

# UML:ExtensionPoint attr_reader :ExtensionPoint

# UML:StateMachine attr_reader :StateMachine

# UML:ActivityGraph attr_reader :ActivityGraph

# UML:Event attr_reader :Event

# UML:TimeEvent attr_reader :TimeEvent

# UML:ChangeEvent attr_reader :ChangeEvent

# UML:StateVertex attr_reader :StateVertex

# UML:State attr_reader :State

# UML:CompositeState attr_reader :CompositeState

# UML:SubmachineState attr_reader :SubmachineState

# UML:SubactivityState attr_reader :SubactivityState

# UML:SimpleState attr_reader :SimpleState

# UML:ActionState attr_reader :ActionState

# UML:CallState attr_reader :CallState

# UML:ObjectFlowState attr_reader :ObjectFlowState

# UML:FinalState attr_reader :FinalState

# UML:Pseudostate attr_reader :Pseudostate

# UML:SynchState attr_reader :SynchState

# UML:StubState attr_reader :StubState

# UML:Transition attr_reader :Transition

# UML:Guard attr_reader :Guard

# UML:Message attr_reader :Message

# UML:Interaction attr_reader :Interaction

# UML:InteractionInstanceSet attr_reader :InteractionInstanceSet

# UML:CollaborationInstanceSet attr_reader :CollaborationInstanceSet

# UML:Partition attr_reader :Partition


328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'lib/xmimodel/namespace.rb', line 328

def initialize(xml, parent_tag)
	super(xml, parent_tag)

	@activity_graphs = Array.new
	XmiHelper.activity_graphs(xml).each do |obj|
		activity_graph = ActivityGraph.new(obj, self)
		@activity_graphs << activity_graph
	end		

	@associations = Array.new
	XmiHelper.associations(xml).each do |tag|
		obj = Association.new(tag, self)
		@associations << obj
	end		

	@attributes = Array.new
	XmiHelper.attributes(xml).each do |tag|
		obj = Attribute.new(tag, self)
		@attributes << obj
	end		

	@classes = Array.new
	XmiHelper.classes(xml).each do |tag|
		obj = Clazz.new(tag, self)
		@classes << obj
	end

	@data_types = Array.new
	XmiHelper.data_types(xml).each do |tag|
		obj = DataType.new(tag, self)
		@data_types << obj
	end

	@use_cases = Array.new
	XmiHelper.use_cases(xml).each do |tag|
		obj = UseCase.new(tag, self)
		@use_cases << obj
	end

	@packages = Array.new		
	XmiHelper.packages(xml).each do |tag|
		obj = Package.new(tag, self)
		@packages << obj
	end

	@enumerations = Array.new		
	XmiHelper.enumerations(xml).each do |tag|
		obj = Enumeration.new(tag, self)
		@enumerations << obj
	end

	@signal_events = Array.new
	XmiHelper.signal_events(xml).each do |tag|
		obj = SignalEvent.new(tag, self)
		@signal_events << obj
	end

	@call_events = Array.new
	XmiHelper.call_events(xml).each do |uml_call_event|
		call_event = CallEvent.new(uml_call_event, self)
		@call_events << call_event
	end	
end

Instance Attribute Details

#activity_graphsObject (readonly)

Returns the value of attribute activity_graphs


16
17
18
# File 'lib/xmimodel/namespace.rb', line 16

def activity_graphs
  @activity_graphs
end

#associationsObject (readonly)

Array of 'UML:Association'


19
20
21
# File 'lib/xmimodel/namespace.rb', line 19

def associations
  @associations
end

#attributesObject (readonly)

Array of 'UML:Attribute' UML:Attribute is also present in the tag 'UML:Classifier.feature'


23
24
25
# File 'lib/xmimodel/namespace.rb', line 23

def attributes
  @attributes
end

#call_eventsObject (readonly)

Array of 'UML:CallEvent'


26
27
28
# File 'lib/xmimodel/namespace.rb', line 26

def call_events
  @call_events
end

#classesObject (readonly)

Array of 'UML:Class'


29
30
31
# File 'lib/xmimodel/namespace.rb', line 29

def classes
  @classes
end

#data_typesObject (readonly)

Array of 'UML:DataType'


32
33
34
# File 'lib/xmimodel/namespace.rb', line 32

def data_types
  @data_types
end

#enumerationsObject (readonly)

Array of 'UML:Enumeration'


41
42
43
# File 'lib/xmimodel/namespace.rb', line 41

def enumerations
  @enumerations
end

#packagesObject (readonly)

Array of 'UML:Package'


38
39
40
# File 'lib/xmimodel/namespace.rb', line 38

def packages
  @packages
end

#signal_eventsObject (readonly)

Array of 'UML:SignalEvent'


44
45
46
# File 'lib/xmimodel/namespace.rb', line 44

def signal_events
  @signal_events
end

#use_casesObject (readonly)

Array of 'UML:UseCase'


35
36
37
# File 'lib/xmimodel/namespace.rb', line 35

def use_cases
  @use_cases
end

Instance Method Details

#to_sObject


392
393
394
# File 'lib/xmimodel/namespace.rb', line 392

def to_s
	"Namespace"
end