net.sf.doolin.util
Interface StringCodes


public interface StringCodes

Codes for strings used inside the Doolin Utils module.

Author:
Damien Coraboeuf

Field Summary
static String STRING_ERROR_CANNOT_DECODE_BASE64
          Used when a base64-encoded string cannot be decoded Its value is "doolin.utils.error.CannotDecodeBase64"
static String STRING_ERROR_CANNOT_DECODE_PASSWORD
          Used when a password cannot be decoded.
static String STRING_ERROR_CANNOT_ENCODE_BASE64
          Used when a string cannot be encoded into base64.
static String STRING_ERROR_CANNOT_ENCODE_PASSWORD
          Used when a password cannot be encoded.
static String STRING_ERROR_CANNOT_OPEN_PROPERTIES
          Used when some property file cannot be opened.
static String STRING_ERROR_CANNOT_UNZIP
          Used when a ZIP uncompression cannot be performed.
static String STRING_ERROR_CANNOT_ZIP
          Used when a ZIP compression cannot be performed.
static String STRING_ERROR_RESOURCE_IO_ERROR
          Used when a resource cannot be read.
static String STRING_ERROR_RESOURCE_NOT_FOUND
          Used when a resource is not found.
static String STRING_UTILS_FOR_CLASS_ERROR
          Used when a class cannot be loaded from its value.
static String STRING_UTILS_METHODCALL_ERROR
          Error when a method cannot be called by introspection.
static String STRING_UTILS_NEW_INSTANCE_ERROR
          Used when a new instance cannot be created from a class name.
static String STRING_UTILS_SET_PROPERTIES_ERROR
          Used when properties cannot be set on an object.
static String STRING_UTILS_XML_DOM_MANDATORY
          Used when an element or attribute is mandatort in a DOM.
static String STRING_UTILS_XML_DOM_WRONG_INT_FORMAT
          Used when an integer element or attribute cannot be parsed from a DOM.
static String STRING_XML_CANNOT_CONFIGURE_PARSER
          Used when a JAXP parser cannot be configured.
static String STRING_XML_IO_ERROR
          Error while reading an XML document.
static String STRING_XML_PARSING_ERROR
          Error while parsing an XML document.
static String UTILS_PROPERTY_ANNOTATION_CANNOT_ACCESS
          Cannot access annotation property.
static String XPATHUTIL_XPATH_ERROR
          Error while evaluating an XPath expression.
 

Field Detail

STRING_ERROR_RESOURCE_NOT_FOUND

static final String STRING_ERROR_RESOURCE_NOT_FOUND
Used when a resource is not found. Its value is "doolin.utils.error.ResourceNotFound"

See Also:
IOUtils.readProperties(String), IOUtils.readTextResource(Class, String, String), Utils.getResource(Class, String), Constant Field Values

STRING_ERROR_RESOURCE_IO_ERROR

static final String STRING_ERROR_RESOURCE_IO_ERROR
Used when a resource cannot be read. Its value is "doolin.utils.error.ResourceIOError"

See Also:
IOUtils.readTextResource(Class, String, String), Constant Field Values

STRING_ERROR_CANNOT_OPEN_PROPERTIES

static final String STRING_ERROR_CANNOT_OPEN_PROPERTIES
Used when some property file cannot be opened. Its value is "doolin.utils.error.CannotOpenProperties"

See Also:
IOUtils.readProperties(String), Constant Field Values

STRING_ERROR_CANNOT_ENCODE_PASSWORD

static final String STRING_ERROR_CANNOT_ENCODE_PASSWORD
Used when a password cannot be encoded. Its value is "doolin.utils.error.CannotEncodePassword"

See Also:
PasswordUtils.encodePassword(char[]), PasswordUtils.passwordToBytes(char[]), Constant Field Values

STRING_ERROR_CANNOT_DECODE_BASE64

static final String STRING_ERROR_CANNOT_DECODE_BASE64
Used when a base64-encoded string cannot be decoded Its value is "doolin.utils.error.CannotDecodeBase64"

See Also:
CodecUtils.decodeBase64(String), Constant Field Values

STRING_ERROR_CANNOT_ENCODE_BASE64

static final String STRING_ERROR_CANNOT_ENCODE_BASE64
Used when a string cannot be encoded into base64. Its value is "doolin.utils.error.CannotEncodeBase64"

See Also:
CodecUtils.encodeBase64(byte[]), Constant Field Values

STRING_ERROR_CANNOT_DECODE_PASSWORD

