Package com.codedjson.utils
Class Decode
- java.lang.Object
-
- com.codedjson.utils.Base
-
- com.codedjson.utils.Is
-
- com.codedjson.Json
-
- com.codedjson.utils.Decode
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
runtimeVals
-
Fields inherited from class com.codedjson.Json
json, jsonKeys, jsonValues
-
Fields inherited from class com.codedjson.utils.Base
baseFileObj, commaSeparatedLines, commentedLines, content, filePath, gson, isContextConverted, isFilePath, isInjectDone, isInjectExist
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decodeKeywords()
protected String
decodeRelativePathValues(String content)
protected static String
getAsString(Object object)
Master function to convert JAVA object to JSON stringprotected boolean
isRuntimeKeysExist(String content)
protected void
removeWithKey(String key)
protected String
replaceContent(String content, String key, Object value)
protected String
replaceContent(String content, HashMap<String,Object> injectingObj)
-
Methods inherited from class com.codedjson.Json
getAllKeys, getAllValues, getValueFromKey, isContentJson, isContentJson, isContentJson, parse, parse, parseValue
-
Methods inherited from class com.codedjson.utils.Is
isImport, isRelativeJPath, isSingleLineComent
-
Methods inherited from class com.codedjson.utils.Base
appendPath, getDirectory, getFullPath, getType, isAbsolutePath, parseJson, read
-
-
-
-
Constructor Detail
-
Decode
public Decode(String filePath, boolean isFilePath) throws FileNotFoundException
- Throws:
FileNotFoundException
-
Decode
public Decode(String filePath)
-
-
Method Detail
-
decodeKeywords
protected void decodeKeywords() throws AbsolutePathConstraintError, FileNotFoundException, IllegalJsonType
-
replaceContent
protected String replaceContent(String content, HashMap<String,Object> injectingObj)
-
removeWithKey
protected void removeWithKey(String key)
-
getAsString
protected static String getAsString(Object object) throws IllegalAccessException
Master function to convert JAVA object to JSON string- Parameters:
object
-- Returns:
- Throws:
IllegalAccessException
-
isRuntimeKeysExist
protected boolean isRuntimeKeysExist(String content)
-
-