org.sonar.api.resources
Class Languages

java.lang.Object
  extended by org.sonar.api.resources.Languages
All Implemented Interfaces:
BatchComponent, ServerComponent

public class Languages
extends Object
implements BatchComponent, ServerComponent

A class to store the list of languages

Since:
1.10

Constructor Summary
Languages(Language... languages)
          Creates a list of languages
 
Method Summary
 void add(Language language)
          Adds a language to the current object
 Language get(String key)
          Return a language from the current object based on its key
 String[] getSuffixes(String... keys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Languages

public Languages(Language... languages)
Creates a list of languages

Method Detail

getSuffixes

public String[] getSuffixes(String... keys)
Parameters:
keys - the languages keys
Returns:
the list of suffix files associates to languages included in the current object

get

public Language get(String key)
Return a language from the current object based on its key


add

public void add(Language language)
Adds a language to the current object



Copyright © 2009-2012 SonarSource. All Rights Reserved.