de.uni_paderborn.fujaba.basic
Class TemplateFile

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

public class TemplateFile
extends java.lang.Object

Associations

                 +----------+ 1        file        1
 TemplateManager | filename +------------------------ TemplateFile
                 +----------+ manager      templates

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

Version:
$Revision: 1.18.2.7 $
Author:
$Author: lowende $

Constructor Summary
TemplateFile(java.lang.String filename)
          Constructor for class TemplateFile
 
Method Summary
 boolean addToCodeBlocks(TemplateCodeBlock obj)
          Access method for an one to n association.
 java.util.Iterator entriesOfCodeBlocks()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String getFilename()
          Get the filename attribute of the TemplateFile object
 TemplateCodeBlock getFromCodeBlocks(java.lang.String key)
          Get the fromCodeBlocks attribute of the TemplateFile object
 TemplateManager getManager()
          Get the manager attribute of the TemplateFile object
 long getModifiedTag()
          Get the modifiedTag attribute of the TemplateFile object
 boolean hasInCodeBlocks(TemplateCodeBlock obj)
          No comment provided by developer, please add a comment to improve documentation.
 boolean hasKeyInCodeBlocks(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
 boolean isModified()
          Get the modified attribute of the TemplateFile object
 java.util.Iterator iteratorOfCodeBlocks()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator keysOfCodeBlocks()
          No comment provided by developer, please add a comment to improve documentation.
protected  java.io.BufferedReader openUsingClassLoader()
          No comment provided by developer, please add a comment to improve documentation.
protected  void parse()
          Parse should only be called by the TemplateManager (once, or after alteration of the file)
protected  void processLine(java.lang.String line, java.io.BufferedReader in)
          No comment provided by developer, please add a comment to improve documentation.
 void removeAllFromCodeBlocks()
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeFromCodeBlocks(TemplateCodeBlock obj)
          No comment provided by developer, please add a comment to improve documentation.
 boolean removeKeyFromCodeBlocks(java.lang.String key)
          No comment provided by developer, please add a comment to improve documentation.
protected  java.lang.String retrieveCodeBlockName(java.lang.String line)
          No comment provided by developer, please add a comment to improve documentation.
 void setFilename(java.lang.String filename)
          Sets the filename attribute of the TemplateFile object
 boolean setManager(TemplateManager obj)
          Sets the manager attribute of the TemplateFile object
 void setModifiedTag(long tag)
          Sets the modifiedTag attribute of the TemplateFile object
 int sizeOfCodeBlocks()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String toString()
          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, wait, wait, wait
 

Constructor Detail

TemplateFile

public TemplateFile(java.lang.String filename)
Constructor for class TemplateFile

Parameters:
filename - No description provided
Method Detail

setFilename

public void setFilename(java.lang.String filename)
Sets the filename attribute of the TemplateFile object

Parameters:
filename - The new filename value

getFilename

public java.lang.String getFilename()
Get the filename attribute of the TemplateFile object

Returns:
The filename value

setModifiedTag

public void setModifiedTag(long tag)
Sets the modifiedTag attribute of the TemplateFile object

Parameters:
tag - The new modifiedTag value

getModifiedTag

public long getModifiedTag()
Get the modifiedTag attribute of the TemplateFile object

Returns:
The modifiedTag value

setManager

public boolean setManager(TemplateManager obj)
Sets the manager attribute of the TemplateFile object

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

getManager

public TemplateManager getManager()
Get the manager attribute of the TemplateFile object

Returns:
The manager value

hasInCodeBlocks

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

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

hasKeyInCodeBlocks

public boolean hasKeyInCodeBlocks(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

iteratorOfCodeBlocks

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

Returns:
No description provided

keysOfCodeBlocks

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

Returns:
No description provided

entriesOfCodeBlocks

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

Returns:
No description provided

sizeOfCodeBlocks

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

Returns:
No description provided

getFromCodeBlocks

public TemplateCodeBlock getFromCodeBlocks(java.lang.String key)
Get the fromCodeBlocks attribute of the TemplateFile object

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

addToCodeBlocks

public boolean addToCodeBlocks(TemplateCodeBlock obj)
Access method for an one to n association.

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

removeFromCodeBlocks

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

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

removeKeyFromCodeBlocks

public boolean removeKeyFromCodeBlocks(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

removeAllFromCodeBlocks

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


isModified

public boolean isModified()
Get the modified attribute of the TemplateFile object

Returns:
The modified value

openUsingClassLoader

protected java.io.BufferedReader openUsingClassLoader()
                                               throws java.io.IOException
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided
Throws:
java.io.IOException - Exception description not provided

parse

protected void parse()
Parse should only be called by the TemplateManager (once, or after alteration of the file)


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

retrieveCodeBlockName

protected java.lang.String retrieveCodeBlockName(java.lang.String line)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
line - No description provided
Returns:
No description provided

toString

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

Returns:
No description provided