Exemplo n.º 1
0
 public MainModelNode() {
   super(CLASSNAME);
   add(measures);
   add(dimensions);
   setExpanded(true);
   dimensions.setExpanded(true);
 }
Exemplo n.º 2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((dimensions == null) ? 0 : dimensions.hashCode());
   result = prime * result + ((listener == null) ? 0 : listener.hashCode());
   result = prime * result + ((measures == null) ? 0 : measures.hashCode());
   result = prime * result + ((name == null) ? 0 : name.hashCode());
   return result;
 }
 public boolean equals(DimensionMetaDataCollection obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   DimensionMetaDataCollection other = (DimensionMetaDataCollection) obj;
   if (name == null) {
     if (other.name != null) {
       return false;
     }
   } else if (!name.equals(other.name)) {
     return false;
   }
   return true;
 }
Exemplo n.º 4
0
 public boolean equals(MainModelNode obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if (getClass() != obj.getClass()) {
     return false;
   }
   MainModelNode other = obj;
   if (dimensions == null) {
     if (other.dimensions != null) {
       return false;
     }
   } else if (!dimensions.equals(other.dimensions)) {
     return false;
   }
   if (listener == null) {
     if (other.listener != null) {
       return false;
     }
   } else if (!listener.equals(other.listener)) {
     return false;
   }
   if (measures == null) {
     if (other.measures != null) {
       return false;
     }
   } else if (!measures.equals(other.measures)) {
     return false;
   }
   if (name == null) {
     if (other.name != null) {
       return false;
     }
   } else if (!name.equals(other.name)) {
     return false;
   }
   return true;
 }