Package com.sforce.ws.parser

Examples of com.sforce.ws.parser.XmlInputStream


        return null;
    }

    private XmlInputStream createCorrespondingXmlInputStream(Component metadata) throws Exception, PullParserException {
        String body = replaceNamespace(metadata.getBody(), "urn:tooling.soap.sforce.com");
        XmlInputStream xis = new XmlInputStream();
        xis.setInput(new ByteArrayInputStream(body.getBytes()), "UTF-8");
        return xis;
    }
View Full Code Here


        }

        if (setMetadataMethod != null) {
            Class<?> metadataType = (setMetadataMethod.getParameterTypes())[0]; // There is only one parameter
            Object metadataInstance = metadataType.newInstance();
            XmlInputStream xis = createCorrespondingXmlInputStream(metadataComponent);
            Method loadMethod = metadataType.getMethod("load", XmlInputStream.class, TypeMapper.class);
            loadMethod.invoke(metadataInstance, xis, new TypeMapper());
            setMetadataMethod.invoke(containerMember, metadataInstance);
        }
    }
View Full Code Here

TOP

Related Classes of com.sforce.ws.parser.XmlInputStream

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.