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
RootInterface.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
RootInterface.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
RootInterface.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, write
getAllDescriptions, getDefaultDescription, getDescription, removeAllDescriptions, removeDescription, removeDescriptionForLocale, setAllDescriptions, setDescription, setDescription
getAllDisplayNames, getDefaultDisplayName, getDisplayName, removeAllDisplayNames, removeDisplayName, removeDisplayNameForLocale, setAllDisplayNames, setDisplayName, setDisplayName
addBean, addBean, createBean
findBeanByName
getAllIcons, getDefaultIcon, getLargeIcon, getLargeIcon, getSmallIcon, getSmallIcon, removeAllIcons, removeIcon, removeIcon, removeLargeIcon, removeLargeIcon, removeSmallIcon, removeSmallIcon, setAllIcons, setIcon, setLargeIcon, setLargeIcon, setSmallIcon, setSmallIcon
static final int MERGE_INTERSECT
RootInterface.merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int)
method.static final int MERGE_UNION
RootInterface.merge(org.netbeans.modules.j2ee.dd.api.common.RootInterface, int)
method.static final int MERGE_UPDATE
RootInterface.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 structureIOException
void 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
root
- of the bean graph that is merged with actual bean graphmode
- type of merging (INTERSECT, UNION, UPDATE)