return dockingPathElement;
}
public Object deserialize(Element element) {
//DockingState dockingState = (DockingState) deserializationStack.popObject();
DockingPath dockingPath = new DockingPath();
String dockingPathRootPortId = element.getAttribute(PersistenceConstants.DOCKING_PATH_ATTRIBUTE_ROOT_PORT_ID);
String siblingId = element.getAttribute(PersistenceConstants.DOCKING_PATH_ATTRIBUTE_SIBLING_ID);
String isTabbed = element.getAttribute(PersistenceConstants.DOCKING_PATH_ATTRIBUTE_IS_TABBED);
dockingPath.setRootPortId(dockingPathRootPortId);
if (siblingId != null && !"".equals(siblingId)) {
dockingPath.setSiblingId(siblingId);
}
if (isTabbed != null && !"".equals(isTabbed)) {
dockingPath.setTabbed(Boolean.valueOf(isTabbed).booleanValue());
} else {
dockingPath.setTabbed(false);
}
ISerializer layoutNodeSerializer = SerializerRegistry.getSerializer(LayoutNode.class);
NodeList splitNodeList = element.getElementsByTagName(PersistenceConstants.SPLIT_NODE_ELEMENT_NAME);
if (splitNodeList.getLength() > 0 && splitNodeList.item(0) instanceof Element) {
Element splitNodeElement = (Element) splitNodeList.item(0);
SplitNode splitNode = (SplitNode) layoutNodeSerializer.deserialize(splitNodeElement);
dockingPath.getNodes().add(splitNode);
}
return dockingPath;
}