Package org.castor.xml

Examples of org.castor.xml.BackwardCompatibilityContext


     * @throws SAXException When a problem with XML data binding occurs.
     * @throws IOException When the XML schema file cannot be accessed.
     */
    private Schema unmarshalSchema(final String schemaName) throws SAXException, IOException {
        Parser parser = null;
        InternalContext internalContext = new BackwardCompatibilityContext();

        try {
            parser = internalContext.getParser();
        } catch (RuntimeException rte) {
            fail("Can't optain sax parser!");
        }

        if (parser == null) {
View Full Code Here


     * @param internalContext either an {@link InternalContext} comes from outside
     *          or {@link BackwardCompatibilityContext} is instantiated
     */
    public MarshalFramework(final InternalContext internalContext) {
        if (internalContext == null) {
            _internalContext = new BackwardCompatibilityContext();
        } else {
            _internalContext = internalContext;
        }
    }
View Full Code Here

     * an instance of BackwardCompatibilityContext as context.
     *
     * @param clazz root class for unmarshalling
     */
    public Unmarshaller(final Class clazz) {
        this(new BackwardCompatibilityContext(), clazz);
    }
View Full Code Here

     *
     * @param mapping The Mapping to use.
     * @throws MappingException in case that Unmarshaller fails to be instantiated
     */
    public Unmarshaller(final Mapping mapping) throws MappingException {
        this(new BackwardCompatibilityContext(), mapping);
    }
View Full Code Here

     * @param root the instance to unmarshal into. This
     * may be null, if the Unmarshaller#setMapping is called
     * to load a mapping for the root element of xml document.
     */
    public Unmarshaller(final Object root) {
        this(new BackwardCompatibilityContext(), root);
    }
View Full Code Here

            throw new ValidationException("Cannot validate a null Object.");
        }

        if (context == null) {
            ValidationContext v2 = new ValidationContext();
            InternalContext ic = new BackwardCompatibilityContext();
            ic.setClassLoader(object.getClass().getClassLoader());
            v2.setInternalContext(ic);
            validate(object, v2);
            return;
        }
View Full Code Here

    /**
     * Returns the default instance of XMLNaming.
     * @see org.exolab.castor.util.AbstractProperties
    **/
    public static final XMLNaming getInstance() {
        return new BackwardCompatibilityContext().getXMLNaming();
    } //-- getInstance
View Full Code Here

     * Creates a new XMLInstance2Schema
     *
     */
    public XMLInstance2Schema() {
        super();
        _internalContext = new BackwardCompatibilityContext();
    }
View Full Code Here

     * representation is a xml well-formed fragment corresponding to the
     * representation of this node.
     * @return the String representation of this AnyNode.
     */
    public String toString() {
        Serializer serializer = new BackwardCompatibilityContext().getSerializer();
        if (serializer == null) {
            throw new RuntimeException("Unable to obtain serializer");
        }

        StringWriter writer = new StringWriter();
View Full Code Here

    /**
     * No-arg constructor.
     */
    public CastorCodeGenTask() {
        super();
        _internalContext = new BackwardCompatibilityContext();
    }
View Full Code Here

TOP

Related Classes of org.castor.xml.BackwardCompatibilityContext

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.