new EntityCollectionSetterAdapter<AnnotatableEntity, Annotation>(AnnotatableEntity.class, Annotation.class, "annotations").setCollection(this, annotations);
}
-//********************** CLONE *****************************************/
+// **************** EMPTY ************************/
+ @Override
+ protected boolean isEmpty(){
+ return super.isEmpty()
+ && this.annotations.isEmpty()
+ && this.markers.isEmpty()
+ ;
+ }
+
+//********************** CLONE *****************************************/
@Override
public Object clone() throws CloneNotSupportedException{
return StringUtils.isNotBlank(str);
}
+// **************** EMPTY ************************/
+ protected boolean isEmpty(){
+ return true;
+ }
//********************** CLONE *****************************************/
// ****************** CONSTRUCTOR ********************************/
//for hibernate only
- private IdentifiableSource() {
+ protected IdentifiableSource() {
}
private IdentifiableSource(OriginalSourceType type) {
// ********************** GETTER /SETTER *****************************/
+ @Override
+ public boolean isEmpty(){
+ //nothing to do
+ return super.isEmpty();
+ }
//*********************************** CLONE *********************************************************/
this.citation = citation;
}
+// **************** EMPTY ************************/
+
+ @Override
+ protected boolean isEmpty(){
+ return super.isEmpty()
+ && this.getCitation() == null
+ && this.getCitationMicroReference() == null
+ && isBlank(this.getOriginalNameString())
+ ;
+ }
+
//****************** CLONE ************************************************/
@Override
return super.equals(obj);
}
+// **************** EMPTY ************************/
+
+ protected boolean isEmpty(){
+ return super.isEmpty()
+ //nothing to do
+ ;
+ }
+
//********************** CLONE *****************************************/
/**
this.nameUsedInSource = nameUsedInSource;
}
+// **************** EMPTY ************************/
+
+ @Override
+ public boolean isEmpty(){
+ return super.isEmpty()
+ && this.nameUsedInSource != null
+ ;
+ }
//*********************************** CLONE *********************************************************/
return result;
}
+// **************** EMPTY ************************/
+
+ @Override
+ public boolean isEmpty(){
+ return super.isEmpty()
+ && isBlank(this.getIdInSource())
+ && isBlank(this.getIdNamespace())
+ && this.links.isEmpty()
+ && this.cdmSource != null
+ && this.type == null
+ ;
+ }
//************************ toString ***************************************/
@Override