public interface RootInterface extends ComponentInterface
Important note: Do not provide an implementation of this interface unless you are a DD API provider!
| Modifier and Type | Field and Description |
|---|---|
static int |
MERGE_INTERSECT
Used in
merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int) method.The result of merge operation is the intersection of graphs. |
static int |
MERGE_UNION
Used in
merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int) method.The result of merge operation is the union of graphs. |
static int |
MERGE_UPDATE
Used in
merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int) method.The result of merge operation is the first graph updated with the changes in another graph. |
| Modifier and Type | Method and Description |
|---|---|
void |
merge(RootInterface root,
int mode)
Merging two bean tree structures together.
|
void |
write(FileObject fo)
Writes the deployment descriptor data from deployment descriptor bean graph to file object.
This is more convenient method than CommonDDBean.write(java.io.OutputStream) method.The locking problems are solved for the user in this method. |
addPropertyChangeListener, clone, getId, getValue, removePropertyChangeListener, setId, writegetAllDescriptions, getDefaultDescription, getDescription, removeAllDescriptions, removeDescription, removeDescriptionForLocale, setAllDescriptions, setDescription, setDescriptiongetAllDisplayNames, getDefaultDisplayName, getDisplayName, removeAllDisplayNames, removeDisplayName, removeDisplayNameForLocale, setAllDisplayNames, setDisplayName, setDisplayNameaddBean, addBean, createBeanfindBeanByNamegetAllIcons, getDefaultIcon, getLargeIcon, getLargeIcon, getSmallIcon, getSmallIcon, removeAllIcons, removeIcon, removeIcon, removeLargeIcon, removeLargeIcon, removeSmallIcon, removeSmallIcon, setAllIcons, setIcon, setLargeIcon, setLargeIcon, setSmallIcon, setSmallIconstatic final int MERGE_INTERSECT
merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int) method.static final int MERGE_UNION
merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int) method.static final int MERGE_UPDATE
merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int) method.void write(FileObject fo) throws IOException
CommonDDBean.write(java.io.OutputStream) method.fo - File Object where to write the content of depl.descriptor holding in bean tree structureIOExceptionvoid merge(RootInterface root, int mode)
There are several ways odf merging :
Let's define:
G1 the current graph and G2 the new graph we want to merge
E1 the set of element of G1 that don't exist anymore in G2.
E2 the set of new elements of G2 that don't exist in G1.
Then,
MERGE_UPDATE is G1 - E1 + E2 (G1 becomes G2)
MERGE_UNION is G1 U G2 <=> G1 + E2
MERGE_INTERSECT is G1 n G2 <=> (G1 U G2) - E1 - E2
bean - root of the bean graph that is merged with actual bean graphmode - type of merging (INTERSECT, UNION, UPDATE)Built on May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.