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>
ExtendsXFormPropertiesand also implementsListso 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 ofJsonPathEntrythat 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:
addin interfaceCollection<JsonPathEntry>- Specified by:
addin interfaceList<JsonPathEntry>
-
add
public void add(int index, JsonPathEntry element)- Specified by:
addin interfaceList<JsonPathEntry>
-
addAll
public boolean addAll(Collection<? extends JsonPathEntry> c)
- Specified by:
addAllin interfaceCollection<JsonPathEntry>- Specified by:
addAllin interfaceList<JsonPathEntry>
-
addAll
public boolean addAll(int index, Collection<? extends JsonPathEntry> c)- Specified by:
addAllin interfaceList<JsonPathEntry>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<JsonPathEntry>- Specified by:
clearin interfaceList<JsonPathEntry>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<JsonPathEntry>- Specified by:
containsin interfaceList<JsonPathEntry>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<JsonPathEntry>- Specified by:
containsAllin interfaceList<JsonPathEntry>
-
copyPersistent
public PersistentXFormProperties copyPersistent()
-
get
public JsonPathEntry get(int index)
- Specified by:
getin interfaceList<JsonPathEntry>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOfin interfaceList<JsonPathEntry>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<JsonPathEntry>- Specified by:
isEmptyin interfaceList<JsonPathEntry>
-
iterator
public Iterator<JsonPathEntry> iterator()
- Specified by:
iteratorin interfaceCollection<JsonPathEntry>- Specified by:
iteratorin interfaceIterable<JsonPathEntry>- Specified by:
iteratorin interfaceList<JsonPathEntry>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<JsonPathEntry>
-
listIterator
public ListIterator<JsonPathEntry> listIterator()
- Specified by:
listIteratorin interfaceList<JsonPathEntry>
-
listIterator
public ListIterator<JsonPathEntry> listIterator(int index)
- Specified by:
listIteratorin interfaceList<JsonPathEntry>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<JsonPathEntry>- Specified by:
removein interfaceList<JsonPathEntry>
-
remove
public JsonPathEntry remove(int index)
- Specified by:
removein interfaceList<JsonPathEntry>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<JsonPathEntry>- Specified by:
removeAllin interfaceList<JsonPathEntry>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<JsonPathEntry>- Specified by:
retainAllin interfaceList<JsonPathEntry>
-
set
public JsonPathEntry set(int index, JsonPathEntry element)
- Specified by:
setin interfaceList<JsonPathEntry>
-
size
public int size()
- Specified by:
sizein interfaceCollection<JsonPathEntry>- Specified by:
sizein interfaceList<JsonPathEntry>
-
subList
public List<JsonPathEntry> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceList<JsonPathEntry>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<JsonPathEntry>- Specified by:
toArrayin interfaceList<JsonPathEntry>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<JsonPathEntry>- Specified by:
toArrayin interfaceList<JsonPathEntry>
-
fromJson
public static PersistentXFormProperties fromJson(com.alibaba.fastjson.JSONObject json)
-
-