Package de.xima.fc.mdl.json
Class PersistentXFormProperties
- java.lang.Object
-
- de.xima.fc.form.common.models.XFormProperties
-
- de.xima.fc.mdl.json.PersistentXFormProperties
-
- All Implemented Interfaces:
Serializable
,Iterable<JsonPathEntry>
,Collection<JsonPathEntry>
,List<JsonPathEntry>
public final class PersistentXFormProperties extends XFormProperties implements List<JsonPathEntry>
ExtendsXFormProperties
and also implementsList
so that it can be used as an entity field in JPA. You should not use any of the list methods directly, they are intended only for the persistence provider. When the persistence provider accesses the list, this class converts the properties JSON to a list ofJsonPathEntry
that can be saved in the database.- Since:
- 8.2.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.form.common.models.XFormProperties
properties
-
-
Constructor Summary
Constructors Constructor Description PersistentXFormProperties()
-
Method Summary
-
Methods inherited from class de.xima.fc.form.common.models.XFormProperties
copy, equals, getErrorStyle, getFormDescription, getFormTitle, getMaxBackups, getPageMax, getPageMin, getPageResponsive, getProperties, getProperty, getProperty, getSeoAuthor, getSeoCopyright, getSeoDescription, getSeoKeywords, getSeoPublisher, getSeoRobots, getTheme, hashCode, isAttributeW3CMode, isElementClassNameMode, isLegacyUseOptionTextForAutocomplete, isModernTheme, isPlaceholderPreview, isValidateSubmitAction, setAttributeW3CMode, setElementClassNameMode, setErrorStyle, setFormDescription, setFormTitle, setLegacyUseOptionTextForAutocomplete, setMaxBackups, setModernTheme, setPageMax, setPageMin, setPageResponsive, setPlaceholderPreview, setProperty, setProperty, setSeoAuthor, setSeoCopyright, setSeoDescription, setSeoKeywords, setSeoPublisher, setSeoRobots, setTheme, setValidateSubmitAction, toJson
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
add
public boolean add(JsonPathEntry jsonPathEntry)
- Specified by:
add
in interfaceCollection<JsonPathEntry>
- Specified by:
add
in interfaceList<JsonPathEntry>
-
add
public void add(int index, JsonPathEntry element)
- Specified by:
add
in interfaceList<JsonPathEntry>
-
addAll
public boolean addAll(Collection<? extends JsonPathEntry> c)
- Specified by:
addAll
in interfaceCollection<JsonPathEntry>
- Specified by:
addAll
in interfaceList<JsonPathEntry>
-
addAll
public boolean addAll(int index, Collection<? extends JsonPathEntry> c)
- Specified by:
addAll
in interfaceList<JsonPathEntry>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<JsonPathEntry>
- Specified by:
clear
in interfaceList<JsonPathEntry>
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<JsonPathEntry>
- Specified by:
contains
in interfaceList<JsonPathEntry>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<JsonPathEntry>
- Specified by:
containsAll
in interfaceList<JsonPathEntry>
-
copyPersistent
public PersistentXFormProperties copyPersistent()
-
get
public JsonPathEntry get(int index)
- Specified by:
get
in interfaceList<JsonPathEntry>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interfaceList<JsonPathEntry>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<JsonPathEntry>
- Specified by:
isEmpty
in interfaceList<JsonPathEntry>
-
iterator
public Iterator<JsonPathEntry> iterator()
- Specified by:
iterator
in interfaceCollection<JsonPathEntry>
- Specified by:
iterator
in interfaceIterable<JsonPathEntry>
- Specified by:
iterator
in interfaceList<JsonPathEntry>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<JsonPathEntry>
-
listIterator
public ListIterator<JsonPathEntry> listIterator()
- Specified by:
listIterator
in interfaceList<JsonPathEntry>
-
listIterator
public ListIterator<JsonPathEntry> listIterator(int index)
- Specified by:
listIterator
in interfaceList<JsonPathEntry>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<JsonPathEntry>
- Specified by:
remove
in interfaceList<JsonPathEntry>
-
remove
public JsonPathEntry remove(int index)
- Specified by:
remove
in interfaceList<JsonPathEntry>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceCollection<JsonPathEntry>
- Specified by:
removeAll
in interfaceList<JsonPathEntry>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceCollection<JsonPathEntry>
- Specified by:
retainAll
in interfaceList<JsonPathEntry>
-
set
public JsonPathEntry set(int index, JsonPathEntry element)
- Specified by:
set
in interfaceList<JsonPathEntry>
-
size
public int size()
- Specified by:
size
in interfaceCollection<JsonPathEntry>
- Specified by:
size
in interfaceList<JsonPathEntry>
-
subList
public List<JsonPathEntry> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<JsonPathEntry>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<JsonPathEntry>
- Specified by:
toArray
in interfaceList<JsonPathEntry>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceCollection<JsonPathEntry>
- Specified by:
toArray
in interfaceList<JsonPathEntry>
-
fromJson
public static PersistentXFormProperties fromJson(com.alibaba.fastjson.JSONObject json)
-
-