|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkr.ac.kaist.swrc.jhannanum.share.JSONReader
public class JSONReader
JSONReader
is for reading data from the configuration files for each plug-in.
Field Summary | |
---|---|
private java.lang.String |
filePath
the path of the json file |
private JSONObject |
json
json object |
Constructor Summary | |
---|---|
JSONReader(java.lang.String filePath)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getAuthor()
Returns the author of the plug-in |
java.lang.String |
getDescription()
Returns the description of the plug-in |
java.lang.String |
getFilePath()
Returns the file path of the configuration file. |
java.lang.String |
getName()
Returns the name of the plug-in. |
java.lang.String |
getType()
Returns the type of the plug-in |
java.lang.String |
getValue(java.lang.String key)
Returns the value mapped with the specified key. |
java.lang.String |
getVersion()
Returns the version of the plug-in. |
void |
setFilePath(java.lang.String filePath)
Sets the configuration file for a plug-in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String filePath
private JSONObject json
Constructor Detail |
---|
public JSONReader(java.lang.String filePath) throws JSONException, java.io.IOException
filePath
- - the file path of the plug-in configuration file
JSONException
java.io.IOException
Method Detail |
---|
public java.lang.String getName() throws JSONException
JSONException
public java.lang.String getVersion() throws JSONException
JSONException
public java.lang.String getAuthor() throws JSONException
JSONException
public java.lang.String getDescription() throws JSONException
JSONException
public java.lang.String getType() throws JSONException
JSONException
public java.lang.String getValue(java.lang.String key) throws JSONException
JSONException
public java.lang.String getFilePath()
public void setFilePath(java.lang.String filePath)
filePath
- - the configuration file path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |