Class GomNamedEntry
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomNamedEntry
- All Implemented Interfaces:
GomCheckable
,GomElement
,GomUidProviding
,Serializable
@NonExtendable
public class GomNamedEntry
extends AbstractGomElement
implements GomCheckable, GomUidProviding
An entry for GOM lists with simple, named entries.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Return the default tag for a gom element.getName()
Returns the name of this entry.getUid()
Returns the uid of this entry.void
Sets the namevoid
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
-
Constructor Details
-
GomNamedEntry
Convenient constructor.- Parameters:
tag
- The entries tag name.name
- The name entry.- Since:
- 4.0
-
-
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.
-
getName
Returns the name of this entry.- Since:
- 3.0
-
getUid
Returns the uid of this entry.- Specified by:
getUid
in interfaceGomUidProviding
- Returns:
- The UID or
null
. - Since:
- 5.2.902
-
setName
Sets the name- Since:
- 3.0
-
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, must not benull
.- Throws:
GomValidationError
- If the element is not plausible wrt. its context.
-