/** * Creates and returns a deep copy of a given {@code javax.xml.bind.JAXBElement<com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionEvaluatorType>} instance. * * @param e * The instance to copy or {@code null}. * @return * A deep copy of {@code e} or {@code null} if {@code e} is {@code null}. */ @SuppressWarnings("unchecked") private static JAXBElement<ScriptExpressionEvaluatorType> copyOfScriptExpressionEvaluatorTypeElement(final JAXBElement<ScriptExpressionEvaluatorType> e) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 if (e!= null) { final JAXBElement<ScriptExpressionEvaluatorType> copy = new JAXBElement<ScriptExpressionEvaluatorType>(e.getName(), e.getDeclaredType(), e.getScope(), e.getValue()); copy.setNil(e.isNil()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionEvaluatorType copy.setValue(((((ScriptExpressionEvaluatorType) copy.getValue()) == null)?null:((ScriptExpressionEvaluatorType) copy.getValue()).clone())); return copy; } return null; }
clone.script = ((this.script == null)?null:((this.getScript() == null)?null:this.getScript().clone())); return clone;
/** * Creates a new {@code HookType} instance by deeply copying a given {@code HookType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public HookType(final HookType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(); if (o == null) { throw new NullPointerException("Cannot create a copy of 'HookType' from 'null'."); } // CBuiltinLeafInfo: java.lang.String this.name = ((o.name == null)?null:o.getName()); // CBuiltinLeafInfo: java.lang.String this.description = ((o.description == null)?null:o.getDescription()); // CBuiltinLeafInfo: java.lang.Boolean this.enabled = ((o.enabled == null)?null:o.isEnabled()); // CEnumLeafInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ModelStateType this.state = ((o.state == null)?null:o.getState()); // CBuiltinLeafInfo: javax.xml.namespace.QName this.focusType = ((o.focusType == null)?null:o.getFocusType()); // CBuiltinLeafInfo: java.lang.String this.ref = ((o.ref == null)?null:o.getRef()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ScriptExpressionEvaluatorType this.script = ((o.script == null)?null:((o.getScript() == null)?null:o.getScript().clone())); }