Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
public.javadoc.org.spincast.core.json.class-use.JsonObject.html Maven / Gradle / Ivy
Uses of Interface org.spincast.core.json.JsonObject (org.spincast:spincast-framework 1.0.0 API)
JavaScript is disabled on your browser.
Constructors in org.spincast.core.exceptions with parameters of type JsonObject
Constructor and Description
RedirectException (FlashMessageLevel flashMessageType,
String flashMessageTex,
JsonObject flashMessageVariables)
Redirects to the current URL with
a Flash message.
RedirectException (String newUrl,
boolean redirectPermanently,
FlashMessage flashMessage,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
RedirectException (String newUrl,
boolean redirectPermanently,
FlashMessageLevel flashMessageType,
String flashMessageTex,
JsonObject flashMessageVariables)
Redirect with a Flash message.
RedirectException (String newUrl,
FlashMessageLevel flashMessageType,
String flashMessageTex,
JsonObject flashMessageVariables)
Redirect with a Flash message.
Methods in org.spincast.core.exchange with parameters of type JsonObject
Modifier and Type
Method and Description
void
ResponseRequestContextAddon. redirect (FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
Sets a temporarily redirection header (302) to the
current page, with a Flash message to display.
void
ResponseRequestContextAddon. redirect (String newUrl,
boolean permanently,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
Sets a redirection header, with a Flash message to display.
void
ResponseRequestContextAddon. redirect (String newUrl,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
Sets a temporarily redirection header (302),
with a Flash message to display.
void
ResponseRequestContextAddon. redirect (String newUrl,
int specific3xxCode,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
Sets the redirection headers with a specified 3xx
status code,
and a Flash message to display.
void
ResponseRequestContextAddon. redirect (String newUrl,
JsonObject flashMessageVariables)
Sets a temporarily redirection header (302),
with a Flash variables.
void
ResponseRequestContextAddon. setModel (JsonObject model)
Replaces the current response model completely.
Methods in org.spincast.core.json that return JsonObject
Modifier and Type
Method and Description
JsonObject
JsonObjectDefault. clear ()
JsonObject
JsonObjectDefault. clone (boolean mutable)
JsonObject
JsonObject. clone (boolean mutable)
Deep copy of the JsonObject
, so any
modification to the original won't affect the
clone, and vice-versa.
JsonObject
JsonManager. cloneJsonObject (JsonObject jsonObject,
boolean mutable)
Deep copy of the JsonObject
, so any
modification to the original won't affect the
clone, and vice-versa.
JsonObject
ToJsonObjectConvertible. convertToJsonObject ()
Converts the object to a JsonObject
.
JsonObject
JsonObjectFactory. create ()
Creates an empty and mutable JsonObject.
JsonObject
JsonManager. create ()
Creates an empty JsonObject
JsonObject
JsonObjectFactory. create (JsonObject objectToClone,
boolean mutable)
Creates an JonObject based on the specified JsonObject.
JsonObject
JsonObjectFactory. create (Map <String ,Object > initialMap,
boolean mutable)
Creates an JonObject based on the specified Map.
JsonObject
JsonManager. enumToFriendlyJsonObject (Enum <?> enumValue)
Convert the enum value to a JsonObject
that
has a ".name" property (the name()
of the enum)
and a ".label" property (the toString()
of the
enum)
JsonObject
JsonManager. fromClasspathFile (String path)
Creates a JsonObject
from a classpath
Json file.
JsonObject
JsonManager. fromFile (File jsonFile)
Creates a JsonObject
from a Json file.
JsonObject
JsonManager. fromFile (String jsonFilePath)
Creates a JsonObject
from the path of
a file, on the file system.
JsonObject
JsonManager. fromInputStream (InputStream inputStream)
Creates a JsonObject
from an inputStream.
JsonObject
JsonManager. fromMap (Map <String ,?> params)
Creates an empty JsonObject
based on the specified Map.
JsonObject
JsonManager. fromMap (Map <String ,?> params,
boolean parseKeysAsJsonPaths)
Creates a JsonObject
based on the specified Map.
JsonObject
JsonManager. fromObject (Object object)
Creates a JsonObject
from a random object..
JsonObject
JsonManager. fromString (String jsonString)
Creates a JsonObject
from a Json
String.
JsonObject
JsonArrayDefault. getArrayFirstJsonObject (int index)
JsonObject
JsonArray. getArrayFirstJsonObject (int index)
Gets the first element (as JsonObject) of a JsonArray
element.
JsonObject
JsonArrayDefault. getArrayFirstJsonObject (int index,
JsonObject defaultValue)
JsonObject
JsonArray. getArrayFirstJsonObject (int index,
JsonObject defaultValue)
Gets the first element (as JsonObject) of a JsonArray
element.
JsonObject
JsonObjectOrArray. getArrayFirstJsonObject (String jsonPath)
Gets the first value (as JsonObject) of a JsonArray
property
of the object, using the JsonPath
to find the array.
JsonObject
JsonObjectArrayBase. getArrayFirstJsonObject (String key)
protected JsonObject
JsonObjectArrayBase. getArrayFirstJsonObject (String key,
boolean parseJsonPath,
boolean hasdefaultElement,
JsonObject defaultElement)
JsonObject
JsonObjectOrArray. getArrayFirstJsonObject (String jsonPath,
JsonObject defaultElement)
Gets the first value (as JsonObject) of a JsonArray
property
of the object, using the JsonPath
to find the array.
JsonObject
JsonObjectArrayBase. getArrayFirstJsonObject (String key,
JsonObject defaultElement)
JsonObject
JsonObjectArrayBase. getArrayFirstJsonObjectNoKeyParsing (String key)
JsonObject
JsonObject. getArrayFirstJsonObjectNoKeyParsing (String key)
Gets the first value (as JsonObject) of a JsonArray
element
.
JsonObject
JsonObjectArrayBase. getArrayFirstJsonObjectNoKeyParsing (String key,
JsonObject defaultElement)
JsonObject
JsonObject. getArrayFirstJsonObjectNoKeyParsing (String key,
JsonObject defaultElement)
Gets the first value (as JsonObject) of a JsonArray
element
.
JsonObject
JsonArrayDefault. getJsonObject (int index)
JsonObject
JsonArray. getJsonObject (int index)
Gets an element as JsonObject
.
JsonObject
JsonArrayDefault. getJsonObject (int index,
JsonObject defaultValue)
JsonObject
JsonArray. getJsonObject (int index,
JsonObject defaultValue)
Gets an element as JsonObject
.
JsonObject
JsonObjectOrArray. getJsonObject (String jsonPath)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObjectArrayBase. getJsonObject (String jsonPath)
protected JsonObject
JsonObjectArrayBase. getJsonObject (String jsonPath,
boolean hasdefaultElement,
JsonObject defaultElement)
protected JsonObject
JsonObjectArrayBase. getJsonObject (String jsonPath,
boolean hasdefaultElement,
JsonObject defaultElement,
boolean parseJsonPath)
JsonObject
JsonObjectOrArray. getJsonObject (String jsonPath,
JsonObject defaultElement)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObjectArrayBase. getJsonObject (String jsonPath,
JsonObject defaultElement)
protected JsonObject
JsonObjectArrayBase. getJsonObjectFromObject (Object object)
JsonObject
JsonObjectArrayBase. getJsonObjectNoKeyParsing (String jsonPath)
JsonObject
JsonObject. getJsonObjectNoKeyParsing (String jsonPath)
Gets an element as JsonObject
.
JsonObject
JsonObjectArrayBase. getJsonObjectNoKeyParsing (String jsonPath,
JsonObject defaultElement)
JsonObject
JsonObject. getJsonObjectNoKeyParsing (String jsonPath,
JsonObject defaultElement)
Gets an element as JsonObject
.
JsonObject
JsonArrayDefault. getJsonObjectOrEmpty (int index)
JsonObject
JsonArray. getJsonObjectOrEmpty (int index)
Gets an element as JsonObject
.
JsonObject
JsonObjectOrArray. getJsonObjectOrEmpty (String jsonPath)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObjectArrayBase. getJsonObjectOrEmpty (String jsonPath)
JsonObject
JsonObjectOrArray. getJsonObjectOrEmpty (String jsonPath,
boolean addIfDoesntExist)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObjectArrayBase. getJsonObjectOrEmpty (String jsonPath,
boolean addIfDoesntExist)
JsonObject
JsonObjectArrayBase. getJsonObjectOrEmptyNoKeyParsing (String jsonPath)
JsonObject
JsonObject. getJsonObjectOrEmptyNoKeyParsing (String jsonPath)
Gets an element as JsonObject
.
JsonObject
JsonObjectDefault. merge (JsonObject jsonObj)
JsonObject
JsonObject. merge (JsonObject jsonObj)
Merges the specified JsonObject
properties in the current
object.
JsonObject
JsonObjectDefault. merge (JsonObject jsonObj,
boolean clone)
JsonObject
JsonObject. merge (JsonObject jsonObj,
boolean clone)
Merges the specified JsonObject
properties in the current
object.
JsonObject
JsonObjectDefault. merge (Map <String ,?> map)
JsonObject
JsonObject. merge (Map <String ,?> map)
Merges all the specified Map elements in the JsonObject.
JsonObject
JsonObjectDefault. merge (Map <String ,?> map,
boolean clone)
JsonObject
JsonObject. merge (Map <String ,?> map,
boolean clone)
Merges all the specified Map elements in the JsonObject.
JsonObject
JsonObjectDefault. merge (ToJsonObjectConvertible obj)
JsonObject
JsonObject. merge (ToJsonObjectConvertible jsonObj)
Transforms the specifie3d object to JsonObject
and merges its properties in the current
object.
protected JsonObject
JsonObjectDefault. putAsIs (String key,
Object value)
JsonObject
JsonObjectDefault. remove (String jsonPath)
Removes a property at JsonPath
from the object.
JsonObject
JsonObjectDefault. removeNoKeyParsing (String key)
JsonObject
JsonObject. removeNoKeyParsing (String key)
Removes a element from the object.
JsonObject
JsonObjectDefault. setNoKeyParsing (String jsonPath,
Object value)
JsonObject
JsonObject. setNoKeyParsing (String key,
Object element)
Sets an element at the specified key, without parsing this
key as a JsonPath
.
JsonObject
JsonObjectDefault. setNoKeyParsing (String jsonPath,
Object value,
boolean clone)
JsonObject
JsonObject. setNoKeyParsing (String key,
Object element,
boolean clone)
Sets an element at the specified key, without parsing this
key as a JsonPath
.
Methods in org.spincast.core.json with parameters of type JsonObject
Modifier and Type
Method and Description
JsonObject
JsonManager. cloneJsonObject (JsonObject jsonObject,
boolean mutable)
Deep copy of the JsonObject
, so any
modification to the original won't affect the
clone, and vice-versa.
JsonObject
JsonObjectFactory. create (JsonObject objectToClone,
boolean mutable)
Creates an JonObject based on the specified JsonObject.
JsonObject
JsonArrayDefault. getArrayFirstJsonObject (int index,
JsonObject defaultValue)
JsonObject
JsonArray. getArrayFirstJsonObject (int index,
JsonObject defaultValue)
Gets the first element (as JsonObject) of a JsonArray
element.
protected JsonObject
JsonObjectArrayBase. getArrayFirstJsonObject (String key,
boolean parseJsonPath,
boolean hasdefaultElement,
JsonObject defaultElement)
JsonObject
JsonObjectOrArray. getArrayFirstJsonObject (String jsonPath,
JsonObject defaultElement)
Gets the first value (as JsonObject) of a JsonArray
property
of the object, using the JsonPath
to find the array.
JsonObject
JsonObjectArrayBase. getArrayFirstJsonObject (String key,
JsonObject defaultElement)
JsonObject
JsonObjectArrayBase. getArrayFirstJsonObjectNoKeyParsing (String key,
JsonObject defaultElement)
JsonObject
JsonObject. getArrayFirstJsonObjectNoKeyParsing (String key,
JsonObject defaultElement)
Gets the first value (as JsonObject) of a JsonArray
element
.
Object
JsonPathUtilsDefault. getElementAtJsonPath (JsonObject obj,
String jsonPath)
Object
JsonPathUtils. getElementAtJsonPath (JsonObject obj,
String jsonPath)
Gets an element from the JsonObject
,
at the specified JsonPath
.
Object
JsonManager. getElementAtJsonPath (JsonObject obj,
String jsonPath)
Gets an element from the JsonObject
at the specified JsonPath
.
Object
JsonPathUtilsDefault. getElementAtJsonPath (JsonObject obj,
String jsonPath,
Object defaultElement)
Object
JsonPathUtils. getElementAtJsonPath (JsonObject obj,
String jsonPath,
Object defaultElement)
Gets an element from the JsonObject
,
at the specified JsonPath
.
Object
JsonManager. getElementAtJsonPath (JsonObject obj,
String jsonPath,
Object defaultElement)
Gets an element from the JsonObject
at the specified JsonPath
.
JsonObject
JsonArrayDefault. getJsonObject (int index,
JsonObject defaultValue)
JsonObject
JsonArray. getJsonObject (int index,
JsonObject defaultValue)
Gets an element as JsonObject
.
protected JsonObject
JsonObjectArrayBase. getJsonObject (String jsonPath,
boolean hasdefaultElement,
JsonObject defaultElement)
protected JsonObject
JsonObjectArrayBase. getJsonObject (String jsonPath,
boolean hasdefaultElement,
JsonObject defaultElement,
boolean parseJsonPath)
JsonObject
JsonObjectOrArray. getJsonObject (String jsonPath,
JsonObject defaultElement)
Gets an element as JsonObject
using the
specified JsonPath
.
JsonObject
JsonObjectArrayBase. getJsonObject (String jsonPath,
JsonObject defaultElement)
JsonObject
JsonObjectArrayBase. getJsonObjectNoKeyParsing (String jsonPath,
JsonObject defaultElement)
JsonObject
JsonObject. getJsonObjectNoKeyParsing (String jsonPath,
JsonObject defaultElement)
Gets an element as JsonObject
.
boolean
JsonPathUtilsDefault. isElementExists (JsonObject root,
String jsonPath)
boolean
JsonPathUtils. isElementExists (JsonObject obj,
String jsonPath)
Does the object contain an element at
the JsonPath
position (even if
null
)?
boolean
JsonManager. isElementExists (JsonObject obj,
String jsonPath)
Does the object contain an element at
the specified JsonPath
(even if
null
)?
boolean
JsonObjectDefault. isEquivalentTo (JsonObject other)
boolean
JsonObject. isEquivalentTo (JsonObject other)
Compares the current JsonObject
to the specified one
and returns true
if they are equivalent.
JsonObject
JsonObjectDefault. merge (JsonObject jsonObj)
JsonObject
JsonObject. merge (JsonObject jsonObj)
Merges the specified JsonObject
properties in the current
object.
JsonObject
JsonObjectDefault. merge (JsonObject jsonObj,
boolean clone)
JsonObject
JsonObject. merge (JsonObject jsonObj,
boolean clone)
Merges the specified JsonObject
properties in the current
object.
protected Object
JsonPathUtilsDefault. processJsonPath (JsonObject root,
String jsonPath,
JsonPathUtilsDefault.JsonPathProcessingType jsonPathProcessingType,
Object valueToPut,
boolean hasDefaultValue,
Object defaultElement)
void
JsonPathUtilsDefault. removeElementAtJsonPath (JsonObject root,
String jsonPath)
void
JsonPathUtils. removeElementAtJsonPath (JsonObject obj,
String jsonPath)
Removes an element at the specified JsonPath
from the
object.
void
JsonManager. removeElementAtJsonPath (JsonObject obj,
String jsonPath)
Removes an element at the specified JsonPath
from the
object.
protected Object
JsonPathUtilsDefault. selectValueUsingJsonPath (JsonObject obj,
String jsonPath,
boolean hasDefaultValue,
Object defaultElement)
Constructors in org.spincast.core.request with parameters of type JsonObject
Constructor and Description
FormDefault (String formName,
JsonObject initialFormData,
JsonManager jsonManager,
SpincastUtils spincastUtils,
ObjectConverter objectConverter,
Dictionary dictionary,
XmlManager xmlManager,
SpincastConfig spincastConfig,
Validators validators,
FormFactory formFactory,
ValidationFactory validationFactory)
Methods in org.spincast.core.templating with parameters of type JsonObject
Modifier and Type
Method and Description
String
TemplatingRequestContextAddon. evaluate (String content,
JsonObject model)
Evaluates some content using the given parameters.
String
TemplatingEngine. evaluate (String content,
JsonObject jsonObject)
Evaluates the content, using the given parameters.
String
TemplatingRequestContextAddon. evaluate (String content,
JsonObject model,
Locale locale)
Evaluates some content using the given parameters.
String
TemplatingEngine. evaluate (String content,
JsonObject jsonObject,
Locale locale)
Evaluates the content, using the given parameters.
String
TemplatingRequestContextAddon. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject model)
Renders a template using the given parameters.
String
TemplatingEngine. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject jsonObject)
Evaluates a template using the parameters specified
as a JsonObject
.
String
TemplatingRequestContextAddon. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject model,
Locale locale)
Renders a template usgin the given parameters.
String
TemplatingEngine. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject jsonObject,
Locale locale)
Evaluates a template using the parameters specified
as a JsonObject
.
String
TemplatingRequestContextAddon. fromTemplate (String templatePath,
JsonObject model)
Renders a template using the given parameters.
String
TemplatingEngine. fromTemplate (String templatePath,
JsonObject jsonObject)
Evaluates a template using the parameters specified
as a JsonObject
.
String
TemplatingRequestContextAddon. fromTemplate (String templatePath,
JsonObject model,
Locale locale)
Renders a template usgin the given parameters.
String
TemplatingEngine. fromTemplate (String templatePath,
JsonObject jsonObject,
Locale locale)
Evaluates a template using the parameters specified
as a JsonObject
.
Methods in org.spincast.plugins.pebble with parameters of type JsonObject
Modifier and Type
Method and Description
String
SpincastPebbleTemplatingEngine. evaluate (String content,
JsonObject jsonObject)
String
SpincastPebbleTemplatingEngine. evaluate (String content,
JsonObject jsonObject,
Locale locale)
String
SpincastPebbleTemplatingEngine. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject jsonObject)
String
SpincastPebbleTemplatingEngine. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject jsonObject,
Locale locale)
String
SpincastPebbleTemplatingEngine. fromTemplate (String templatePath,
JsonObject jsonObject)
String
SpincastPebbleTemplatingEngine. fromTemplate (String templatePath,
JsonObject jsonObject,
Locale locale)
protected String
SpincastPebbleTemplatingEngine. parse (String htmlOrPath,
JsonObject paramsAsJsonObject,
Map <String ,Object > params,
boolean isTemplate,
boolean isClasspathPath,
Locale locale)
Methods in org.spincast.plugins.response with parameters of type JsonObject
Modifier and Type
Method and Description
void
SpincastResponseRequestContextAddon. redirect (FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
void
SpincastResponseRequestContextAddon. redirect (String newUrl,
boolean permanently,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
void
SpincastResponseRequestContextAddon. redirect (String newUrl,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
void
SpincastResponseRequestContextAddon. redirect (String newUrl,
int specific3xxCode,
FlashMessageLevel flashMessageType,
String flashMessageText,
JsonObject flashMessageVariables)
void
SpincastResponseRequestContextAddon. redirect (String newUrl,
JsonObject flashMessageVariables)
void
SpincastResponseRequestContextAddon. setModel (JsonObject model)
Methods in org.spincast.plugins.session with parameters of type JsonObject
Modifier and Type
Method and Description
SpincastSession
SpincastSessionManagerDefault. createSession (String sessionId,
Instant creationDate,
Instant modificationDate,
JsonObject attributes)
SpincastSession
SpincastSessionManager. createSession (String sessionId,
Instant creationDate,
Instant modificationDate,
JsonObject attributes)
Creates a session from infos, with existing
attributes if any (null
otherwise)
SpincastSession
SpincastSessionFactory. createSession (String sessionId,
Instant creationDate,
Instant modificationDate,
JsonObject attributes)
Creates a session from saved infos.
Constructors in org.spincast.plugins.session with parameters of type JsonObject
Constructor and Description
SpincastSessionDefault (String sessionId,
Instant creationDate,
Instant modificationDate,
JsonObject attributes,
boolean setAsDirty,
boolean isNew,
JsonManager jsonManager,
SpincastSessionManager spincastSessionManager)
SpincastSessionDefault (String sessionId,
Instant creationDate,
Instant modificationDate,
JsonObject attributes,
boolean setAsDirty,
JsonManager jsonManager,
SpincastSessionManager spincastSessionManager)
SpincastSessionDefault (String sessionId,
Instant creationDate,
Instant modificationDate,
JsonObject attributes,
JsonManager jsonManager,
SpincastSessionManager spincastSessionManager)
Methods in org.spincast.plugins.templatingaddon with parameters of type JsonObject
Modifier and Type
Method and Description
String
SpincastTemplatingRequestContextAddon. evaluate (String content,
JsonObject model)
String
SpincastTemplatingRequestContextAddon. evaluate (String content,
JsonObject model,
Locale locale)
String
SpincastTemplatingRequestContextAddon. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject model)
String
SpincastTemplatingRequestContextAddon. fromTemplate (String templatePath,
boolean isClasspathPath,
JsonObject model,
Locale locale)
String
SpincastTemplatingRequestContextAddon. fromTemplate (String templatePath,
JsonObject model)
String
SpincastTemplatingRequestContextAddon. fromTemplate (String templatePath,
JsonObject model,
Locale locale)
Copyright © 2019. All rights reserved.