/** * Creates and returns a deep copy of this object. * * @return A deep copy of this object. */ @Override public XsdCtApplianceProgramConfigurations clone() { try { { // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 final XsdCtApplianceProgramConfigurations clone = ((XsdCtApplianceProgramConfigurations) super.clone()); // 'ApplianceProgramConfiguration' collection. if (this.applianceProgramConfiguration != null) { clone.applianceProgramConfiguration = null; copyApplianceProgramConfiguration( this.getApplianceProgramConfiguration(), clone.getApplianceProgramConfiguration()); } return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Creates a new {@code XsdCtApplianceProgramConfigurations} instance by deeply copying a given * {@code XsdCtApplianceProgramConfigurations} instance. * * @param o The instance to copy. * @throws NullPointerException if {@code o} is {@code null}. */ public XsdCtApplianceProgramConfigurations(final XsdCtApplianceProgramConfigurations o) { // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 super(); if (o == null) { throw new NullPointerException( "Cannot create a copy of 'XsdCtApplianceProgramConfigurations' from 'null'."); } // 'ApplianceProgramConfiguration' collection. if (o.applianceProgramConfiguration != null) { copyApplianceProgramConfiguration( o.getApplianceProgramConfiguration(), this.getApplianceProgramConfiguration()); } }