Codota Logo
org.geotools.resources.i18n
Code IndexAdd Codota to your IDE (free)

How to use org.geotools.resources.i18n

Best Java code snippets using org.geotools.resources.i18n (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.geotools/gt-coverage

/**
 * Formats a message for an index out of 2D bounds.
 */
static String indexOutOfBounds(final int dimension) {
  return Errors.format(ErrorKeys.INDEX_OUT_OF_BOUNDS_$1, dimension);
}
origin: org.geotools/gt2-widgets-swing

/**
 * Returns the name of the column at the specified index.
 */
public String getColumnName(final int index) {
  switch (index) {
    case 0:  return Vocabulary.format(VocabularyKeys.INDEX);
    default: return Vocabulary.format(VocabularyKeys.VALUE);
  }
}
origin: org.geotools/gt2-coverageio

/**
 * Returns a brief, human-readable description of this service provider
 * and its associated implementation. The resulting string should be
 * localized for the supplied locale, if possible.
 *
 * @param  locale A Locale for which the return value should be localized.
 * @return A String containing a description of this service provider.
 */
public String getDescription(final Locale locale) {
  return Descriptions.getResources(locale).getString(DescriptionKeys.CODEC_MATRIX);
}
origin: org.geotools/gt-metadata

/**
 * Gets a string for the given key from this resource bundle or one of its parents.
 *
 * @param  key The key for the desired string.
 * @return The string for the given key.
 * @throws MissingResourceException If no object for the given key can be found.
 */
public static String format(final int key) throws MissingResourceException {
  return getResources(null).getString(key);
}
origin: org.geotools/gt-metadata

/**
 * Gets a string for the given key from this resource bundle or one of its parents.
 *
 * @param  key The key for the desired string.
 * @return The string for the given key.
 * @throws MissingResourceException If no object for the given key can be found.
 */
public static String format(final int key) throws MissingResourceException {
  return getResources(null).getString(key);
}
origin: org.geotools/gt2-coverageio

/**
 * Returns the resources for formatting error messages.
 */
private IndexedResourceBundle getErrorResources() {
  return Errors.getResources(locale);
}
origin: org.geotools/gt-metadata

/**
 * Gets a log record for the given key from this resource bundle or one of its parents.
 *
 * @param  level The log record level.
 * @param  key The key for the desired string.
 * @return The string for the given key.
 * @throws MissingResourceException If no object for the given key can be found.
 */
public static LogRecord format(final Level level,
                final int key) throws MissingResourceException
{
  return getResources(null).getLogRecord(level, key);
}
origin: org.geotools/gt2-coverageio

/**
 * Constructs a new image reader.
 *
 * @param provider The {@link ImageReaderSpi} that is invoking this constructor,
 *        or {@code null} if none.
 */
protected GeographicImageReader(final ImageReaderSpi provider) {
  super(provider);
  availableLocales = Locales.getAvailableLocales();
}
origin: org.geotools/gt-metadata

/**
 * Creates a new exception with a default message determined from the specified category.
 */
public RecursiveSearchException(final Class<?> category) {
  super(Errors.format(ErrorKeys.RECURSIVE_CALL_$1, category));
}
origin: org.geotools/gt2-metadata

/**
 * Gets a string for the given key from this resource bundle or one of its parents.
 *
 * @param  key The key for the desired string.
 * @return The string for the given key.
 * @throws MissingResourceException If no object for the given key can be found.
 */
public static String format(final int key) throws MissingResourceException {
  return getResources(null).getString(key);
}
origin: org.geotools/gt2-coverageio

/**
 * Returns a localized string for the specified error key.
 */
final String getString(final int key) {
  return Errors.getResources(locale).getString(key);
}
origin: org.geotools/gt2-widgets-swing

/**
 * Returns the name of the column at {@code columnIndex}.
 */
public String getColumnName(final int columnIndex) {
  return Vocabulary.format(columnNames[columnIndex]);
}
origin: org.geotools/gt2-coverageio

/**
 * Returns a brief, human-readable description of this service provider
 * and its associated implementation. The resulting string should be
 * localized for the supplied locale, if possible.
 *
 * @param  locale A Locale for which the return value should be localized.
 * @return A String containing a description of this service provider.
 */
public String getDescription(final Locale locale) {
  return Descriptions.getResources(locale).getString(DescriptionKeys.CODEC_MATRIX);
}
origin: org.geotools/gt-metadata

/**
 * Constructs an exception with an error message formatted for the specified class.
 *
 * @param classe The unexpected implementation class.
 */
public UnsupportedImplementationException(final Class<?> classe) {
  super(Errors.format(ErrorKeys.UNKNOW_TYPE_$1, classe));
}
origin: org.geotools/gt-metadata

/**
 * Gets a string for the given key from this resource bundle or one of its parents.
 *
 * @param  key The key for the desired string.
 * @return The string for the given key.
 * @throws MissingResourceException If no object for the given key can be found.
 */
public static String format(final int key) throws MissingResourceException {
  return getResources(null).getString(key);
}
origin: org.geotools/gt-metadata

  /**
   * Constructs an exception with an error message formatted for the specified class
   * and a cause.
   *
   * @param classe The unexpected implementation class.
   * @param cause The cause for the exception.
   */
  public UnsupportedImplementationException(final Class<?>  classe, final Exception cause) {
    super(Errors.format(ErrorKeys.UNKNOW_TYPE_$1, classe), cause);
  }
}
origin: org.geotools/gt2-coverageio

/**
 * Returns a brief, human-readable description of this service provider
 * and its associated implementation. The resulting string should be
 * localized for the supplied locale, if possible.
 *
 * @param  locale A Locale for which the return value should be localized.
 * @return A String containing a description of this service provider.
 */
public String getDescription(final Locale locale) {
  return Descriptions.getResources(locale).getString(DescriptionKeys.CODEC_GRID);
}
origin: org.geotools/gt-coverage

/**
 * Constructs an exception with a detail message from the specified error code.
 * Should not be public because the GeoTools I18N framework is not a commited one.
 */
InvalidGridGeometryException(final int code) {
  super(Errors.format(code));
}
origin: org.geotools/gt2-metadata

/**
 * Gets a string for the given key from this resource bundle or one of its parents.
 *
 * @param  key The key for the desired string.
 * @return The string for the given key.
 * @throws MissingResourceException If no object for the given key can be found.
 */
public static String format(final int key) throws MissingResourceException {
  return getResources(null).getString(key);
}
origin: org.geotools/gt2-coverage

/**
 * Returns a message for exception.
 *
 * @todo provides a better formatting of the point coordinate.
 */
private static String cannotEvaluate(final DirectPosition point) {
  return Errors.format(ErrorKeys.CANT_EVALUATE_$1, point);
}

org.geotools.resources.i18n

Most used classes

  • Errors
  • Vocabulary
  • Logging
    Base class for locale-dependent resources. Instances of this class should never been created directl
  • Descriptions
    Base class for locale-dependent resources. Instances of this class should never been created directl
  • Locales
    Static i18n methods.
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