@Override protected void cloneInto(WorkflowBean clone, Cloning cloning) { super.cloneInto(clone, cloning); AbstractGranularDepthPort clonePort = (AbstractGranularDepthPort) clone; clonePort.setGranularDepth(getGranularDepth()); } }
@Override public void visitAbstractGranularDepthPort(AbstractGranularDepthPort bean) { Integer granularDepth = bean.getGranularDepth(); if (granularDepth != null) { if (granularDepth < 0) listener.negativeValue(bean, "granularDepth", granularDepth); Integer depth = bean.getDepth(); if (depth != null) if (granularDepth > depth) listener.incompatibleGranularDepth(bean, depth, granularDepth); } if (checkComplete && granularDepth == null) listener.nullField(bean, "granularDepth"); }