public class Merger extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_COMPANION |
static int |
ALL_ORIGINAL
Different mode constants.
|
static int |
COMPANION_OVER |
protected org.openmicroscopy.xml.OMENode |
compOme |
static DocumentBuilderFactory |
DOC_FACT
Factory for generating document builders.
|
protected org.openmicroscopy.xml.OMENode |
finalOme |
protected int |
mode |
protected org.openmicroscopy.xml.OMENode |
ome |
static int |
ORIGINAL_OVER |
Constructor and Description |
---|
Merger(org.openmicroscopy.xml.OMENode originalOme,
File compFile,
JComponent c) |
Modifier and Type | Method and Description |
---|---|
static Element |
createClone(Element el,
Document doc) |
org.openmicroscopy.xml.OMENode |
getRoot() |
static org.openmicroscopy.xml.OMENode |
merge(org.openmicroscopy.xml.OMENode over,
org.openmicroscopy.xml.OMENode under)
Merge two OME-XML Trees, when a conflict arrises, use the
"over" tree's node instead of the "under" tree's.
|
public static final DocumentBuilderFactory DOC_FACT
public static final int ALL_ORIGINAL
public static final int ALL_COMPANION
public static final int ORIGINAL_OVER
public static final int COMPANION_OVER
protected org.openmicroscopy.xml.OMENode ome
protected org.openmicroscopy.xml.OMENode compOme
protected org.openmicroscopy.xml.OMENode finalOme
protected int mode
public Merger(org.openmicroscopy.xml.OMENode originalOme, File compFile, JComponent c)
public org.openmicroscopy.xml.OMENode getRoot()
public static org.openmicroscopy.xml.OMENode merge(org.openmicroscopy.xml.OMENode over, org.openmicroscopy.xml.OMENode under)
over
- The OMENode that by default has higher priority.under
- The OMENode that by default has lower priority.Copyright © 2014 Open Microscopy Environment