@Service(value=LanguageService.class) public class LanguageService extends Object
Constructor and Description |
---|
LanguageService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
The activate method is called when SCR activates the component configuration.
|
void |
addLanguage(UriRef languageUri)
Adds the language specified through languageUri to the Clerezza
platform.
|
void |
addToLanguageConfigGraph(NonLiteral languageUri)
Adds the language information of the language specified through
languageUri to the config graph.
|
Set<UriRef> |
getAllLanguages()
Returns a set containg all language uris which are in the
|
LanguageDescription |
getDefaultLanguage()
Returns the
LanguageDescription of the default language
of the platform. |
UriRef |
getLanguage(String languageName,
Language inLanguage)
Returns a language uri of a language which has a label containing the
specified languageName.
|
GraphNode |
getLanguageNode(NonLiteral langUri)
Get the language as
GraphNode specified through languageUri. |
List<LanguageDescription> |
getLanguages()
Returns a
List of LanguageDescription s which
describe the languages which are supported by the platform. |
public List<LanguageDescription> getLanguages()
List
of LanguageDescription
s which
describe the languages which are supported by the platform. The first
entry describes the default language of the platform.public LanguageDescription getDefaultLanguage()
LanguageDescription
of the default language
of the platform.public Set<UriRef> getAllLanguages()
public UriRef getLanguage(String languageName, Language inLanguage)
public GraphNode getLanguageNode(NonLiteral langUri)
GraphNode
specified through languageUri.
The languageUri has to be a languageUri
- The language uri which specifies the languagepublic void addLanguage(UriRef languageUri)
languageUri
- The language uri which specifies the language to be
added to the platform.public void addToLanguageConfigGraph(NonLiteral languageUri)
languageUri
- protected void activate(org.osgi.service.component.ComponentContext componentContext)
componentContext
- Copyright © 2014 The Apache Software Foundation. All Rights Reserved.