Class CLAbstractStrings

java.lang.Object
com.io7m.changelog.cmdline.internal.CLAbstractStrings
All Implemented Interfaces:
CLStringsType
Direct Known Subclasses:
CLMessages

public abstract class CLAbstractStrings
extends java.lang.Object
implements CLStringsType
An abstract implementation of the CLStringsType interface.
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected CLAbstractStrings​(java.util.ResourceBundle inResources)  
  • Method Summary

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CLAbstractStrings

      protected CLAbstractStrings​(java.util.ResourceBundle inResources)
  • Method Details

    • ofXML

      protected static java.util.ResourceBundle ofXML​(java.io.InputStream stream)
    • ofXMLResource

      protected static java.util.ResourceBundle ofXMLResource​(java.lang.Class<?> clazz, java.lang.String resource)
    • resources

      public final java.util.ResourceBundle resources()
      Specified by:
      resources in interface CLStringsType
      Returns:
      The underlying resource bundle
    • format

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