Exemplo n.º 1
0
 public boolean equals(
     ObjectLocator thisLocator,
     ObjectLocator thatLocator,
     Object object,
     EqualsStrategy strategy) {
   if (!(object instanceof SecureSocketSettings)) {
     return false;
   }
   if (this == object) {
     return true;
   }
   final SecureSocketSettings that = ((SecureSocketSettings) object);
   {
     SecureSocketModeEnum lhsMode;
     lhsMode = this.getMode();
     SecureSocketModeEnum rhsMode;
     rhsMode = that.getMode();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "mode", lhsMode),
         LocatorUtils.property(thatLocator, "mode", rhsMode),
         lhsMode,
         rhsMode)) {
       return false;
     }
   }
   {
     String lhsProtocol;
     lhsProtocol = this.getProtocol();
     String rhsProtocol;
     rhsProtocol = that.getProtocol();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "protocol", lhsProtocol),
         LocatorUtils.property(thatLocator, "protocol", rhsProtocol),
         lhsProtocol,
         rhsProtocol)) {
       return false;
     }
   }
   {
     String lhsCertificateAuthorityFile;
     lhsCertificateAuthorityFile = this.getCertificateAuthorityFile();
     String rhsCertificateAuthorityFile;
     rhsCertificateAuthorityFile = that.getCertificateAuthorityFile();
     if (!strategy.equals(
         LocatorUtils.property(
             thisLocator, "certificateAuthorityFile", lhsCertificateAuthorityFile),
         LocatorUtils.property(
             thatLocator, "certificateAuthorityFile", rhsCertificateAuthorityFile),
         lhsCertificateAuthorityFile,
         rhsCertificateAuthorityFile)) {
       return false;
     }
   }
   {
     String lhsClientCertificateFile;
     lhsClientCertificateFile = this.getClientCertificateFile();
     String rhsClientCertificateFile;
     rhsClientCertificateFile = that.getClientCertificateFile();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "clientCertificateFile", lhsClientCertificateFile),
         LocatorUtils.property(thatLocator, "clientCertificateFile", rhsClientCertificateFile),
         lhsClientCertificateFile,
         rhsClientCertificateFile)) {
       return false;
     }
   }
   {
     String lhsClientKeyFile;
     lhsClientKeyFile = this.getClientKeyFile();
     String rhsClientKeyFile;
     rhsClientKeyFile = that.getClientKeyFile();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "clientKeyFile", lhsClientKeyFile),
         LocatorUtils.property(thatLocator, "clientKeyFile", rhsClientKeyFile),
         lhsClientKeyFile,
         rhsClientKeyFile)) {
       return false;
     }
   }
   {
     String lhsClientKeyPassword;
     lhsClientKeyPassword = this.getClientKeyPassword();
     String rhsClientKeyPassword;
     rhsClientKeyPassword = that.getClientKeyPassword();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "clientKeyPassword", lhsClientKeyPassword),
         LocatorUtils.property(thatLocator, "clientKeyPassword", rhsClientKeyPassword),
         lhsClientKeyPassword,
         rhsClientKeyPassword)) {
       return false;
     }
   }
   {
     Boolean lhsClientKeyPEM;
     lhsClientKeyPEM = this.isClientKeyPEM();
     Boolean rhsClientKeyPEM;
     rhsClientKeyPEM = that.isClientKeyPEM();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "clientKeyPEM", lhsClientKeyPEM),
         LocatorUtils.property(thatLocator, "clientKeyPEM", rhsClientKeyPEM),
         lhsClientKeyPEM,
         rhsClientKeyPEM)) {
       return false;
     }
   }
   {
     String lhsServerKeyStoreFile;
     lhsServerKeyStoreFile = this.getServerKeyStoreFile();
     String rhsServerKeyStoreFile;
     rhsServerKeyStoreFile = that.getServerKeyStoreFile();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "serverKeyStoreFile", lhsServerKeyStoreFile),
         LocatorUtils.property(thatLocator, "serverKeyStoreFile", rhsServerKeyStoreFile),
         lhsServerKeyStoreFile,
         rhsServerKeyStoreFile)) {
       return false;
     }
   }
   {
     String lhsServerKeyStorePassword;
     lhsServerKeyStorePassword = this.getServerKeyStorePassword();
     String rhsServerKeyStorePassword;
     rhsServerKeyStorePassword = that.getServerKeyStorePassword();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "serverKeyStorePassword", lhsServerKeyStorePassword),
         LocatorUtils.property(thatLocator, "serverKeyStorePassword", rhsServerKeyStorePassword),
         lhsServerKeyStorePassword,
         rhsServerKeyStorePassword)) {
       return false;
     }
   }
   {
     String lhsClientKeyStoreFile;
     lhsClientKeyStoreFile = this.getClientKeyStoreFile();
     String rhsClientKeyStoreFile;
     rhsClientKeyStoreFile = that.getClientKeyStoreFile();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "clientKeyStoreFile", lhsClientKeyStoreFile),
         LocatorUtils.property(thatLocator, "clientKeyStoreFile", rhsClientKeyStoreFile),
         lhsClientKeyStoreFile,
         rhsClientKeyStoreFile)) {
       return false;
     }
   }
   {
     String lhsClientKeyStorePassword;
     lhsClientKeyStorePassword = this.getClientKeyStorePassword();
     String rhsClientKeyStorePassword;
     rhsClientKeyStorePassword = that.getClientKeyStorePassword();
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "clientKeyStorePassword", lhsClientKeyStorePassword),
         LocatorUtils.property(thatLocator, "clientKeyStorePassword", rhsClientKeyStorePassword),
         lhsClientKeyStorePassword,
         rhsClientKeyStorePassword)) {
       return false;
     }
   }
   {
     List<Property> lhsProperty;
     lhsProperty =
         (((this.property != null) && (!this.property.isEmpty())) ? this.getProperty() : null);
     List<Property> rhsProperty;
     rhsProperty =
         (((that.property != null) && (!that.property.isEmpty())) ? that.getProperty() : null);
     if (!strategy.equals(
         LocatorUtils.property(thisLocator, "property", lhsProperty),
         LocatorUtils.property(thatLocator, "property", rhsProperty),
         lhsProperty,
         rhsProperty)) {
       return false;
     }
   }
   return true;
 }