de.uni_paderborn.fujaba.codegen
Class CodeGenFactory

java.lang.Object
  extended byde.uni_paderborn.fujaba.codegen.CodeGenFactory

public class CodeGenFactory
extends java.lang.Object

Class CodeGenFactory (Singleton)

Associations

                -------- 0..1       hasStrategies       0..1
 CodeGenFactory | name |------------------------------------- CodeGenStrategy
                -------- codeGenFactory      codeGenStrategy

                 0..1                        0..1
 CodeGenFactory ---------------------------------- CodeGenStrategy
                 currentFactory   currentStrategy

                -------- 0..1          Assoc          0..1
 CodeGenFactory | name |----------------------------------- CodeGenTarget
                -------- codeGenFactory      codeGenTarget
 

Version:
$Revision: 1.40.2.6 $
Author:
$Author: lowende $

Field Summary
static CodeGenFactory theInstance
          the Singleton instance
 
Method Summary
 boolean addToCodeGenStrategy(CodeGenStrategy value)
           
 boolean addToCodeGenTarget(CodeGenTarget value)
          Access method for an one to n association.
 java.util.Iterator entriesOfCodeGenStrategy()
           
 java.util.Iterator entriesOfCodeGenTarget()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.StringBuffer generateFElement(FElement element)
          Generates sourcecode for a given FElement without storing it in a file.
 java.lang.StringBuffer generateFElement(FElement element, boolean save)
          Generates sourcecode for a given FElement with the possibility of saving it to a file.
 void generateFProject()
          No comment provided by developer, please add a comment to improve documentation.
 void generateFProject(FProject theProject)
          No comment provided by developer, please add a comment to improve documentation.
