public class DefaultHandler extends Handler
| Modifier and Type | Method and Description |
|---|---|
TableBean<?> |
create(HandlerCtx ctx)
This method is invoked both when the XBL is being created and during
comparison when an already created XBL is being compared with a live
structure.
|
protected StructureBean |
doExpand(StructureBean s,
int expandDepth) |
static StructureBean |
expand(StructureBean s,
int expandDepth)
Performs the expansion.
|
static DefaultHandler |
getInstance() |
getAdditionalData, getAdditionalSectionIds, getAdditionalSelectables, getConnectDatapublic static DefaultHandler getInstance()
public TableBean<?> create(HandlerCtx ctx) throws TVCException
Handler
The purpose is to create a TableBean that holds the objects and
connections that are supposed to be serialized down to the XBL/XML data.
Note: This method returns a TableBean. The normal usage of the
XBL is that this method should return an instance of
StructureBean (which is a sub-interface to the TableBean). This
is because the Comparison feature can only do comparisons between two
structure beans.
create in class Handlerctx - The contextTableBeanTVCException - If any errors occurs that are unrecoverableprotected StructureBean doExpand(StructureBean s, int expandDepth) throws TVCException
TVCExceptionpublic static StructureBean expand(StructureBean s, int expandDepth) throws TVCException
s - The structure to expandexpandDepth - The expand depthTVCException - Upon errors that is generated by Matrix.Copyright ? Technia AB. All Rights Reserved.