Package org.daisy.dotify.api.translator
Class TranslatorSpecification
- java.lang.Object
-
- org.daisy.dotify.api.translator.TranslatorSpecification
-
- All Implemented Interfaces:
Comparable<TranslatorSpecification>
public class TranslatorSpecification extends Object implements Comparable<TranslatorSpecification>
Provides a translator specification.
-
-
Constructor Summary
Constructors Constructor Description TranslatorSpecification(String locale, String mode)Creates a new translator specification with the supplied values.TranslatorSpecification(String locale, TranslatorMode mode)Creates a new translator specification with the supplied values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TranslatorSpecification o)booleanequals(Object obj)StringgetLocale()Gets the locale.StringgetMode()Gets the translator mode.TranslatorModegetModeDetails()Gets the translator mode details.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TranslatorSpecification
public TranslatorSpecification(String locale, String mode)
Creates a new translator specification with the supplied values.- Parameters:
locale- a locale as defined by IETF RFC 3066mode- a translator mode- Throws:
IllegalArgumentException- if null/empty values are inserted
-
TranslatorSpecification
public TranslatorSpecification(String locale, TranslatorMode mode)
Creates a new translator specification with the supplied values.- Parameters:
locale- a locale as defined by IETF RFC 3066mode- a translator mode- Throws:
IllegalArgumentException- if null/empty values are inserted
-
-
Method Detail
-
getLocale
public String getLocale()
Gets the locale.- Returns:
- the locale
-
getMode
public String getMode()
Gets the translator mode.- Returns:
- the translator mode
-
getModeDetails
public TranslatorMode getModeDetails()
Gets the translator mode details.- Returns:
- the translator mode details
-
compareTo
public int compareTo(TranslatorSpecification o)
- Specified by:
compareToin interfaceComparable<TranslatorSpecification>
-
-