static CodeGenFactory get()
          The access method for the singleton instance.
 FProject getCurrentFProject()
          Get the value of currentFProject.
 OOGenVisitor getCurrentOOVisitor()
          Get the currentOOVisitor attribute of the CodeGenFactory object
 CodeGenStrategy getCurrentStrategy()
           
 CodeGenTarget getCurrentTarget()
          Get the currentTarget attribute of the CodeGenFactory object
 CodeGenVisitor getCurrentVisitor()
           
 CodeGenStrategy getFromCodeGenStrategy(java.lang.String key)
           
 CodeGenTarget getFromCodeGenTarget(java.lang.String key)
          Get the fromCodeGenTarget attribute of the CodeGenFactory object
 boolean hasInCodeGenStrategy(CodeGenStrategy value)
           
 boolean hasInCodeGenTarget(CodeGenTarget value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasKeyInCodeGenStrategy(java.lang.String key)
           
 boolean hasKeyInCodeGenTarget(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfCodeGenStrategy()
           
 java.util.Iterator iteratorOfCodeGenTarget()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator keysOfCodeGenStrategy()
           
 java.util.Iterator keysOfCodeGenTarget()
          No comment provided by developer, please add a comment to improve documentation.
 void parseTargetFile(java.lang.String targetFileName)
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromCodeGenStrategy()
           
 void removeAllFromCodeGenTarget()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromCodeGenStrategy(CodeGenStrategy value)
           
 boolean removeFromCodeGenTarget(CodeGenTarget value)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeKeyFromCodeGenStrategy(java.lang.String key)
           
 boolean removeKeyFromCodeGenTarget(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 void setCurrentFProject(FProject currentFProject)
          Set the value of currentFProject.
 boolean setCurrentStrategy(CodeGenStrategy value)
           
 void setCurrentTarget(java.lang.String name)
          Sets the currentTarget attribute of the CodeGenFactory object
 int sizeOfCodeGenStrategy()
           
 int sizeOfCodeGenTarget()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theInstance

public static CodeGenFactory theInstance
the Singleton instance

Method Detail

get

public static CodeGenFactory get()
The access method for the singleton instance.

Returns:
No description provided

parseTargetFile

public void parseTargetFile(java.lang.String targetFileName)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
targetFileName - No description provided

setCurrentTarget

public void setCurrentTarget(java.lang.String name)
Sets the currentTarget attribute of the CodeGenFactory object

Parameters:
name - The new currentTarget value

getCurrentTarget

public CodeGenTarget getCurrentTarget()
Get the currentTarget attribute of the CodeGenFactory object

Returns:
The currentTarget value

generateFElement

public final java.lang.StringBuffer generateFElement(FElement element)
Generates sourcecode for a given FElement without storing it in a file.

Parameters:
element - The model element for which source code will be generated.
Returns:
the generated sourcecode

generateFElement

public final java.lang.StringBuffer generateFElement(FElement element,
                                                     boolean save)
Generates sourcecode for a given FElement with the possibility of saving it to a file.

Parameters:
element - The model element for which source code will be generated.
save - Defines whether the generated sourcecode has to be saved or not.
Returns:
the generated sourcecode

generateFProject

public void generateFProject()
No comment provided by developer, please add a comment to improve documentation.


generateFProject

public void generateFProject(FProject theProject)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
theProject - No description provided

getCurrentFProject

public FProject getCurrentFProject()
Get the value of currentFProject.

Returns:
Value of currentFProject.

setCurrentFProject

public void setCurrentFProject(FProject currentFProject)
Set the value of currentFProject.

Parameters:
currentFProject - Value to assign to currentFProject.

setCurrentStrategy

public boolean setCurrentStrategy(CodeGenStrategy value)
Parameters:
value - The new currentStrategy value
Returns:
No description provided
See Also:
#currentStrategy

getCurrentStrategy

public CodeGenStrategy getCurrentStrategy()
Returns:
The currentStrategy value
See Also:
#currentStrategy

getCurrentVisitor

public CodeGenVisitor getCurrentVisitor()
Returns:
The currentVisitor value
See Also:
#currentStrategy, CodeGenStrategy.getCurrentVisitor()

getCurrentOOVisitor

public OOGenVisitor getCurrentOOVisitor()
Get the currentOOVisitor attribute of the CodeGenFactory object

Returns:
The currentOOVisitor value

hasInCodeGenStrategy

public boolean hasInCodeGenStrategy(CodeGenStrategy value)
Parameters:
value - No description provided
Returns:
No description provided
See Also:
#codeGenStrategy

hasKeyInCodeGenStrategy

public boolean hasKeyInCodeGenStrategy(java.lang.String key)
Parameters:
key - No description provided
Returns:
No description provided
See Also:
#codeGenStrategy

iteratorOfCodeGenStrategy

public java.util.Iterator iteratorOfCodeGenStrategy()
Returns:
No description provided
See Also:
#codeGenStrategy

keysOfCodeGenStrategy

public java.util.Iterator keysOfCodeGenStrategy()
Returns:
No description provided
See Also:
#codeGenStrategy

entriesOfCodeGenStrategy

public java.util.Iterator entriesOfCodeGenStrategy()
Returns:
No description provided
See Also:
#codeGenStrategy

sizeOfCodeGenStrategy

public int sizeOfCodeGenStrategy()
Returns:
No description provided
See Also:
#codeGenStrategy

getFromCodeGenStrategy

public CodeGenStrategy getFromCodeGenStrategy(java.lang.String key)
Parameters:
key - No description provided
Returns:
The fromCodeGenStrategy value
See Also:
#codeGenStrategy

addToCodeGenStrategy

public boolean addToCodeGenStrategy(CodeGenStrategy value)
Parameters:
value - The object added.
Returns:
No description provided
See Also:
#codeGenStrategy

removeFromCodeGenStrategy

public boolean removeFromCodeGenStrategy(CodeGenStrategy value)
Parameters:
value - No description provided
Returns:
No description provided
See Also:
#codeGenStrategy

removeKeyFromCodeGenStrategy

public boolean removeKeyFromCodeGenStrategy(java.lang.String key)
Parameters:
key - No description provided
Returns:
No description provided
See Also:
#codeGenStrategy

removeAllFromCodeGenStrategy

public void removeAllFromCodeGenStrategy()
See Also:
#codeGenStrategy

hasInCodeGenTarget

public boolean hasInCodeGenTarget(CodeGenTarget value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

hasKeyInCodeGenTarget

public boolean hasKeyInCodeGenTarget(java.lang.String key)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
key - No description provided
Returns:
No description provided

iteratorOfCodeGenTarget

public java.util.Iterator iteratorOfCodeGenTarget()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

keysOfCodeGenTarget

public java.util.Iterator keysOfCodeGenTarget()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

entriesOfCodeGenTarget

public java.util.Iterator entriesOfCodeGenTarget()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

sizeOfCodeGenTarget

public int sizeOfCodeGenTarget()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

getFromCodeGenTarget

public CodeGenTarget getFromCodeGenTarget(java.lang.String key)
Get the fromCodeGenTarget attribute of the CodeGenFactory object

Parameters:
key - No description provided
Returns:
The fromCodeGenTarget value

addToCodeGenTarget

public boolean addToCodeGenTarget(CodeGenTarget value)
Access method for an one to n association.

Parameters:
value - The object added.
Returns:
No description provided

removeFromCodeGenTarget

public boolean removeFromCodeGenTarget(CodeGenTarget value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

removeKeyFromCodeGenTarget

public boolean removeKeyFromCodeGenTarget(java.lang.String key)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
key - No description provided
Returns:
No description provided

removeAllFromCodeGenTarget

public void removeAllFromCodeGenTarget()
No comment provided by developer, please add a comment to improve documentation.


removeYou

public void removeYou()
No comment provided by developer, please add a comment to improve documentation.


toString

public java.lang.String toString()
Returns:
short string representation of current object