A B C D E F G I J K N P R S T U V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbsolutePathConstraintError - Exception in com.codedjson.exceptions
-
Exception class, thrown when
CJson(String)
object contains relative paths in import statement instead of absolute paths. - AbsolutePathConstraintError() - Constructor for exception com.codedjson.exceptions.AbsolutePathConstraintError
-
Default constructor.
Default message:Expected absolute path in import statement but got relative
- AbsolutePathConstraintError(String) - Constructor for exception com.codedjson.exceptions.AbsolutePathConstraintError
-
Absolute/Relative path errors are caught with custom error message.
- appendPath(String, String...) - Method in class com.codedjson.utils.Base
B
- Base - Class in com.codedjson.utils
- Base(String) - Constructor for class com.codedjson.utils.Base
- Base(String, boolean) - Constructor for class com.codedjson.utils.Base
- baseFileObj - Variable in class com.codedjson.utils.Base
C
- Checks - Class in com.codedjson.utils
- Checks() - Constructor for class com.codedjson.utils.Checks
- CJson<T> - Class in com.codedjson
-
Coded JSON is an extended format of JSON formatted data storage, which gives you more previledge to organize data into more structured format.
- CJson(String) - Constructor for class com.codedjson.CJson
-
Parser for
CJSON
content. - CJson(Path) - Constructor for class com.codedjson.CJson
-
CJson parser using file path.
- com.codedjson - package com.codedjson
- com.codedjson.exceptions - package com.codedjson.exceptions
- com.codedjson.types - package com.codedjson.types
- com.codedjson.utils - package com.codedjson.utils
- commaSeparatedLines - Variable in class com.codedjson.utils.Base
- commentedLines - Variable in class com.codedjson.utils.Base
- content - Variable in class com.codedjson.utils.Base
D
- Decode - Class in com.codedjson.utils
- Decode(String) - Constructor for class com.codedjson.utils.Decode
- Decode(String, boolean) - Constructor for class com.codedjson.utils.Decode
- decodeKeywords() - Method in class com.codedjson.utils.Decode
- decodeRelativePathValues(String) - Method in class com.codedjson.utils.Decode
- deserialize(Class<T>) - Method in class com.codedjson.CJson
-
Deserializes CJSON content and returns Java Object equivalent to
classType
. - deserializeAsString() - Method in class com.codedjson.CJson
-
Deserializes
CJSON
content and returns as string.
No need to explicitly deserialize CJSON contexts and call this method to get the deserializedString
.
E
- encodedRelativeJPathRegex - Static variable in class com.codedjson.utils.Keywords
F
G
- getAllKeys() - Method in class com.codedjson.Json
-
Iteratively parses all keys and returns it in List< String>
- getAllValues() - Method in class com.codedjson.Json
-
Iteratively parses all values and returns it in List< String>.
Requires getAllKeys() before. - getAsString(Object) - Static method in class com.codedjson.utils.Decode
-
Master function to convert JAVA object to JSON string
- getDirectory(String) - Method in class com.codedjson.utils.Base
- getFullPath() - Method in class com.codedjson.utils.Base
- getType(Object) - Method in class com.codedjson.utils.Base
- getValueFromKey(String) - Method in class com.codedjson.Json
- gson - Variable in class com.codedjson.utils.Base
I
- IllegalJsonType - Exception in com.codedjson.exceptions
-
Puts a check on JSON type context after deserialization of CJSON.
- IllegalJsonType() - Constructor for exception com.codedjson.exceptions.IllegalJsonType
-
Default constructor.
Called with message:Object is neither JsonObject nor a JsonArray
- IllegalValueType - Exception in com.codedjson.exceptions
-
If a new data type is encountered during parsing a value from JSON using JPath, this exception is thrown.
- IllegalValueType() - Constructor for exception com.codedjson.exceptions.IllegalValueType
-
Default constructor.
Called with message:Undefined value type detected
- IllegalValueType(String) - Constructor for exception com.codedjson.exceptions.IllegalValueType
-
Java data type errors are caught with custom error message.
- importKey - Static variable in class com.codedjson.utils.Keywords
- inject(Class<T>, String, Object) - Method in class com.codedjson.CJson
-
Injects single key and value.
- inject(Class<T>, HashMap<String, Object>) - Method in class com.codedjson.CJson
-
Inject a hashmap to a json object.
- InvalidJPathError - Exception in com.codedjson.exceptions
- InvalidJPathError() - Constructor for exception com.codedjson.exceptions.InvalidJPathError
- Is - Class in com.codedjson.utils
- Is(String) - Constructor for class com.codedjson.utils.Is
- Is(String, boolean) - Constructor for class com.codedjson.utils.Is
- isAbsolutePath(String) - Method in class com.codedjson.utils.Base
- isContentJson() - Method in class com.codedjson.Json
-
Checks if the deserialized object is of json type
- isContentJson(String) - Static method in class com.codedjson.Json
-
Checks if the passed content is of json type.
- isContentJson(Path) - Static method in class com.codedjson.Json
-
Checks if the file content is of json type.
- isContextConverted - Variable in class com.codedjson.utils.Base
- isFilePath - Variable in class com.codedjson.utils.Base
- isImport(String) - Method in class com.codedjson.utils.Is
- isInjectDone - Variable in class com.codedjson.utils.Base
- isInjectExist - Variable in class com.codedjson.utils.Base
- isRelativeJPath(String) - Method in class com.codedjson.utils.Is
- isRuntimeKeysExist(String) - Method in class com.codedjson.utils.Decode
- isSingleLineComent(String) - Method in class com.codedjson.utils.Is
J
- json - Variable in class com.codedjson.Json
- Json - Class in com.codedjson
-
All JSON related operations are written in this class.
- Json(String) - Constructor for class com.codedjson.Json
- Json(String, boolean) - Constructor for class com.codedjson.Json
- jsonKeys - Variable in class com.codedjson.Json
- jsonValues - Variable in class com.codedjson.Json
K
- Keys - Variable in class com.codedjson.utils.RelativeJPath
- keyValueSet(String, String, String) - Static method in class com.codedjson.utils.Keywords
- Keywords - Class in com.codedjson.utils
- Keywords() - Constructor for class com.codedjson.utils.Keywords
N
- NullJsonKeys - Exception in com.codedjson.exceptions
-
Exception is thrown if empty JSON object is passed for
getAllValues()
- NullJsonKeys() - Constructor for exception com.codedjson.exceptions.NullJsonKeys
-
Default constructor.
Default message:No json keys found.
P
- parse() - Method in class com.codedjson.Json
-
Parse value with no keys.
- parse(String) - Method in class com.codedjson.Json
-
Parse value with JPath as key.
- ParsedValue - Class in com.codedjson.types
- ParsedValue(Object, String) - Constructor for class com.codedjson.types.ParsedValue
- parseJson(String) - Static method in class com.codedjson.utils.Base
- parseValue(String) - Method in class com.codedjson.Json
R
- read(String) - Static method in class com.codedjson.utils.Base
- relativeJPath - Static variable in class com.codedjson.utils.Keywords
- RelativeJPath - Class in com.codedjson.utils
- RelativeJPath(boolean, List<String>) - Constructor for class com.codedjson.utils.RelativeJPath
- relativeJPathRegex - Static variable in class com.codedjson.utils.Keywords
- remove(String) - Method in class com.codedjson.CJson
-
Removes a key value set from deserialized JSON.
Takes json path as input and returns updated Serialized class. - remove(List<String>) - Method in class com.codedjson.CJson
-
Removes a key value set from deserialized JSON.
Takes list of json paths as input and returns updated Serialized class. - removeWithKey(String) - Method in class com.codedjson.utils.Decode
- replaceContent(String, String, Object) - Method in class com.codedjson.utils.Decode
- replaceContent(String, HashMap<String, Object>) - Method in class com.codedjson.utils.Decode
- Result - Variable in class com.codedjson.utils.RelativeJPath
- runtimeKeys(String) - Method in class com.codedjson.utils.Checks
-
Checks if expecting runtime keys
- runtimeVals - Variable in class com.codedjson.utils.Decode
- runtimeVals - Static variable in class com.codedjson.utils.Keywords
S
- singleLineComment - Static variable in class com.codedjson.utils.Keywords
T
- toString(Object) - Static method in class com.codedjson.CJson
-
Converts JAVA object to JSON string.
- type - Variable in class com.codedjson.types.ParsedValue
U
- UndeserializedCJSON - Exception in com.codedjson.exceptions
-
Exception is thrown when any function requires
deserialize()
call before. - UndeserializedCJSON() - Constructor for exception com.codedjson.exceptions.UndeserializedCJSON
-
Default constructor.
Default message:Undeserialized CJSON content detected.
- UndeserializedCJSON(String) - Constructor for exception com.codedjson.exceptions.UndeserializedCJSON
-
Custom error message constructor
V
- value - Variable in class com.codedjson.types.ParsedValue
- VariableInjectionException - Exception in com.codedjson.exceptions
- VariableInjectionException(String) - Constructor for exception com.codedjson.exceptions.VariableInjectionException
All Classes All Packages