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
An abstract implementation of the
CBStringsType interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringFormat a message.protected static ResourceBundleofXML(InputStream stream) protected static ResourceBundleofXMLResource(Class<?> clazz, String resource) final ResourceBundle
-
Constructor Details
-
CBAbstractStrings
-
-
Method Details
-
ofXML
-
ofXMLResource
-
resources
- Specified by:
resourcesin interfaceCBStringsType- Returns:
- The underlying resource bundle
-
format
Description copied from interface:CBStringsTypeFormat a message.- Specified by:
formatin interfaceCBStringsType- Parameters:
id- The string resource IDargs- Any required string format arguments- Returns:
- A formatted string
- See Also:
-