Class: Namespace

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

Overview

UML:Namespace.ownedElement

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, parent) ⇒ 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:Enumeration attr_reader :Enumeration

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

# UML:SignalEvent attr_reader :SignalEvent

# 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



326
327
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
# File 'lib/xmimodel/namespace.rb', line 326

def initialize(xml, parent)
	@xml = xml
	@parent = parent

	@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			
end

Instance Attribute Details

#activity_graphsObject (readonly)

Returns the value of attribute activity_graphs.



14
15
16
# File 'lib/xmimodel/namespace.rb', line 14

def activity_graphs
  @activity_graphs
end

#associationsObject (readonly)

Array of ‘UML:Association’



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

def associations
  @associations
end

#attributesObject (readonly)

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



21
22
23
# File 'lib/xmimodel/namespace.rb', line 21

def attributes
  @attributes
end

#classesObject (readonly)

Array of ‘UML:Class’



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

def classes
  @classes
end

#data_typesObject (readonly)

Array of ‘UML:DataType’



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

def data_types
  @data_types
end

#packagesObject (readonly)

Array of ‘UML:Package’



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

def packages
  @packages
end

#parentObject (readonly)

Returns the value of attribute parent.



12
13
14
# File 'lib/xmimodel/namespace.rb', line 12

def parent
  @parent
end

#use_casesObject (readonly)

Array of ‘UML:UseCase’



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

def use_cases
  @use_cases
end

#xmlObject (readonly)

Returns the value of attribute xml.



11
12
13
# File 'lib/xmimodel/namespace.rb', line 11

def xml
  @xml
end