Package org.bedework.jsforj.impl.values
Class JSPatchObjectImpl
- java.lang.Object
-
- org.bedework.jsforj.impl.values.JSValueImpl
-
- org.bedework.jsforj.impl.values.JSCalendarObjectImpl
-
- org.bedework.jsforj.impl.values.JSPatchObjectImpl
-
- All Implemented Interfaces:
JSCalendarObject,JSPatchObject,JSValue
- Direct Known Subclasses:
JSOverrideImpl
public class JSPatchObjectImpl extends JSCalendarObjectImpl implements JSPatchObject
User: mike Date: 4/21/20 Time: 18:36
-
-
Field Summary
-
Fields inherited from class org.bedework.jsforj.impl.values.JSValueImpl
factory, type
-
-
Constructor Summary
Constructors Constructor Description JSPatchObjectImpl(String type, com.fasterxml.jackson.databind.JsonNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringmakePath(String... names)<T extends JSValue>
JSProperty<T>newOverrideProperty(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, String type, String... names)Create a property of the given type.voidsetNull(String... names)Sets the named property to have a value of null.JSProperty<?>setOverrideProperty(boolean val, String... names)Set the value for an UnsignedInteger type propertyJSProperty<?>setOverrideProperty(String val, String... names)Set the value for a string type propertyJSProperty<?>setOverrideProperty(JSUnsignedInteger val, String... names)Set the value for an UnsignedInteger type propertyJSProperty<?>setOverrideProperty(JSValue val, String... names)Set the value for a property-
Methods inherited from class org.bedework.jsforj.impl.values.JSCalendarObjectImpl
getAlerts, getCategories, getDescription, getExcludedRecurrenceRules, getKeywords, getLinks, getLocations, getOverrides, getParticipants, getRecurrenceId, getRecurrenceRules, getRelatedTo, getReplyTo, getTitle, getUid, setDescription, setRecurrenceId, setTitle, setUid
-
Methods inherited from class org.bedework.jsforj.impl.values.JSValueImpl
assertArray, assertBooleanNode, assertIntNode, assertObject, assertStringNode, clear, equals, getBooleanProperty, getBooleanValue, getChanged, getFactory, getNode, getObjectType, getOverrideGenerated, getOwner, getParentProperty, getProperties, getProperty, getProperty, getPropertyValue, getStringProperty, getStringValue, getType, getUnsignedIntegerProperty, getValue, hasChanges, hasProperty, isString, makeProperty, makeProperty, markOverrideGenerated, newProperty, preWrite, removeProperty, setMasterCopy, setOwner, setParentProperty, setProperty, setProperty, setProperty, setProperty, setProperty, writeValue, writeValueAsString, writeValueAsStringFormatted
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.jsforj.model.values.JSValue
clear, copy, getBooleanProperty, getBooleanValue, getChanged, getNode, getObjectType, getOverrideGenerated, getOwner, getParentProperty, getProperties, getProperty, getProperty, getPropertyValue, getStringProperty, getStringValue, getType, getUnsignedIntegerProperty, getValue, hasChanges, hasProperty, isString, makeProperty, markOverrideGenerated, newProperty, preWrite, removeProperty, setProperty, setProperty, setProperty, setProperty, setProperty, writeValue, writeValueAsString, writeValueAsStringFormatted
-
-
-
-
Constructor Detail
-
JSPatchObjectImpl
public JSPatchObjectImpl(String type, com.fasterxml.jackson.databind.JsonNode node)
-
-
Method Detail
-
setNull
public void setNull(String... names)
Description copied from interface:JSPatchObjectSets the named property to have a value of null. This is only used for patch objects to signify the removal of a property by an override.- Specified by:
setNullin interfaceJSPatchObject- Parameters:
names- of properties - generates a path
-
setOverrideProperty
public JSProperty<?> setOverrideProperty(JSValue val, String... names)
Description copied from interface:JSPatchObjectSet the value for a property- Specified by:
setOverridePropertyin interfaceJSPatchObject- Parameters:
val- the property value - non nullnames- the property names - non null - forms path- Returns:
- the property
-
setOverrideProperty
public JSProperty<?> setOverrideProperty(String val, String... names)
Description copied from interface:JSPatchObjectSet the value for a string type property- Specified by:
setOverridePropertyin interfaceJSPatchObject- Parameters:
val- the property value - non nullnames- the property names - non null - forms path- Returns:
- the property
-
setOverrideProperty
public JSProperty<?> setOverrideProperty(JSUnsignedInteger val, String... names)
Description copied from interface:JSPatchObjectSet the value for an UnsignedInteger type property- Specified by:
setOverridePropertyin interfaceJSPatchObject- Parameters:
val- the property value - non nullnames- the property names - non null - forms path- Returns:
- the property
-
setOverrideProperty
public JSProperty<?> setOverrideProperty(boolean val, String... names)
Description copied from interface:JSPatchObjectSet the value for an UnsignedInteger type property- Specified by:
setOverridePropertyin interfaceJSPatchObject- Parameters:
val- the property value - non nullnames- the property names - non null - forms path- Returns:
- the property
-
newOverrideProperty
public <T extends JSValue> JSProperty<T> newOverrideProperty(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, String type, String... names)
Description copied from interface:JSPatchObjectCreate a property of the given type. NOT added or set- Specified by:
newOverridePropertyin interfaceJSPatchObject- Parameters:
typeRef- the property typereftype- the property typenames- the property names - non null- Returns:
- the property
-
-