Package org.bifrost.xmlio

Examples of org.bifrost.xmlio.XmlException


  public void setAttribute(PropertyMap pmap, Object object, Method method, Object value)
    throws XmlException
  {

    if (object == null)
      throw new XmlException("Must pass an object whose attribute will be set.");
   
    Class paramClass = null;
    String paramClassName = null;
    Class[] paramTypes = null;
    if (method != null)
View Full Code Here


        result = method.invoke(instance, values);
    }
    catch (Exception e)
    {
      logger.fine("Cannot print value: " + e);
      throw new XmlException("Cannot print value for type " +
          value.getClass().getName() + ", " + e);
    }
    if (result == null)
      return "";
    return result.toString();
View Full Code Here

        if (io == null)
          instance.logger.info("Cannot find " + filename + " configuration file.");
      }
    }
    if (io == null)
      throw new XmlException();
    instance.logger.config("Reading " + filename);
    load(io);
    logger.config("Initial configuration read from " + filename);
  } // end load()
View Full Code Here

  } // end load()
 
  public void load(InputStream io) throws XmlException
  {
    if (io == null)
      throw new XmlException();
    XmlReader reader = new XmlReader(io, "org.bifrost.xmlio.config");
    XmlIOConfig conf = (XmlIOConfig)reader.getRootObject();
    copyFrom(conf);
  } // end load()
View Full Code Here

TOP

Related Classes of org.bifrost.xmlio.XmlException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.