public static void copyFromJAXB(
      SystemConfigurationType jaxb,
      RSystemConfiguration repo,
      PrismContext prismContext,
      IdGeneratorResult generatorResult)
      throws DtoTranslationException {
    RObject.copyFromJAXB(jaxb, repo, prismContext, generatorResult);

    repo.setName(RPolyString.copyFromJAXB(jaxb.getName()));
  }
Esempio n. 2
0
  public static Set<RPolyString> listPolyToSet(List<PolyStringType> list) {
    if (list == null || list.isEmpty()) {
      return null;
    }

    Set<RPolyString> set = new HashSet<>();
    for (PolyStringType str : list) {
      set.add(RPolyString.copyFromJAXB(str));
    }
    return set;
  }
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;

    RSystemConfiguration that = (RSystemConfiguration) o;

    if (name != null ? !name.equals(that.name) : that.name != null) return false;

    return true;
  }
 @Override
 public int hashCode() {
   int result = super.hashCode();
   result = 31 * result + (name != null ? name.hashCode() : 0);
   return result;
 }