com.carlosbcruz.sapproxy.access
Class FunctionsRepository

java.lang.Object
  extended by com.carlosbcruz.sapproxy.access.FunctionsRepository

public class FunctionsRepository
extends java.lang.Object

Provide the list of available functions

Author:
Carlos Fernando Bella Cruz - pessoal@carlosbcruz.com

Constructor Summary
FunctionsRepository()
           
 
Method Summary
static java.lang.String getContent()
          Write the content
static java.lang.String[] getFunctionList()
          Read the functions from file
static void nukeRepository()
          Clear the repository
static void setOutputDirectoyBasedOnCurrentTime()
          Set the current output directory based on the current time
static void writeContent(java.lang.String content)
          Save the content to a file
static void writeFunctionDocumentation(java.lang.String fileName, java.lang.String content)
          Save the documentation of a function
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionsRepository

public FunctionsRepository()
Method Detail

nukeRepository

public static void nukeRepository()
Clear the repository


getContent

public static java.lang.String getContent()
Write the content

Returns:
the content

getFunctionList

public static java.lang.String[] getFunctionList()
Read the functions from file

Returns:
the function list as an array of strings

writeContent

public static void writeContent(java.lang.String content)
Save the content to a file

Parameters:
content -

setOutputDirectoyBasedOnCurrentTime

public static void setOutputDirectoyBasedOnCurrentTime()
Set the current output directory based on the current time


writeFunctionDocumentation

public static void writeFunctionDocumentation(java.lang.String fileName,
                                              java.lang.String content)
Save the documentation of a function

Parameters:
fileName - the output file
content - the documentation of the function