Administration Tools

org.topcased.service.templatetoproject.infos.util
Class TemplateToInfosTemplateProject

java.lang.Object
  extended by org.topcased.service.templatetoproject.infos.util.TemplateToInfosTemplateProject

public class TemplateToInfosTemplateProject
extends java.lang.Object

TemplateToInfosTemplateProject get information from a xml file. All information which can be find in a "template file project" ('template.xml'). TemplateToInfosTemplateProject is composed of severals Files and Directories it-self composed of Files and Directories. TemplateToInfosTemplateProject is used by InfosTemplateProject


Constructor Summary
TemplateToInfosTemplateProject()
           
 
Method Summary
 void findVariable(java.lang.String string)
          This method determines whether the given string contains template variable.
 InfosTemplateProject getInfosTemplateProject(java.lang.String templatePath)
          Take informations about the template project templatePath; Initialize private Map : - 'mapInfosDirectory'(name, InfosDirectory), - 'mapInfosFile' (name, InfosFile)
 java.util.Map<java.lang.String,InfosDirectory> getMapInfosDirectory()
          Get mapInfosDirectory
 java.util.Map<java.lang.String,InfosFile> getMapInfosFile()
          Get mapInfosFile
 java.util.Map<java.lang.String,java.lang.String> getMapVariables()
          Get variables map
 java.lang.String getOldProjectName()
          Get oldProjectName
 java.lang.String getTemplateName()
          Get templateName
 java.lang.String getTemplatePathZipFile()
          Get template path zip file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateToInfosTemplateProject

public TemplateToInfosTemplateProject()
Method Detail

getTemplateName

public java.lang.String getTemplateName()
Get templateName

Returns:
template name

getOldProjectName

public java.lang.String getOldProjectName()
Get oldProjectName

Returns:
old Project name

getTemplatePathZipFile

public java.lang.String getTemplatePathZipFile()
Get template path zip file

Returns:
path Zip File

getMapInfosDirectory

public java.util.Map<java.lang.String,InfosDirectory> getMapInfosDirectory()
Get mapInfosDirectory

Returns:
mapInfosDirectory : Map of InfosDirectory (key=name ; value=InfosDirectory)

getMapInfosFile

public java.util.Map<java.lang.String,InfosFile> getMapInfosFile()
Get mapInfosFile

Returns:
mapInfosFile : Map of InfosFile (key=name ; value=InfosFile)

getMapVariables

public java.util.Map<java.lang.String,java.lang.String> getMapVariables()
Get variables map

Returns:
variables which is a hashmap containing all the variables found in the xml file

getInfosTemplateProject

public InfosTemplateProject getInfosTemplateProject(java.lang.String templatePath)
Take informations about the template project templatePath; Initialize private Map : - 'mapInfosDirectory'(name, InfosDirectory), - 'mapInfosFile' (name, InfosFile)

Parameters:
templatePath -
Returns:
InfosTemplateProject

findVariable

public void findVariable(java.lang.String string)
This method determines whether the given string contains template variable. If it is the case, the variable name is added to the corresponding hashmap

Parameters:
string - The string to evaluate

Administration Tools

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.