Package org.metatype.sxc.jaxb

Examples of org.metatype.sxc.jaxb.RuntimeContext


            try {
                w.writeStartDocument("UTF-8", null);

                // write xsi:type if there is no default root element for this type

                final RuntimeContext context = new RuntimeContext((ExtendedMarshaller) null);

                try {

                    final QName name = objectType.getXmlRootElement();
View Full Code Here


        int event = reader.getEventType();
        while (event != XMLStreamConstants.START_ELEMENT && reader.hasNext()) {
            event = reader.next();
        }

        return jaxbType.read(reader, new RuntimeContext((ExtendedUnmarshaller) null));
    }
View Full Code Here

        if (reader.isXsiNil()) {
            return null;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final NamedMethod namedMethod = new NamedMethod();
        context.beforeUnmarshal(namedMethod, LifecycleCallback.NONE);
View Full Code Here

            writer.writeXsiNil();
            return;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
        if (NamedMethod.class != namedMethod.getClass()) {
            context.unexpectedSubclass(writer, namedMethod, NamedMethod.class);
View Full Code Here

        if (reader.isXsiNil()) {
            return null;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final Handler handler = new Handler();
        context.beforeUnmarshal(handler, LifecycleCallback.NONE);
View Full Code Here

            writer.writeXsiNil();
            return;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
        if (Handler.class != handler.getClass()) {
            context.unexpectedSubclass(writer, handler, Handler.class);
View Full Code Here

        if (reader.isXsiNil()) {
            return null;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final SecurityConstraint securityConstraint = new SecurityConstraint();
        context.beforeUnmarshal(securityConstraint, LifecycleCallback.NONE);
View Full Code Here

            writer.writeXsiNil();
            return;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
        if (SecurityConstraint.class != securityConstraint.getClass()) {
            context.unexpectedSubclass(writer, securityConstraint, SecurityConstraint.class);
View Full Code Here

        if (reader.isXsiNil()) {
            return null;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final ExcludeList excludeList = new ExcludeList();
        context.beforeUnmarshal(excludeList, LifecycleCallback.NONE);
View Full Code Here

            writer.writeXsiNil();
            return;
        }

        if (context == null) {
            context = new RuntimeContext();
        }

        final String prefix = writer.getUniquePrefix("http://java.sun.com/xml/ns/javaee");
        if (ExcludeList.class != excludeList.getClass()) {
            context.unexpectedSubclass(writer, excludeList, ExcludeList.class);
View Full Code Here

TOP

Related Classes of org.metatype.sxc.jaxb.RuntimeContext

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.