public StructureMapGroupRuleTargetComponent copy() { StructureMapGroupRuleTargetComponent dst = new StructureMapGroupRuleTargetComponent(); copyValues(dst); dst.context = context == null ? null : context.copy(); dst.contextType = contextType == null ? null : contextType.copy(); dst.element = element == null ? null : element.copy(); dst.variable = variable == null ? null : variable.copy(); if (listMode != null) { dst.listMode = new ArrayList<Enumeration<StructureMapTargetListMode>>(); for (Enumeration<StructureMapTargetListMode> i : listMode) dst.listMode.add(i.copy()); }; dst.listRuleId = listRuleId == null ? null : listRuleId.copy(); dst.transform = transform == null ? null : transform.copy(); if (parameter != null) { dst.parameter = new ArrayList<StructureMapGroupRuleTargetParameterComponent>(); for (StructureMapGroupRuleTargetParameterComponent i : parameter) dst.parameter.add(i.copy()); }; return dst; }
public StructureMapGroupRuleTargetComponent copy() { StructureMapGroupRuleTargetComponent dst = new StructureMapGroupRuleTargetComponent(); copyValues(dst); dst.context = context == null ? null : context.copy(); dst.contextType = contextType == null ? null : contextType.copy(); dst.element = element == null ? null : element.copy(); dst.variable = variable == null ? null : variable.copy(); if (listMode != null) { dst.listMode = new ArrayList<Enumeration<StructureMapTargetListMode>>(); for (Enumeration<StructureMapTargetListMode> i : listMode) dst.listMode.add(i.copy()); }; dst.listRuleId = listRuleId == null ? null : listRuleId.copy(); dst.transform = transform == null ? null : transform.copy(); if (parameter != null) { dst.parameter = new ArrayList<StructureMapGroupRuleTargetParameterComponent>(); for (StructureMapGroupRuleTargetParameterComponent i : parameter) dst.parameter.add(i.copy()); }; return dst; }