Package org.jibx.runtime

Examples of org.jibx.runtime.IUnmarshaller.unmarshal()


        String name;
        try {
            name = m_unmarshallCtx.toStart();
            IUnmarshaller unmarshaller = m_unmarshallCtx.getUnmarshaller(xmlReader.getNamespace(), name);
            if (unmarshaller != null) {
                payload = unmarshaller.unmarshal(null, m_unmarshallCtx);
            }
        } catch (JiBXException e) {
            throw new WsException("Error in unmarshalling.", e);
        }
View Full Code Here


        int type = toTag();
        if (type == IXMLReader.START_TAG) {
            IUnmarshaller unmarshal =
                getUnmarshaller(m_reader.getNamespace(), m_reader.getName());
            if (unmarshal != null) {
                return unmarshal.unmarshal(null, this);
            }
        }
        return null;
    }
View Full Code Here

            getUnmarshaller(m_reader.getNamespace(), name);
        if (unmarshal == null) {
            throw new JiBXException("No unmarshaller for element " +
                currentNameString() + " " + buildPositionString());
        } else {
            Object obj = unmarshal.unmarshal(null, this);
            if (!clas.isInstance(obj)) {
                throw new JiBXException("Element " + name +
                    " not compatible with expected type " + clas.getName() +
                    " " + buildPositionString());
            }
View Full Code Here

            getUnmarshaller(m_reader.getNamespace(), name);
        if (unmarshal == null) {
            throw new JiBXException("No unmarshaller for element " +
                currentNameString() + " " + buildPositionString());
        } else {
            return unmarshal.unmarshal(null, this);
        }
    }

    /**
     * Parse past element, ignoring all content. This may be used while
View Full Code Here

            throw new JiBXException(
                EXCEPTION_LOCALIZER.format("unmarshaller-not-found",
                    "{" + uri + "} " + JIBX_FACTORY_CLASS.getName()));
        }
        IUnmarshaller unmarshaller =  delegateContext.getUnmarshaller(pos);
        final Object value = unmarshaller.unmarshal(o, delegateContext);
        postprocessUnmarshallingContext(ctx);
        return value;
    }

    protected void preprocessUnmarshallingContext(final UnmarshallingContext ctx)
View Full Code Here

            throw new JiBXException(
                EXCEPTION_LOCALIZER.format("unmarshaller-not-found",
                    "{" + uri + "} " + getTargetClass().getName()));
        }
        IUnmarshaller unmarshaller =  delegateContext.getUnmarshaller(pos);
        return unmarshaller.unmarshal(o, delegateContext);
    }
}
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.