Esempio n. 1
0
 /** {@inheritDoc} */
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((adminobjectClass == null) ? 0 : adminobjectClass.hashCode());
   result =
       prime * result + ((adminobjectInterface == null) ? 0 : adminobjectInterface.hashCode());
   result = prime * result + ((configProperties == null) ? 0 : configProperties.hashCode());
   result = prime * result + ((id == null) ? 0 : id.hashCode());
   return result;
 }
Esempio n. 2
0
 /**
  * @param adminobjectInterface full qualified name of the interface
  * @param adminobjectClass full qualified name of the implementation class
  * @param configProperty List of config propeties
  * @param id xmlid
  */
 public AdminObjectImpl(
     XsdString adminobjectInterface,
     XsdString adminobjectClass,
     List<ConfigProperty> configProperty,
     String id) {
   super(null);
   this.adminobjectInterface = adminobjectInterface;
   if (!XsdString.isNull(this.adminobjectInterface))
     this.adminobjectInterface.setTag(XML.ELEMENT_ADMINOBJECT_INTERFACE);
   this.adminobjectClass = adminobjectClass;
   if (!XsdString.isNull(this.adminobjectClass))
     this.adminobjectClass.setTag(XML.ELEMENT_ADMINOBJECT_CLASS);
   if (configProperty != null) {
     this.configProperties = new ArrayList<ConfigProperty>(configProperty);
   } else {
     this.configProperties = new ArrayList<ConfigProperty>(0);
   }
   this.id = id;
 }
Esempio n. 3
0
 /** {@inheritDoc} */
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (!(obj instanceof AdminObjectImpl)) return false;
   AdminObjectImpl other = (AdminObjectImpl) obj;
   if (adminobjectClass == null) {
     if (other.adminobjectClass != null) return false;
   } else if (!adminobjectClass.equals(other.adminobjectClass)) return false;
   if (adminobjectInterface == null) {
     if (other.adminobjectInterface != null) return false;
   } else if (!adminobjectInterface.equals(other.adminobjectInterface)) return false;
   if (configProperties == null) {
     if (other.configProperties != null) return false;
   } else if (!configProperties.equals(other.configProperties)) return false;
   if (id == null) {
     if (other.id != null) return false;
   } else if (!id.equals(other.id)) return false;
   return true;
 }