Class GomQuery
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList<GomParamImpl>
de.espirit.firstspirit.access.store.templatestore.gom.GomQuery
- All Implemented Interfaces:
GomCheckable
,GomElement
,GomList<GomParamImpl>
,GomUidProviding
,GomUidTypeProviding
,Serializable
,Cloneable
,Iterable<GomParamImpl>
,Collection<GomParamImpl>
,List<GomParamImpl>
,RandomAccess
@NonExtendable
public class GomQuery
extends AbstractGomList<GomParamImpl>
implements GomCheckable, GomUidProviding, GomUidTypeProviding
GOM representation of a query
- Since:
- 4.2.410
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the default tag name of the component.Map<String,
Class<? extends GomElement>> Get a list of mappings from tag name to class supported by this list.getName()
Uid of the query@Nullable String
getUid()
The UID this element holds as a reference.TheIDProvider.UidType
of the references contained.void
Sets the uid of the queryvoid
validate
(GomCheckable.Context context) Validate the element against the given context.void
verify()
Check if the list is marked as mandatory (not inherited!)Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Field Details
-
TAG
The tag of this component- Since:
- 4.2.410
- See Also:
-
-
Constructor Details
-
GomQuery
public GomQuery()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomList
Returns the default tag name of the component.- Specified by:
getDefaultTag
in classAbstractGomList<GomParamImpl>
-
getName
Uid of the query- Since:
- 4.2.410
-
setName
Sets the uid of the query- Since:
- 4.2.410
-
getGomElementMappings
Description copied from interface:GomList
Get a list of mappings from tag name to class supported by this list.- Convention:
- The mapping shall only be created on demand and not change at runtime.
- Specified by:
getGomElementMappings
in interfaceGomList<GomParamImpl>
- Overrides:
getGomElementMappings
in classAbstractGomList<GomParamImpl>
- Returns:
- The list of child tags.
-
verify
Description copied from class:AbstractGomList
Check if the list is marked as mandatory (not inherited!) and not empty- Specified by:
verify
in interfaceGomCheckable
- Overrides:
verify
in classAbstractGomList<GomParamImpl>
- Throws:
IllegalStateException
- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckable
Validate the element against the given context.- Specified by:
validate
in interfaceGomCheckable
- Parameters:
context
- The context to validate for.- Throws:
GomValidationError
- If the element is not plausible wrt. its context.
-
getUid
Description copied from interface:GomUidProviding
The UID this element holds as a reference.- Specified by:
getUid
in interfaceGomUidProviding
- Returns:
- The UID or
null
.
-
getUidType
Description copied from interface:GomUidTypeProviding
TheIDProvider.UidType
of the references contained.- Specified by:
getUidType
in interfaceGomUidTypeProviding
- Returns:
- The associated uid type.
-