/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. */ DefaultAssociatedResource(final AggregateInformation object) { if (object != null) { this.associationType = object.getAssociationType(); this.initiativeType = object.getInitiativeType(); if (object instanceof DefaultAssociatedResource) { this.name = ((DefaultAssociatedResource) object).getName(); this.metadataReference = ((DefaultAssociatedResource) object).getMetadataReference(); } } }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. */ DefaultAssociatedResource(final AggregateInformation object) { if (object != null) { this.associationType = object.getAssociationType(); this.initiativeType = object.getInitiativeType(); if (object instanceof DefaultAssociatedResource) { this.name = ((DefaultAssociatedResource) object).getName(); this.metadataReference = ((DefaultAssociatedResource) object).getMetadataReference(); } } }