static final String STRING_ERROR_CANNOT_DECODE_PASSWORD
Used when a password cannot be decoded. Its value is "doolin.utils.error.CannotDecodePassword"

See Also:
PasswordUtils.decodePassword(String), Constant Field Values

STRING_ERROR_CANNOT_ZIP

static final String STRING_ERROR_CANNOT_ZIP
Used when a ZIP compression cannot be performed. Its value is "doolin.utils.error.CannotZip"

See Also:
ZIPUtils.zip(byte[]), Constant Field Values

STRING_ERROR_CANNOT_UNZIP

static final String STRING_ERROR_CANNOT_UNZIP
Used when a ZIP uncompression cannot be performed. Its value is "doolin.utils.error.CannotUnzip"

See Also:
ZIPUtils.unzip(byte[]), Constant Field Values

STRING_UTILS_NEW_INSTANCE_ERROR

static final String STRING_UTILS_NEW_INSTANCE_ERROR
Used when a new instance cannot be created from a class name. Its value is "doolin.utils.Utils.NewInstanceError" .

See Also:
Utils.newInstance(Class), Utils.newInstance(String), Utils.newInstance(String, ParameterSet), Constant Field Values

STRING_UTILS_FOR_CLASS_ERROR

static final String STRING_UTILS_FOR_CLASS_ERROR
Used when a class cannot be loaded from its value. Its value is "doolin.utils.Utils.ForClassError" .

See Also:
Utils.forClass(String), Constant Field Values

STRING_UTILS_SET_PROPERTIES_ERROR

static final String STRING_UTILS_SET_PROPERTIES_ERROR
Used when properties cannot be set on an object. Its value is "doolin.utils.Utils.SetPropertiesError" .

See Also:
Utils.setProperties(Object, ParameterSet), Constant Field Values

STRING_UTILS_XML_DOM_WRONG_INT_FORMAT

static final String STRING_UTILS_XML_DOM_WRONG_INT_FORMAT
Used when an integer element or attribute cannot be parsed from a DOM. Its value is "doolin.utils.xml.DOMUtils.WrongIntFormat" .

See Also:
DOMUtils.getInt(org.w3c.dom.Element, String, boolean, int), DOMUtils.getIntAttribute(org.w3c.dom.Element, String, boolean, int), Constant Field Values

STRING_UTILS_XML_DOM_MANDATORY

static final String STRING_UTILS_XML_DOM_MANDATORY
Used when an element or attribute is mandatort in a DOM. Its value is * * * "doolin.utils.xml.DOMUtils.Mandatory" .

See Also:
DOMUtils.getInt(org.w3c.dom.Element, String, boolean, int), DOMUtils.getIntAttribute(org.w3c.dom.Element, String, boolean, int), DOMUtils.getBoolean(org.w3c.dom.Element, String, boolean, boolean), Constant Field Values

STRING_XML_CANNOT_CONFIGURE_PARSER

static final String STRING_XML_CANNOT_CONFIGURE_PARSER
Used when a JAXP parser cannot be configured. Its value is "doolin.utils.xml.CannotConfigureParser" .

See Also:
XMLUtils.createSAXValidatingParser(java.net.URL), XMLUtils.createSAXNonValidatingParser(), Constant Field Values

STRING_XML_IO_ERROR

static final String STRING_XML_IO_ERROR
Error while reading an XML document.

See Also:
DigesterUtils.parse(java.io.File, Object), DigesterUtils.parse(org.xml.sax.InputSource, Object), DigesterUtils.parse(java.net.URL, Object), Constant Field Values

STRING_XML_PARSING_ERROR

static final String STRING_XML_PARSING_ERROR
Error while parsing an XML document.

See Also:
DigesterUtils.parse(org.xml.sax.InputSource, Object), Constant Field Values

XPATHUTIL_XPATH_ERROR

static final String XPATHUTIL_XPATH_ERROR
Error while evaluating an XPath expression.

See Also:
XPathUtils, Constant Field Values

STRING_UTILS_METHODCALL_ERROR

static final String STRING_UTILS_METHODCALL_ERROR
Error when a method cannot be called by introspection.

See Also:
Constant Field Values

UTILS_PROPERTY_ANNOTATION_CANNOT_ACCESS

static final String UTILS_PROPERTY_ANNOTATION_CANNOT_ACCESS
Cannot access annotation property.

See Also:
Constant Field Values


Copyright © 2011. All Rights Reserved.