Class DefaultGomLangInfo
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.DefaultGomLangInfo
- All Implemented Interfaces:
GomCheckable
,GomElement
,GomLangInfo
,Serializable
- Direct Known Subclasses:
GomButtonLangInfo
,GomDateLangInfo
,GomExpressionLangInfo
,GomLabeledValueLangInfo
,GomNumberLangInfo
Default implementation of a GOM information object.
- Since:
- 4.0.17
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Hash code storage object.Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor for parsing.Convenience constructor.DefaultGomLangInfo
(String lang, String label, String description) Convenience constructor for direct usage. -
Method Summary
Modifier and TypeMethodDescriptioncloneAndComplete
(GomLangInfo source) Clones this language information container and completes missing information by the given source.protected DefaultGomLangInfo.GomLangHashCode
Create this object's hash code.protected boolean
equals
(DefaultGomLangInfo other, boolean ignoreLanguage) Equality check implementation on a concrete language information implementation.boolean
Equality check implementation that ignores the language.boolean
Equality check implementation.protected String
Provides the default tag.Provides the stored description.protected final HashCode
Provide this information object's hashcode.getLabel()
Provides the stored label.getLang()
Provides the language of this information.int
hashCode()
Hash code implementation.boolean
isEmpty()
Indicates, whether no language information have been defined.void
setDescription
(String description) Sets the description.void
Sets the label.void
setLang
(LanguageAbbreviation lang) Sets the language for this information.void
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, finalize, getClass, 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
Default tag.- Since:
- 4.0.17
- See Also:
-
-
Constructor Details
-
DefaultGomLangInfo
public DefaultGomLangInfo()Constructor for parsing.- Since:
- 4.0.17
-
DefaultGomLangInfo
Convenience constructor. Assumes to be used under standard tag name LANGINFO!- Since:
- 4.0.17
-
DefaultGomLangInfo
Convenience constructor for direct usage. Assumes to be used under standard tag name LANGINFO!- Since:
- 4.0.17
-
-
Method Details
-
getDefaultTag
Provides the default tag.- Specified by:
getDefaultTag
in classAbstractGomElement
- Returns:
- The elements default tag.
- Since:
- 4.0.17
-
getLang
Provides the language of this information.- Specified by:
getLang
in interfaceGomLangInfo
- Returns:
- The language abbreviation object.
- Since:
- 4.0.17
-
getDescription
Provides the stored description.- Specified by:
getDescription
in interfaceGomLangInfo
- Returns:
- The description.
- Since:
- 4.0.17
-
getLabel
Provides the stored label.- Specified by:
getLabel
in interfaceGomLangInfo
- Returns:
- The label.
- Since:
- 4.0.17
-
setLang
Sets the language for this information.- Specified by:
setLang
in interfaceGomLangInfo
- Parameters:
lang
- The language abbreviation object.- Since:
- 4.0.17
-
setDescription
Sets the description.- Specified by:
setDescription
in interfaceGomLangInfo
- Parameters:
description
- The description.- Since:
- 4.0.17
-
setLabel
Sets the label.- Specified by:
setLabel
in interfaceGomLangInfo
- Parameters:
label
- The label.- Since:
- 4.0.17
-
cloneAndComplete
Clones this language information container and completes missing information by the given source.- Specified by:
cloneAndComplete
in interfaceGomLangInfo
- Parameters:
source
- A source language information container.- Returns:
- The cloned container.
- Since:
- 4.0.17
-
equals
Equality check implementation that ignores the language. -
equals
Equality check implementation.- Specified by:
equals
in interfaceGomLangInfo
- Parameters:
obj
- The object to compare to.ignoreLanguage
-true
, to ignore the language.- Returns:
true
, if considered equal.- Since:
- 4.0.17
-
equals
Equality check implementation on a concrete language information implementation.- Parameters:
other
- The object to compare to.ignoreLanguage
-true
, to ignore the language.- Since:
- 4.0.17
-
getHashCode
Provide this information object's hashcode.- Returns:
- A hash code.
- Since:
- 4.0.93
-
createHashCode
Create this object's hash code.- Returns:
- The hash code.
- Since:
- 4.0.93
-
hashCode
public int hashCode()Hash code implementation. -
isEmpty
public boolean isEmpty()Indicates, whether no language information have been defined.- Specified by:
isEmpty
in interfaceGomLangInfo
- Returns:
true
, if no language information have been defined.- Since:
- 4.0.17
-
verify
Verify the element to be fulfill its syntactic constraints.- Specified by:
verify
in interfaceGomCheckable
- Throws:
IllegalStateException
- If the element is not correctly set up.- Since:
- 5.2.21
-
validate
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.- Since:
- 5.2.21
-