Class GomFilterList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList<GomFilterEntry>
de.espirit.firstspirit.access.store.templatestore.gom.GomFilterList
- All Implemented Interfaces:
GomElement
,GomList<GomFilterEntry>
,Serializable
,Cloneable
,Iterable<GomFilterEntry>
,Collection<GomFilterEntry>
,List<GomFilterEntry>
,RandomAccess
GOM representation of a list of filters
- Since:
- 4.2.9
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The tag for allowed entriesstatic final String
The tag for hidden entriesstatic final String
The tag of this componentFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull GomFilterList
allow
(GomFilterEntry.FilterType filterType) Allow the given filter type.boolean
allows
(GomFilterEntry.FilterType filterType) Indicates if the given filter type is allowedget
(int index) protected 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.@NotNull GomFilterList
hide
(GomFilterEntry.FilterType filterType) Hide the given filter type.boolean
hides
(GomFilterEntry.FilterType filterType) Indicates if the given filter type is hiddenMethods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomList
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration, verify
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, 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, 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.9
- See Also:
-
ENTRY_TAG_ALLOW
The tag for allowed entries- Since:
- 4.2.9
- See Also:
-
ENTRY_TAG_HIDE
The tag for hidden entries- Since:
- 4.2.9
- See Also:
-
-
Constructor Details
-
GomFilterList
public GomFilterList()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomList
Returns the default tag name of the component.- Specified by:
getDefaultTag
in classAbstractGomList<GomFilterEntry>
-
get
- Specified by:
get
in interfaceList<GomFilterEntry>
- Overrides:
get
in classArrayList<GomFilterEntry>
-
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<GomFilterEntry>
- Overrides:
getGomElementMappings
in classAbstractGomList<GomFilterEntry>
- Returns:
- The list of child tags.
-
allow
Allow the given filter type. May be used in a builder-style pattern.- Parameters:
filterType
- the filter type to add- Returns:
- the current instance after adding the filter type
- Since:
- 4.2.9
-
hide
Hide the given filter type. May be used in a builder-style pattern.- Parameters:
filterType
- the filter type to hide- Returns:
- the current instance after hiding the filter type
- Since:
- 4.2.9
-
allows
Indicates if the given filter type is allowed- Parameters:
filterType
- the filter type to check- Since:
- 5.0
-
hides
Indicates if the given filter type is hidden- Parameters:
filterType
- the filter type to check- Since:
- 5.0
-