barcode4j 2.1.0

org.krysalis.barcode4j.tools
Class ConfigurationUtil

java.lang.Object
  extended by org.krysalis.barcode4j.tools.ConfigurationUtil

public class ConfigurationUtil
extends java.lang.Object

This utility class provides helper methods for Avalon Configuration objects.

Version:
$Id: ConfigurationUtil.java,v 1.4 2008/12/10 15:52:37 jmaerki Exp $
Author:
Jeremias Maerki

Constructor Summary
protected ConfigurationUtil()
          Utility class: Constructor prevents instantiating when subclassed.
 
Method Summary
static org.apache.avalon.framework.configuration.Configuration buildConfiguration(org.w3c.dom.Node node)
          Builds a Configuration object from a DOM node.
static java.lang.String getMessage(org.apache.avalon.framework.configuration.Configuration cfg)
          Extracts the message from the barcode XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationUtil

protected ConfigurationUtil()
Utility class: Constructor prevents instantiating when subclassed.

Method Detail

buildConfiguration

public static org.apache.avalon.framework.configuration.Configuration buildConfiguration(org.w3c.dom.Node node)
Builds a Configuration object from a DOM node.

Parameters:
node - the DOM node
Returns:
the Configuration object

getMessage

public static java.lang.String getMessage(org.apache.avalon.framework.configuration.Configuration cfg)
                                   throws org.apache.avalon.framework.configuration.ConfigurationException
Extracts the message from the barcode XML. Escaped Unicode characters are unescaped.

Parameters:
cfg - the configuration object containing the barcode XML
Returns:
the message
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - if an error occurs retrieving values from the configuration

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.