org.duelengine.duel.codegen
Class CodeGenSettings

java.lang.Object
  extended by org.duelengine.duel.codegen.CodeGenSettings

public class CodeGenSettings
extends Object

Settings which affect generated code


Constructor Summary
CodeGenSettings()
           
 
Method Summary
 String getClientNamePrefix()
           
 String getClientPath(String viewName)
           
 boolean getConvertLineEndings()
          Gets if line endings and tabs from original document should be normalized to their settings values
 boolean getEncodeNonASCII()
          Gets if characters above ASCII should always be encoded in HTML
 String getIndent()
          Gets the string used for source indentation
 boolean getLowercaseClientPaths()
          Gets if client paths and filenames are forced to lowercase
 String getNewline()
          Gets the string used for line endings
 boolean getNormalizeWhitespace()
          Gets if all whitespace literals should be normalized (replaced by single space)
 String getServerNamePrefix()
           
 String getServerPath(String viewName, CodeGenerator codegen)
           
 boolean hasClientNamePrefix()
           
 boolean hasServerNamePrefix()
           
 void setClientNamePrefix(String value)
           
 void setConvertLineEndings(boolean value)
          Sets if line endings and tabs from original document should be normalized to their settings values
 void setEncodeNonASCII(boolean value)
          Sets if characters above ASCII should always be encoded in HTML
 void setIndent(String value)
          Sets the string used for source indentation
 void setLowercaseClientPaths(boolean value)
          Sets if client paths and filenames are forced to lowercase
 void setNewline(String value)
          Sets the string used for line endings
 void setNormalizeWhitespace(boolean value)
          Sets if all whitespace literals should be normalized (replaced by single space)
 void setServerNamePrefix(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeGenSettings

public CodeGenSettings()
Method Detail

setClientNamePrefix

public void setClientNamePrefix(String value)

getClientNamePrefix

public String getClientNamePrefix()

hasClientNamePrefix

public boolean hasClientNamePrefix()

setServerNamePrefix

public void setServerNamePrefix(String value)

getServerNamePrefix

public String getServerNamePrefix()

hasServerNamePrefix

public boolean hasServerNamePrefix()

getIndent

public String getIndent()
Gets the string used for source indentation

Returns:

setIndent

public void setIndent(String value)
Sets the string used for source indentation

Parameters:
value -

getNewline

public String getNewline()
Gets the string used for line endings

Returns:

setNewline

public void setNewline(String value)
Sets the string used for line endings

Parameters:
value -

getConvertLineEndings

public boolean getConvertLineEndings()
Gets if line endings and tabs from original document should be normalized to their settings values

Returns:

setConvertLineEndings

public void setConvertLineEndings(boolean value)
Sets if line endings and tabs from original document should be normalized to their settings values

Parameters:
value -

getEncodeNonASCII

public boolean getEncodeNonASCII()
Gets if characters above ASCII should always be encoded in HTML

Returns:

setEncodeNonASCII

public void setEncodeNonASCII(boolean value)
Sets if characters above ASCII should always be encoded in HTML

Parameters:
value -

getNormalizeWhitespace

public boolean getNormalizeWhitespace()
Gets if all whitespace literals should be normalized (replaced by single space)

Returns:

setNormalizeWhitespace

public void setNormalizeWhitespace(boolean value)
Sets if all whitespace literals should be normalized (replaced by single space)

Parameters:
value -

getLowercaseClientPaths

public boolean getLowercaseClientPaths()
Gets if client paths and filenames are forced to lowercase

Returns:

setLowercaseClientPaths

public void setLowercaseClientPaths(boolean value)
Sets if client paths and filenames are forced to lowercase

Parameters:
value -

getServerPath

public String getServerPath(String viewName,
                            CodeGenerator codegen)

getClientPath

public String getClientPath(String viewName)


Copyright © 2012. All Rights Reserved.