Class GomIncludeOptions
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomIncludeOptions
- All Implemented Interfaces:
OptionFactoryProvider
,GomCheckable
,GomElement
,GomIncludeConfiguration
,GomPolymorphic
,Serializable
@NonExtendable
public class GomIncludeOptions
extends AbstractGomElement
implements GomIncludeConfiguration, GomPolymorphic, OptionFactoryProvider, GomCheckable
GOM definition for inclusion. The enumeration
GomIncludeOptions.IncludeVariant
defines the supported types of includes.- Since:
- 4.2.3
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Empty configuration.static enum
Variants to includeNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Return the default tag for a gom element.Get the GuiXML to be included.Language-dependent expressions for producing labelsGet the list of mixed in elements.Get a factory for accessing options defined by the include mechanism.getType()
Type of inclusionvoid
setType
(IncludeType value) Sets the type of inclusionvoid
validate
(GomCheckable.Context context) Validate the element against the given context.void
verify()
Verify the element to be fulfill its syntactic constraints.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Field Details
-
TAG
The tag of this component- Since:
- 4.2.3
- See Also:
-
-
Constructor Details
-
GomIncludeOptions
public GomIncludeOptions()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in classAbstractGomElement
- Returns:
- The elements default tag.
-
getType
Type of inclusion- Since:
- 4.2.3
-
setType
Sets the type of inclusion- Since:
- 4.2.3
-
getLabels
Language-dependent expressions for producing labels- Since:
- 4.2.5
-
getMixins
Description copied from interface:GomPolymorphic
Get the list of mixed in elements. Note that the order of mixins returned in the list defines the mixin being chosen for a value. That is, if two or more mixins use the same name for an element, the first mixin of the list will win.- Specified by:
getMixins
in interfaceGomPolymorphic
- Returns:
- A list of mixins.
- Throws:
ConfigurationException
- if the configuration for providing mixins is incorrect.
-
getGuiXml
Description copied from interface:GomIncludeConfiguration
Get the GuiXML to be included.- Specified by:
getGuiXml
in interfaceGomIncludeConfiguration
- Returns:
- The included GuiXML.
-
verify
Description copied from interface:GomCheckable
Verify the element to be fulfill its syntactic constraints.- Specified by:
verify
in interfaceGomCheckable
- 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.
-
getOptionFactory
Get a factory for accessing options defined by the include mechanism.- Specified by:
getOptionFactory
in interfaceOptionFactoryProvider
- Returns:
- The factory.
-