Examples of XmlLoadException


Examples of org.apache.commons.digester.xmlrules.XmlLoadException

        super.begin(namespace, name, attributes);
        prefix = "/" + attributes.getValue("name");
        target = attributes.getValue("target");
        Object obj = digester.peek();
        if (!(obj instanceof Config)) {
            throw new XmlLoadException("Wrong class type : " + obj.getClass());
        }
        Config conf = (Config)obj;
        conf.setPrefix(prefix);
    }
View Full Code Here

Examples of org.apache.commons.digester.xmlrules.XmlLoadException

                  String value = (String)it.next();
                  map.put(value, value);
                }
                pm.putValues(propertyName, map);
            } else {
              throw new XmlLoadException(
                "Digital Object parameter needs to be a map: " + top);             
            }
        } else {
            PropertyDescriptor desc =
                PropertyUtils.getPropertyDescriptor(obj, propertyName);
View Full Code Here

Examples of org.apache.commons.digester.xmlrules.XmlLoadException

            map.put(key, text);
        } else if (obj instanceof List) {
            List list = (List)obj;
            list.add(text);
        } else {
            throw new XmlLoadException("Complex parameter type mismatch. ");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.