|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.dynamic.definition.DefinitionBuffer
public class DefinitionBuffer
A Buffer specifically for writing a Transfer Object definition
| Constructor Summary | |
|---|---|
init()
Constructor |
|
| Method Summary | |
|---|---|
void |
append(string string)
Appends the string |
void |
cfScript(boolean open)
Writes a cfscript |
private any |
getStringBuffer()
return: java.lang.StringBuffer |
private string |
nl()
return new line char |
private string |
q()
returns a quote |
private void |
setStringBuffer(any StringBuffer)
|
string |
toDefintionString()
Method to push out contents to the string |
void |
writeCFArgument(string name, [string type='any'], [string hint=''], [boolean required='no'], [string default])
Writes an argument to the buffer |
void |
writeCFFunctionClose()
Writes the closing part of a cffunction |
void |
writeCFFunctionOpen(string name, string access, string returnType, [string hint=''])
Writes the opening part of a CFFunction |
void |
writeCFScriptBlock(string body)
Writes a block of cfscript |
void |
writeCopyOpenFunction(any function, [string defaultHint=''])
copies the open function call for a given function |
void |
writeDoubleCheckLockClose()
Writes a double check lock end |
void |
writeDoubleCheckLockOpen(string condition, string lockName)
Writes a double check lock start |
void |
writeLazyLoad(string name)
writes the check if it's loaded, and calls its load method |
void |
writeLazyUnLoad(string name)
writes the check if it's loaded, and calls its unload method |
void |
writeLine(string text)
Writes a line with a carriage return at the end |
void |
writeNamedLockClose()
writes a named lock |
void |
writeNamedLockOpen(string lockName)
writes a named lock |
void |
writeSetIsDirty(boolean isDirty)
Writes the functoin call to setIsDirty() |
void |
writeSetIsLoaded(string name, boolean loaded)
Writes a set is loaded function |
void |
writeTransferClassCheck(string transferScript, string className)
Writes the code to check a class type |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init()
| Method Detail |
|---|
public void append(string string)
string - The string to appendpublic void cfScript(boolean open)
open - Is it open, or close?private any getStringBuffer()
private string nl()
private string q()
private void setStringBuffer(any StringBuffer)
StringBuffer - java.lang.StringBufferpublic string toDefintionString()
public void writeCFArgument(string name, [string type='any'], [string hint=''], [boolean required='no'], [string default])
name - The name of the argumenttype - The type of the argumenthint - the hint to add to the argumentrequired - Whether the argument is requireddefault - Default value for the argumentpublic void writeCFFunctionClose()
public void writeCFFunctionOpen(string name, string access, string returnType, [string hint=''])
name - The name of the functionaccess - The access of the funtionreturnType - The return Type of the functionhint - The hint for the functionpublic void writeCFScriptBlock(string body)
body - The body of the script blockpublic void writeCopyOpenFunction(any function, [string defaultHint=''])
function - The function coming throughdefaultHint - the default hint valuepublic void writeDoubleCheckLockClose()
public void writeDoubleCheckLockOpen(string condition, string lockName)
condition - The condition to checklockName - The name of the lockpublic void writeLazyLoad(string name)
name - The name of the Loadedpublic void writeLazyUnLoad(string name)
name - The name of the Loadedpublic void writeLine(string text)
text - The textpublic void writeNamedLockClose()
public void writeNamedLockOpen(string lockName)
lockName - The name of the lockpublic void writeSetIsDirty(boolean isDirty)
isDirty - boolean if it is dirty or notpublic void writeSetIsLoaded(string name, boolean loaded)
name - The name of the isLoadedloaded - If it's loaded or notpublic void writeTransferClassCheck(string transferScript, string className)
transferScript - The reference to the transfer object to checkclassName - The className to check against
|
Transfer version 1.1 | ||||
| FRAMES | |||||