Codota Logo
Language.getGivenSpecification
Code IndexAdd Codota to your IDE (free)

How to use
getGivenSpecification
method
in
org.crosswire.common.util.Language

Best Java code snippets using org.crosswire.common.util.Language.getGivenSpecification (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: crosswire/jsword

  @Override
  public String unconvert(Object internal) {
    if (internal instanceof Language) {
      return ((Language) internal).getGivenSpecification();
    }
    return super.unconvert(internal);
  }
},
origin: crosswire/jsword

  @Override
  public String unconvert(Object internal) {
    if (internal instanceof Language) {
      return ((Language) internal).getGivenSpecification();
    }
    return super.unconvert(internal);
  }
},
origin: crosswire/jsword

  @Override
  public String unconvert(Object internal) {
    if (internal instanceof Language) {
      return ((Language) internal).getGivenSpecification();
    }
    return super.unconvert(internal);
  }
},
origin: crosswire/jsword

private void adjustLanguage() {
  String lang = getProperty(KEY_LANG);
  testLanguage(KEY_LANG, lang);
  String langFrom = configAll.get(KEY_GLOSSARY_FROM);
  String langTo = configAll.get(KEY_GLOSSARY_TO);
  // If we have either langFrom or langTo, we are dealing with a glossary
  if (langFrom != null || langTo != null) {
    if (langFrom == null) {
      langFrom = lang;
      setProperty(KEY_GLOSSARY_FROM, langFrom);
      LOGGER.warn("Missing data for [{}]. Assuming {}={}", configAll.getName(), KEY_GLOSSARY_FROM, langFrom);
    }
    testLanguage(KEY_GLOSSARY_FROM, langFrom);
    if (langTo == null) {
      langTo = Language.DEFAULT_LANG.getGivenSpecification();
      setProperty(KEY_GLOSSARY_TO, langTo);
      LOGGER.warn("Missing data for [{}]. Assuming {}={}", configAll.getName(), KEY_GLOSSARY_TO, langTo);
    }
    testLanguage(KEY_GLOSSARY_TO, langTo);
    // At least one of the two languages should match the lang entry
    if (!langFrom.equals(lang) && !langTo.equals(lang)) {
      LOGGER.error("Data error in [{}]. Neither {} or {} match {}", configAll.getName(), KEY_GLOSSARY_FROM, KEY_GLOSSARY_TO, KEY_LANG);
    }
  }
  setLanguage((Language) getValue(KEY_LANG));
}
org.crosswire.common.utilLanguagegetGivenSpecification

Javadoc

The specification that was given might not be be the one that ultimately gets the name.

Popular methods of Language

  • <init>
    A single language defined by an ISO-639 code. If the code is null or empty then it is considered to
  • equals
  • getCode
    Get the iso639 language code.
  • isValidLanguage
    Determine whether this language is valid. * LL - An iso639-2 or iso639-3 language code * SSSS -
  • compareStrings
    Equal if both a and b are the same.
  • getName
    Get the localized language name.
  • isLeftToRight
    Determine whether this language is a Left-to-Right or a Right-to-Left language. If the language has
  • parse
    Split the specification on '-' into 1 to 3 parts.

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • orElseThrow (Optional)
  • runOnUiThread (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now