Uses of Class
com.composum.sling.core.util.JsonUtil.JsonProperty
-
Packages that use JsonUtil.JsonProperty Package Description com.composum.sling.core.util -
-
Uses of JsonUtil.JsonProperty in com.composum.sling.core.util
Methods in com.composum.sling.core.util that return JsonUtil.JsonProperty Modifier and Type Method Description static JsonUtil.JsonProperty
JsonUtil. parseJsonProperty(com.google.gson.stream.JsonReader reader, String name)
Parses a single property of the first element of an array and returns the result as a JSON POJO object.Methods in com.composum.sling.core.util with parameters of type JsonUtil.JsonProperty Modifier and Type Method Description static boolean
JsonUtil. importJsonProperty(javax.jcr.ValueFactory factory, org.apache.sling.api.resource.Resource resource, JsonUtil.JsonProperty property, MappingRules mapping)
Changes the property specified by the JSON POJO of the given node if the change rule is appropriate to the current state of the node (changes are made only if not only 'extend' is specified as rule or if the property is new) and if the property filter of the rules accepts the property.static String
JsonUtil. parseJsonString(com.google.gson.stream.JsonReader reader, JsonUtil.JsonProperty property)
The parser for a JSON string value with an optional type hint ('{type}...') as the values prefix.static boolean
JsonUtil. setJsonProperty(javax.jcr.Node node, JsonUtil.JsonProperty property, MappingRules mapping)
Creates or updates one property at a JCR node.Method parameters in com.composum.sling.core.util with type arguments of type JsonUtil.JsonProperty Modifier and Type Method Description static org.apache.sling.api.resource.Resource
JsonUtil. createResource(org.apache.sling.api.resource.ResourceResolver resolver, String path, Map<String,JsonUtil.JsonProperty> propertiesSet, javax.jcr.ValueFactory factory, MappingRules mapping)
Creates the resource parsed from JSON.
-