Transfer version 1.1

transfer.com.dynamic
Class DecoratorWriter

WEB-INF.cftags.component
        extended by transfer.com.dynamic.DecoratorWriter

public class DecoratorWriter
extends WEB-INF.cftags.component

Object That writes out the decorators


Constructor Summary
init(string definitionPath, ObjectManager objectManager)
          Constructor
 
Method Summary
 string getDefinitionFileName(Object object)
          Creates the name that the file defition will be saved under
private string getDefinitionPath()
private ObjectManager getObjectManager()
private struct getWrittenFileCache()
 boolean hasDefinition(Object object)
          Checks to see if the defintion has been written
private void setDefinitionPath(string DefinitionPath)
private void setObjectManager(ObjectManager ObjectManager)
private void setWrittenFileCache(struct writtenFileCache)
private any throw(string type, string message, [string detail=''])
          Throws an Exception
 void writeDefinition(Object object, TransferObject transfer)
          Writes the defintion to the .transfer file
 string writeFunctionWrapper(DefinitionBuffer buffer, any function)
          Writes the wrapper function for the transfer object
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(string definitionPath, ObjectManager objectManager)
Constructor

Parameters:
definitionPath - Path to where the definitions are kept
objectManager - Need to object manager for making queries
Method Detail

getDefinitionFileName

public string getDefinitionFileName(Object object)
Creates the name that the file defition will be saved under

Parameters:
object - BO of the Object

getDefinitionPath

private string getDefinitionPath()


getObjectManager

private ObjectManager getObjectManager()


getWrittenFileCache

private struct getWrittenFileCache()


hasDefinition

public boolean hasDefinition(Object object)
Checks to see if the defintion has been written

Parameters:
object - BO of the Object

setDefinitionPath

private void setDefinitionPath(string DefinitionPath)

Parameters:
DefinitionPath

setObjectManager

private void setObjectManager(ObjectManager ObjectManager)

Parameters:
ObjectManager

setWrittenFileCache

private void setWrittenFileCache(struct writtenFileCache)

Parameters:
writtenFileCache

throw

private any throw(string type, string message, [string detail=''])
Throws an Exception

Parameters:
type - The type of exception
message - The message to accompany the exception
detail - The detail message for the exception

writeDefinition

public void writeDefinition(Object object, TransferObject transfer)
Writes the defintion to the .transfer file

Parameters:
object - The object def, as the transfer won't know it's class yet
transfer - The transfer Object to decorate

writeFunctionWrapper

public string writeFunctionWrapper(DefinitionBuffer buffer, any function)
Writes the wrapper function for the transfer object

Parameters:
buffer - The buffer to write with
function - The function coming through

Transfer version 1.1