Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMCloneOptions


   
    private void checkOMSourcedElement(OMSourcedElement element) throws AxisFault {
        // We use a clone in order to leave the original state of the OMSourcedElements untouched.
        // This is possible because JiBXDataSource is non destructive and implements the copy()
        // method.
        OMCloneOptions options = new OMCloneOptions();
        options.setCopyOMDataSources(true);
        boolean oldExpanded = element.isExpanded();
        OMSourcedElement clone = (OMSourcedElement)element.clone(options);
        if (element.isExpanded() != oldExpanded) {
            throw new AxisFault("Ooops! Accidentally expanded the original OMSourcedElement; this is unexpected...");
        }
View Full Code Here


            log.debug("cloneOMElement start");
            log.debug("  element string =" + getLocalName());
            log.debug(" isComplete = " + isComplete());
            log.debug("  builder = " + getBuilder());
        }
        return (OMElement)clone(new OMCloneOptions());
    }
View Full Code Here

TOP

Related Classes of org.apache.axiom.om.OMCloneOptions

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.