com.hack23.cia.model.impl.application.content
Class Language

Package class diagram package Language
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.common.AbstractResource
          extended by com.hack23.cia.model.impl.application.content.AbstractApplicationResource
              extended by com.hack23.cia.model.impl.application.content.Language
All Implemented Interfaces:
Content, LanguageData, UsageOrder, ApplicationResource, DecisionStrategy, ModelObject, PersistedModelObject, Resource, Serializable

@Entity
public class Language
extends AbstractApplicationResource
implements LanguageData

The Class Language.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static String SWEDISH_LANGUAGE_CODE
          The Constant SWEDISH_LANGUAGE_CODE.
 
Constructor Summary
Constructor and Description
Language()
          Instantiates a new language.
 
Method Summary
Modifier and Type Method and Description
 void addLanguageContentData(LanguageContentData languageContent)
          Adds the language content data.
 boolean getActiveByDefault()
          Gets the active by default.
 TypeContext getApplicationTypeContext()
          Gets the application type context.
 List<LanguageContent> getLanguageContents()
          Gets the language contents.
 List<LanguageContentData> getLanguageContentsData()
          Gets the language contents data.
 String getName()
          Gets the name.
 String getShortCode()
          Gets the short code.
 int getUsageOrder()
          Gets the usage order.
 void removeLanguageContentData(LanguageContentData languageContent)
          Removes the language content data.
 void setActiveByDefault(boolean activeByDefault)
          Sets the active by default.
 void setLanguageContents(List<LanguageContent> languageContents)
          Sets the language contents.
 void setName(String name)
          Sets the name.
 void setShortCode(String shortCode)
          Sets the short code.
 void setUsageOrder(int usageOrder)
          Sets the usage order.
 
Methods inherited from class com.hack23.cia.model.impl.common.AbstractResource
getId, getResourceType, getVersion, setId, setResourceType, setVersion
 
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity
equals, getTypeContext, hashCode, isNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hack23.cia.model.api.common.Resource
getResourceType
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
getId, getTypeContext, getVersion, isNew, setId, setVersion
 

Field Detail

SWEDISH_LANGUAGE_CODE

public static final String SWEDISH_LANGUAGE_CODE
The Constant SWEDISH_LANGUAGE_CODE.

See Also:
Constant Field Values
Constructor Detail

Language

public Language()
Instantiates a new language.

Method Detail

addLanguageContentData

public void addLanguageContentData(LanguageContentData languageContent)
Description copied from interface: LanguageData
Adds the language content data.

Specified by:
addLanguageContentData in interface LanguageData
Parameters:
languageContent - the language content

getActiveByDefault

public boolean getActiveByDefault()
Description copied from interface: UsageOrder
Gets the active by default.

Specified by:
getActiveByDefault in interface LanguageData
Specified by:
getActiveByDefault in interface UsageOrder
Returns:
the active by default

getApplicationTypeContext

public TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

getLanguageContents

public List<LanguageContent> getLanguageContents()
Gets the language contents.

Returns:
the language contents

getLanguageContentsData

public List<LanguageContentData> getLanguageContentsData()
Description copied from interface: LanguageData
Gets the language contents data.

Specified by:
getLanguageContentsData in interface LanguageData
Returns:
the language contents data

getName

public String getName()
Description copied from interface: LanguageData
Gets the name.

Specified by:
getName in interface LanguageData
Returns:
the name

getShortCode

public String getShortCode()
Description copied from interface: LanguageData
Gets the short code.

Specified by:
getShortCode in interface LanguageData
Returns:
the short code

getUsageOrder

public int getUsageOrder()
Description copied from interface: UsageOrder
Gets the usage order.

Specified by:
getUsageOrder in interface LanguageData
Specified by:
getUsageOrder in interface UsageOrder
Returns:
the usage order

removeLanguageContentData

public void removeLanguageContentData(LanguageContentData languageContent)
Description copied from interface: LanguageData
Removes the language content data.

Specified by:
removeLanguageContentData in interface LanguageData
Parameters:
languageContent - the language content

setLanguageContents

public void setLanguageContents(List<LanguageContent> languageContents)
Sets the language contents.

Parameters:
languageContents - the new language contents

setName

public void setName(String name)
Description copied from interface: LanguageData
Sets the name.

Specified by:
setName in interface LanguageData
Parameters:
name - the new name

setShortCode

public void setShortCode(String shortCode)
Description copied from interface: LanguageData
Sets the short code.

Specified by:
setShortCode in interface LanguageData
Parameters:
shortCode - the new short code

setActiveByDefault

public void setActiveByDefault(boolean activeByDefault)
Description copied from interface: UsageOrder
Sets the active by default.

Specified by:
setActiveByDefault in interface UsageOrder
Parameters:
activeByDefault - the new active by default

setUsageOrder

public void setUsageOrder(int usageOrder)
Description copied from interface: UsageOrder
Sets the usage order.

Specified by:
setUsageOrder in interface UsageOrder
Parameters:
usageOrder - the new usage order


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.