Examples of loadObject()


Examples of org.apache.tuscany.sdo.api.XMLStreamHelper.loadObject()

            // The XMLStreamHelper requires that the reader is positioned at
            // START_ELEMENT
            while (source.getEventType() != XMLStreamConstants.START_ELEMENT && source.hasNext()) {
                source.next();
            }
            DataObject target = streamHelper.loadObject(source);
            source.close();
            return target;
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

Examples of org.apache.tuscany.sdo.api.XMLStreamHelper.loadObject()

            // The XMLStreamHelper requires that the reader is positioned at
            // START_ELEMENT
            while (source.getEventType() != XMLStreamConstants.START_ELEMENT && source.hasNext()) {
                source.next();
            }
            DataObject target = streamHelper.loadObject(source);
            source.close();
            return target;
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

Examples of org.apache.tuscany.sdo.api.XMLStreamHelper.loadObject()

            // The XMLStreamHelper requires that the reader is posistioned at
            // START_ELEMENT
            while (source.getEventType() != XMLStreamConstants.START_ELEMENT && source.hasNext()) {
                source.next();
            }
            DataObject target = streamHelper.loadObject(source);
            source.close();
            return target;
        } catch (Exception e) {
            throw new TransformationException(e);
        }
View Full Code Here

Examples of org.apache.tuscany.sdo.helper.XMLStreamHelper.loadObject()

            // The XMLStreamHelper requires that the reader is posistioned at
            // START_ELEMENT
            while (source.getEventType() != XMLStreamConstants.START_ELEMENT && source.hasNext()) {
                source.next();
            }
            return streamHelper.loadObject(source);
        } catch (Exception e) {
            throw new TransformationException(e);
        }
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.codegen.CodeStream.loadObject()

    for (int i=0; i < nargs-1; i++) {
      closureIndex += AstUtil.slotsNeeded(binding.parameters[i]);
    }
   
   
    codeStream.loadObject(closureIndex);
   
    // build the Object[]

    codeStream.generateInlinedValue(nargs-1);
    codeStream.newArray(
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.loadObject()

            mb.appendLoadConstant(m_container.getBindingRoot().getFactoryName());
            mb.appendCallInterface(PUSH_NAMESPACES_METHOD,
                PUSH_NAMESPACES_SIG);
           
            // handle the actual marshalling
            mb.loadObject(m_class.getClassName());
            if (hasattr) {
                if (hascont) {
                    mb.appendDUP();
                }
                m_component.genAttributeMarshal(mb);
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.loadObject()

            Constants.ACC_PUBLIC|Constants.ACC_FINAL,
            1, "java.lang.Object", 2, MARSHALCONTEXT_INTERFACE);
        mb.addException(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
        // TODO: optionally check for null value on object
        mb.loadContext();
        mb.loadObject();
        mb.appendCallVirtual("java.lang.Object.getClass",
            "()Ljava/lang/Class;");
        mb.appendCallVirtual("java.lang.Class.getName", "()Ljava/lang/String;");
        mb.appendCallInterface(GETMARSHALLER_METHOD, GETMARSHALLER_SIGNATURE);
        mb.appendDUP();
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.loadObject()

        mb.appendCreateNew("java.lang.StringBuffer");
        mb.appendDUP();
        mb.appendLoadConstant("Mapping for type ");
        mb.appendCallInit("java.lang.StringBuffer", "(Ljava/lang/String;)V");
        mb.appendDUP();
        mb.loadObject();
        mb.appendCallVirtual("java.lang.Object.getClass",
            "()Ljava/lang/Class;");
        mb.appendCallVirtual("java.lang.Class.getName", "()Ljava/lang/String;");
        mb.appendCallVirtual("java.lang.StringBuffer.append",
            "(Ljava/lang/String;)Ljava/lang/StringBuffer;");
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.loadObject()

            MethodBuilder.EXCEPTION_CONSTRUCTOR_SIGNATURE1);
        mb.appendThrow();
        
        // for valid extension mapping, just call the marshaller
        mb.targetNext(ifvalid);
        mb.loadObject();
        mb.loadContext();
        mb.appendCallInterface(MARSHALLERMARSHAL_METHOD,
            MARSHALLERMARSHAL_SIGNATURE);
        mb.appendReturn();
        mb.codeComplete(false);
View Full Code Here

Examples of org.jibx.binding.classes.ContextMethodBuilder.loadObject()

        mb.addException(MethodBuilder.FRAMEWORK_EXCEPTION_CLASS);
       
        // first part of generated code just checks if an object has
        //  been supplied; if it has, this can just go direct to
        //  unmarshalling
        mb.loadObject();
        BranchWrapper ifnnull = mb.appendIFNONNULL(this);
       
        // check for extension mapping handling required
        if (m_extensions != null) {
           
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.