Class OMCloneOptions

    • Constructor Detail

      • OMCloneOptions

        public OMCloneOptions()
    • Method Detail

      • isFetchDataHandlers

        public boolean isFetchDataHandlers()
        Determine whether DataHandler objects should be fetched when cloning OMText nodes. See setFetchDataHandlers(boolean) for more information about this option.
        Returns:
        the current value of this option
      • setFetchDataHandlers

        public void setFetchDataHandlers​(boolean fetchDataHandlers)
        Specify whether DataHandler objects should be fetched when cloning OMText nodes. If this option is set to false (default) then an OMText node backed by a DataHandlerProvider will be cloned by copying the reference to that DataHandlerProvider to the cloned OMText node. This implies that if the original tree was constructed from an XOP encoded stream, then the clone may become unusable if that stream is closed. If this option is set to true, then DataHandlerProvider references will be replaced by DataHandler references. In addition, the necessary actions are taken to ensure that the content of these DataHandler instances is fetched into memory or temporary storage, so that the clones remain usable even after the underlying stream is closed.
        Parameters:
        fetchDataHandlers - the value to set for this option
      • isPreserveModel

        public boolean isPreserveModel()
        Determine whether domain specific extensions to the object model should be preserved. See setPreserveModel(boolean) for more information about this option.
        Returns:
        the current value of this option
      • setPreserveModel

        public void setPreserveModel​(boolean preserveModel)
        Specify whether domain specific extensions to the object model should be preserved. If this option is set to false (default), then the object model is always cloned as plain XML even if the original uses domain specific extensions such as SOAP. If this option is set to true, then domain specific extensions are preserved.
        Parameters:
        preserveModel - the value to set for this option