de.espirit.firstspirit.access.store.templatestore.gom
Class AbstractGomLangInfoProvider

java.lang.Object
  extended by de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
      extended by de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomLangInfoProvider
All Implemented Interfaces:
GomElement, GomLangInfoProvider, Serializable
Direct Known Subclasses:
GomLabeledValueEntry

public abstract class AbstractGomLangInfoProvider
extends AbstractGomElement
implements GomLangInfoProvider

Abstract implementation of a language information provider.

Since:
4.0.17
See Also:
Serialized Form

Constructor Summary
AbstractGomLangInfoProvider()
           
 
Method Summary
 String description(String lang)
          Resolve the description for the given language or fallback.
 String getDescription()
          Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).getDescription() instead
 String getLabel()
          Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).getLabel() instead
 DefaultGomLangInfos getLangInfos()
          Get the container of language information stored for this element.
 String label(String lang)
          Resolve the label for the given language or fallback.
 void setDescription(String description)
          Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).setDescription(String) instead
 void setLabel(String label)
          Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).setLabel(String) instead
protected  void setLabelAndDescription(String lang, String label, String description)
           
 
Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getDefaultTag, 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, validate
 

Constructor Detail

AbstractGomLangInfoProvider

public AbstractGomLangInfoProvider()
Method Detail

getLangInfos

public DefaultGomLangInfos getLangInfos()
Description copied from interface: GomLangInfoProvider
Get the container of language information stored for this element.

Specified by:
getLangInfos in interface GomLangInfoProvider
Returns:
The language information container.
Since:
4.0.17

label

public String label(String lang)
Description copied from interface: GomLangInfoProvider
Resolve the label for the given language or fallback.

Specified by:
label in interface GomLangInfoProvider
Parameters:
lang - The language abbreviation.
Returns:
The label or null, if no label could be found.
Since:
4.0.17

description

public String description(String lang)
Description copied from interface: GomLangInfoProvider
Resolve the description for the given language or fallback.

Specified by:
description in interface GomLangInfoProvider
Parameters:
lang - The langauge abbreviation.
Returns:
The description otr null, if no description could be found.
Since:
4.0.17

getLabel

@Deprecated
public String getLabel()
Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).getLabel() instead

Since:
4.0.17

setLabel

@Deprecated
public void setLabel(String label)
Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).setLabel(String) instead

Since:
4.0.17

getDescription

@Deprecated
public String getDescription()
Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).getDescription() instead

Since:
4.0.17

setDescription

@Deprecated
public void setDescription(String description)
Deprecated. since 4.0.17 - use AbstractGomLangInfoProvider.getLangInfos().get(String).setDescription(String) instead

Since:
4.0.17

setLabelAndDescription

protected void setLabelAndDescription(String lang,
                                      String label,
                                      String description)
Since:
4.0.17


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480