CoreMetadata getCoreMd() { return new CoreMetadata(coreMd); }
/** * Add a creator to the collection. * * @param creator the creators, must not be <code>null</code> * @throws IllegalArgumentException if <code>creator<code> is <code>null</code> or the empty string */ public void addCreator(String... creator) { coreMd.addCreator(creator); }
/** * Add a subject * * @param subject the subject, must not be <code>null</code> * @throws IllegalArgumentException if <code>subject</code> is <code>null</code> or the empty string */ public void addSubject(String... subject) { coreMd.addSubject(subject); }
CoreMetadata(CoreMetadata toCopy) { this.creators = toCopy.getCreators(); this.subjects = toCopy.getSubjects(); this.type = toCopy.getType(); this.title = toCopy.getTitle(); this.rights = toCopy.getRights(); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; DcsCollection that = (DcsCollection) o; if (coreMd != null ? !coreMd.equals(that.coreMd) : that.coreMd != null) return false; if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; if (metadataRef != null ? !metadataRef.equals(that.metadataRef) : that.metadataRef != null) return false; if (parent != null ? !parent.equals(that.parent) : that.parent != null) return false; return true; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (collections != null ? collections.hashCode() : 0); result = 31 * result + (metadata != null ? metadata.hashCode() : 0); result = 31 * result + (metadataRefs != null ? metadataRefs.hashCode() : 0); result = 31 * result + (relations != null ? relations.hashCode() : 0); result = 31 * result + (formerExternalRefs != null ? formerExternalRefs.hashCode() : 0); result = 31 * result + (parents != null ? parents.hashCode() : 0); result = 31 * result + (isDigitalSurrogate != null ? isDigitalSurrogate.hashCode() : 0); result = 31 * result + (coreMd != null ? coreMd.hashCode() : 0); return result; }
public String getType() { return coreMd.getType(); }
/** * The title of the collection. * * @return the title, or <code>null</code> if no title has been set */ public String getTitle() { return coreMd.getTitle(); }
/** * The creator(s) of the collection. * * @return a defensive copy of the creators, never <code>null</code> */ public Set<String> getCreators() { return coreMd.getCreators(); }
/** * The subject(s) of the collection. * * @return a defensive copy of the subjects */ public Set<String> getSubjects() { return coreMd.getSubjects(); }
/** * The rights for this deliverable unit. * * @return the rights */ public DcsRights getRights() { return coreMd.getRights(); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; DcsDeliverableUnit that = (DcsDeliverableUnit) o; if (collections != null ? !collections.equals(that.collections) : that.collections != null) return false; if (coreMd != null ? !coreMd.equals(that.coreMd) : that.coreMd != null) return false; if (formerExternalRefs != null ? !formerExternalRefs.equals(that.formerExternalRefs) : that.formerExternalRefs != null) return false; if (isDigitalSurrogate != null ? !isDigitalSurrogate.equals(that.isDigitalSurrogate) : that.isDigitalSurrogate != null) return false; if (metadata != null ? !metadata.equals(that.metadata) : that.metadata != null) return false; if (metadataRefs != null ? !metadataRefs.equals(that.metadataRefs) : that.metadataRefs != null) return false; if (parents != null ? !parents.equals(that.parents) : that.parents != null) return false; if (relations != null ? !relations.equals(that.relations) : that.relations != null) return false; return true; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (coreMd != null ? coreMd.hashCode() : 0); result = 31 * result + (parent != null ? parent.hashCode() : 0); result = 31 * result + (metadata != null ? metadata.hashCode() : 0); result = 31 * result + (metadataRef != null ? metadataRef.hashCode() : 0); return result; }
public String getType() { return coreMd.getType(); }
/** * The title of the deliverable unit. * * @return the title, or <code>null</code> if no title has been set */ public String getTitle() { return coreMd.getTitle(); }
/** * The creator(s) of the deliverable unit. * * @return a defensive copy of the creators, never <code>null</code> */ public Set<String> getCreators() { return coreMd.getCreators(); }
/** * The subject(s) of the deliverable unit. * * @return a defensive copy of the subjects */ public Set<String> getSubjects() { return coreMd.getSubjects(); }
/** * Add a subject * * @param subject the subject, must not be <code>null</code> * @throws IllegalArgumentException if <code>subject</code> is <code>null</code> or the empty string */ public void addSubject(String... subject) { coreMd.addSubject(subject); }
/** * Add a creator to the deliverable unit. * * @param creator the creators, must not be <code>null</code> * @throws IllegalArgumentException if <code>creator<code> is <code>null</code> or the empty string */ public void addCreator(String... creator) { coreMd.addCreator(creator); }
CoreMetadata getCoreMd() { return new CoreMetadata(coreMd); }