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()
           
 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 getFullClientName(String name)
           
 String getFullServerName(String name)
           
 String getIndent()
          Gets the string used for source indentation
 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()
           
 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 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()

getFullClientName

public String getFullClientName(String name)

setServerNamePrefix

public void setServerNamePrefix(String value)

getServerNamePrefix

public String getServerNamePrefix()

hasServerNamePrefix

public boolean hasServerNamePrefix()

getFullServerName

public String getFullServerName(String name)

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 -


Copyright © 2011. All Rights Reserved.