Package com.io7m.cedarbridge.strings.api

# Class CBAbstractStrings

java.lang.Object
com.io7m.cedarbridge.strings.api.CBAbstractStrings

All Implemented Interfaces:
  `CBStringsType`

Direct Known Subclasses:
  `CBBinderStrings`, `CBParserStrings`, `CBSchemaCompilerStrings`, `CBTyperStrings`

public abstract class CBAbstractStrings extends Object implements CBStringsType
An abstract implementation of the `CBStringsType` interface.

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `CBAbstractStrings(ResourceBundle inResources)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final String`
  `format(String id, Object... args)`
  Format a message.
  `protected static ResourceBundle`
  `ofXML(InputStream stream)`
  `protected static ResourceBundle`
  `ofXMLResource(Class<?> clazz, String resource)`
  `final ResourceBundle`
  `resources()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CBAbstractStrings

    protected CBAbstractStrings(ResourceBundle inResources)

- ## Method Details

  - ### ofXML

    protected static ResourceBundle ofXML(InputStream stream)

  - ### ofXMLResource

    protected static ResourceBundle ofXMLResource(Class<?> clazz, String resource)

  - ### resources

    public final ResourceBundle resources()
    Specified by:
      `resources` in interface `CBStringsType`
    Returns:
      The underlying resource bundle

  - ### format

    public final String format(String id, Object... args)
    Description copied from interface: `CBStringsType`
    Format a message.
    Specified by:
      `format` in interface `CBStringsType`
    Parameters:
      `id` - The string resource ID
      `args` - Any required string format arguments
    Returns:
      A formatted string
    See Also:
      - `MessageFormat`