Package org.exolab.castor.mapping.xml

Examples of org.exolab.castor.mapping.xml.Include


            //-- includes which may have previously failed
            //-- using the IncludeListener...and to
            //-- report any potential errors.
            Enumeration includes = loaded.enumerateInclude();
            while (includes.hasMoreElements()) {
                Include include = (Include) includes.nextElement();
                if (!mapping.processed(include.getHref())) {
                    try {
                        loadMappingInternal(mapping, resolver, include.getHref());
                    } catch (Exception ex) {
                        throw new MappingException(ex);
                    }
                }
            }
View Full Code Here


     * @see org.castor.xml.UnmarshalListener#unmarshalled(java.lang.Object)
     * {@inheritDoc}
     */
    public void unmarshalled(final Object target, final Object parent) {
        if (target instanceof Include) {
            Include include = (Include) target;
            try {
                _unmarshaller.loadMappingInternal(_mapping, _resolver, include.getHref());
            } catch (Exception ex) {
                LOG.warn("Problem", ex);
                //-- ignore error, it'll get reported
                //-- later when we re-process the
                //-- includes of the parent Mapping in
View Full Code Here

            //-- includes which may have previously failed
            //-- using the IncludeListener...and to
            //-- report any potential errors.
            Enumeration includes = loaded.enumerateInclude();
            while ( includes.hasMoreElements() ) {
                Include include = (Include) includes.nextElement();
                if (!_state.processed( include.getHref() )) {
                    try {
                        loadMappingInternal( include.getHref() );
                    }
                    catch ( Exception except ) {
                        throw new MappingException( except );
                    }
                }
View Full Code Here

         *
         * @param object the Object that was unmarshalled.
         */
        public void unmarshalled (Object object) {
            if (object instanceof Include) {
                Include include = (Include) object;
                try {
                    loadMappingInternal( include.getHref() );
                }
                catch ( Exception except ) {
                    //-- ignore error, it'll get reported
                    //-- later when we re-process the
                    //-- includes of the parent Mapping in
View Full Code Here

TOP

Related Classes of org.exolab.castor.mapping.xml.Include

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.