de.uni_paderborn.fujaba.basic
Class TemplateCodeBlock

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.TemplateCodeBlock

public class TemplateCodeBlock
extends java.lang.Object

Associations

              +----------+ 1      blocks       1
 TemplateFile | name     +----------------------- TemplateCodeBlock
              +----------+ template   codeBlocks

                    1       tokens {ordered}  n
 TemplateCodeBlock ----------------------------- TemplateToken
                    codeBlock            tokens
 

Version:
$Revision: 1.14.2.1 $
Author:
$Author: mksoft $

Constructor Summary
TemplateCodeBlock(java.lang.String name)
          Constructor for class TemplateCodeBlock
 
Method Summary
protected  void addCodeToken(java.lang.String code)
          Access method for an one to n association.
protected  void addPlaceholderToken(java.lang.String placeholder)
          Access method for an one to n association.
 boolean addToTokens(TemplateToken obj)
          Access method for an one to n association.
 java.lang.String getName()
          Get the name attribute of the TemplateCodeBlock object
 java.lang.String getSourceCode(de.upb.tools.fca.FHashMap parameter)
          Get the sourceCode attribute of the TemplateCodeBlock object
 java.util.Iterator getSourceCodeLines(de.upb.tools.fca.FHashMap parameter)
          Get the sourceCodeLines attribute of the TemplateCodeBlock object
 TemplateFile getTemplate()
          Get the template attribute of the TemplateCodeBlock object
 boolean hasInTokens(TemplateToken obj)
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator iteratorOfTokens()
          No comment provided by developer, please add a comment to improve documentation.
protected  void parse(java.io.BufferedReader in)
          No comment provided by developer, please add a comment to improve documentation.
protected  void processLine(java.lang.String line, java.io.BufferedReader in)
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromTokens()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromTokens(TemplateToken obj)
          No comment provided by developer, please add a comment to improve documentation.
 void setName(java.lang.String name)
          Sets the name attribute of the TemplateCodeBlock object
 boolean setTemplate(TemplateFile obj)
          Sets the template attribute of the TemplateCodeBlock object
 int sizeOfTokens()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateCodeBlock

public TemplateCodeBlock(java.lang.String name)
Constructor for class TemplateCodeBlock

Parameters:
name - No description provided
Method Detail

setName

public void setName(java.lang.String name)
Sets the name attribute of the TemplateCodeBlock object

Parameters:
name - The new name value

getName

public java.lang.String getName()
Get the name attribute of the TemplateCodeBlock object

Returns:
The name value

setTemplate

public boolean setTemplate(TemplateFile obj)
Sets the template attribute of the TemplateCodeBlock object

Parameters:
obj - The new template value
Returns:
No description provided

getTemplate

public TemplateFile getTemplate()
Get the template attribute of the TemplateCodeBlock object

Returns:
The template value

hasInTokens

public boolean hasInTokens(TemplateToken obj)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
obj - No description provided
Returns:
No description provided

iteratorOfTokens

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

Returns:
No description provided

sizeOfTokens

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

Returns:
No description provided

addToTokens

public boolean addToTokens(TemplateToken obj)
Access method for an one to n association.

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

removeFromTokens

public boolean removeFromTokens(TemplateToken obj)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
obj - No description provided
Returns:
No description provided

removeAllFromTokens

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


parse

protected void parse(java.io.BufferedReader in)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
in - No description provided

processLine

protected void processLine(java.lang.String line,
                           java.io.BufferedReader in)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
line - No description provided
in - No description provided

addCodeToken

protected void addCodeToken(java.lang.String code)
Access method for an one to n association.

Parameters:
code - The object added.

addPlaceholderToken

protected void addPlaceholderToken(java.lang.String placeholder)
Access method for an one to n association.

Parameters:
placeholder - The object added.

getSourceCode

public java.lang.String getSourceCode(de.upb.tools.fca.FHashMap parameter)
Get the sourceCode attribute of the TemplateCodeBlock object

Parameters:
parameter - No description provided
Returns:
The sourceCode value

getSourceCodeLines

public java.util.Iterator getSourceCodeLines(de.upb.tools.fca.FHashMap parameter)
Get the sourceCodeLines attribute of the TemplateCodeBlock object

Parameters:
parameter - No description provided
Returns:
The sourceCodeLines value