*/
public void setTitle(String title) {
this.title = title;
}
/**
* Возвращает значение поля "Документы данного типа"
* @return Коллекция документов
*/
@XmlTransient
public Collection<Document> getDocumentCollection() {
return documentCollection;
}
/**
* Задает значение поля "Документы данного типа"
* @param documentCollection Коллекция документов
*/
public void setDocumentCollection(Collection<Document> documentCollection)
{
this.documentCollection = documentCollection;
}
/**
* Hash-код элемента
* @return Hash-значение
*/
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
/**
* Метод сравнения двух объектов (проверка равенства)
* @param object Объект, который будет сравниваться с текущим
* @return Результат сравнения
*/
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof DocumentType)) {
return false;
}
DocumentType other = (DocumentType) object;
if ((this.id == null && other.id != null) || (this.id != null &&
!this.id.equals(other.id))) {
return false;
}