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
Nested ClassesModifier and TypeClassDescriptionclassHash code storage object.Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor 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.GomLangHashCodeCreate this object's hash code.protected booleanequals(DefaultGomLangInfo other, boolean ignoreLanguage) Equality check implementation on a concrete language information implementation.booleanEquality check implementation that ignores the language.booleanEquality check implementation.protected StringProvides the default tag.Provides the stored description.protected final HashCodeProvide this information object's hashcode.getLabel()Provides the stored label.getLang()Provides the language of this information.inthashCode()Hash code implementation.booleanisEmpty()Indicates, whether no language information have been defined.voidsetDescription(String description) Sets the description.voidSets the label.voidsetLang(LanguageAbbreviation lang) Sets the language for this information.voidvalidate(GomCheckable.Context context) Validate the element against the given context.voidverify()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, setIncludeConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getDefaultTagin classAbstractGomElement- Returns:
- The elements default tag.
- Since:
- 4.0.17
-
getLang
Provides the language of this information.- Specified by:
getLangin interfaceGomLangInfo- Returns:
- The language abbreviation object.
- Since:
- 4.0.17
-
getDescription
Provides the stored description.- Specified by:
getDescriptionin interfaceGomLangInfo- Returns:
- The description.
- Since:
- 4.0.17
-
getLabel
Provides the stored label.- Specified by:
getLabelin interfaceGomLangInfo- Returns:
- The label.
- Since:
- 4.0.17
-
setLang
Sets the language for this information.- Specified by:
setLangin interfaceGomLangInfo- Parameters:
lang- The language abbreviation object.- Since:
- 4.0.17
-
setDescription
Sets the description.- Specified by:
setDescriptionin interfaceGomLangInfo- Parameters:
description- The description.- Since:
- 4.0.17
-
setLabel
Sets the label.- Specified by:
setLabelin 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:
cloneAndCompletein 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:
equalsin 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:
isEmptyin 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:
verifyin 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:
validatein interfaceGomCheckable- Parameters:
context- The context to validate for, must not benull.- Throws:
GomValidationError- If the element is not plausible wrt. its context.- Since:
- 5.2.21
-