All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.regnosys.rosetta.translate.GeneratorParams Maven / Gradle / Ivy

There is a newer version: 11.25.1
Show newest version
package com.regnosys.rosetta.translate;

import com.regnosys.rosetta.rosetta.RosettaSynonymSource;
import com.regnosys.rosetta.rosetta.RosettaType;
import java.net.URL;
import java.util.Collection;
import org.eclipse.xtend.lib.annotations.Data;
import org.eclipse.xtext.xbase.lib.Pure;
import org.eclipse.xtext.xbase.lib.util.ToStringBuilder;

@Data
@SuppressWarnings("all")
public class GeneratorParams {
  private final URL schema;

  private final Collection rosettaEntities;

  private final Collection sources;

  private final Collection topLevelTags;

  private final String childPackageName;

  public GeneratorParams(final URL schema, final Collection rosettaEntities, final Collection sources, final Collection topLevelTags, final String childPackageName) {
    super();
    this.schema = schema;
    this.rosettaEntities = rosettaEntities;
    this.sources = sources;
    this.topLevelTags = topLevelTags;
    this.childPackageName = childPackageName;
  }

  @Override
  @Pure
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((this.schema== null) ? 0 : this.schema.hashCode());
    result = prime * result + ((this.rosettaEntities== null) ? 0 : this.rosettaEntities.hashCode());
    result = prime * result + ((this.sources== null) ? 0 : this.sources.hashCode());
    result = prime * result + ((this.topLevelTags== null) ? 0 : this.topLevelTags.hashCode());
    return prime * result + ((this.childPackageName== null) ? 0 : this.childPackageName.hashCode());
  }

  @Override
  @Pure
  public boolean equals(final Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    GeneratorParams other = (GeneratorParams) obj;
    if (this.schema == null) {
      if (other.schema != null)
        return false;
    } else if (!this.schema.equals(other.schema))
      return false;
    if (this.rosettaEntities == null) {
      if (other.rosettaEntities != null)
        return false;
    } else if (!this.rosettaEntities.equals(other.rosettaEntities))
      return false;
    if (this.sources == null) {
      if (other.sources != null)
        return false;
    } else if (!this.sources.equals(other.sources))
      return false;
    if (this.topLevelTags == null) {
      if (other.topLevelTags != null)
        return false;
    } else if (!this.topLevelTags.equals(other.topLevelTags))
      return false;
    if (this.childPackageName == null) {
      if (other.childPackageName != null)
        return false;
    } else if (!this.childPackageName.equals(other.childPackageName))
      return false;
    return true;
  }

  @Override
  @Pure
  public String toString() {
    ToStringBuilder b = new ToStringBuilder(this);
    b.add("schema", this.schema);
    b.add("rosettaEntities", this.rosettaEntities);
    b.add("sources", this.sources);
    b.add("topLevelTags", this.topLevelTags);
    b.add("childPackageName", this.childPackageName);
    return b.toString();
  }

  @Pure
  public URL getSchema() {
    return this.schema;
  }

  @Pure
  public Collection getRosettaEntities() {
    return this.rosettaEntities;
  }

  @Pure
  public Collection getSources() {
    return this.sources;
  }

  @Pure
  public Collection getTopLevelTags() {
    return this.topLevelTags;
  }

  @Pure
  public String getChildPackageName() {
    return this.childPackageName;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy