|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.ui.app.Prefs org.fife.rtext.plugins.tidy.JsonOptions
public class JsonOptions
Options for tidying JSON.
While all fields in this class are public, please use the getters and setters for accessing them for bounds checking, etc.
Field Summary | |
---|---|
boolean |
jsonIndentFirstLevel
|
java.lang.String |
jsonOutputStyle
|
int |
jsonSpaceCount
|
Constructor Summary | |
---|---|
JsonOptions()
|
Method Summary | |
---|---|
boolean |
getIndentFirstLevel()
Returns whether the "first level" of the top-level JSON object should be indented. |
java.lang.String |
getOutputStyle()
Returns the style of the formatted JSON. |
int |
getSpaceCount()
Returns the number of spaces to use for indentation when formatting JSON. |
void |
setDefaults()
Sets all fields in this class to their default values. |
void |
setIndentFirstLevel(boolean indent)
Sets whether the first level of the top-level JSON object should be indented. |
void |
setOutputStyle(java.lang.String outputStyle)
Sets the output style to use when formatting JSON. |
void |
setSpaceCount(int count)
Sets the number of spaces to use for indentation when formatting JSON. |
Methods inherited from class org.fife.ui.app.Prefs |
---|
load, load, load, save, save, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String jsonOutputStyle
public int jsonSpaceCount
public boolean jsonIndentFirstLevel
Constructor Detail |
---|
public JsonOptions()
Method Detail |
---|
public boolean getIndentFirstLevel()
setIndentFirstLevel(boolean)
public java.lang.String getOutputStyle()
setOutputStyle(String)
public int getSpaceCount()
setSpaceCount(int)
public void setDefaults()
setDefaults
in class Prefs
public void setIndentFirstLevel(boolean indent)
indent
- Whether to indent the first level of a JSON object.getIndentFirstLevel()
public void setOutputStyle(java.lang.String outputStyle)
outputStyle
- The output style to use. If this is invalid, a
default style is used.getOutputStyle()
public void setSpaceCount(int count)
count
- The number of spaces.getSpaceCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |