package pl.edu.icm.unicore.spring.central.site;

import org.w3.x2005.x08.addressing.EndpointReferenceType;

import java.io.Serializable;
import java.util.Objects;

public class UnicoreSiteEntity implements Serializable {
    private final EndpointReferenceType endpointReferenceType;

    public UnicoreSiteEntity(EndpointReferenceType endpointReferenceType) {
        this.endpointReferenceType = endpointReferenceType;
    }

    public String getEndpointAddress() {
        return endpointReferenceType.getAddress().getStringValue();
    }

    @Override
    public String toString() {
        return String.format("UnicoreSiteEntity{endpointReferenceType=%s}", endpointReferenceType);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UnicoreSiteEntity that = (UnicoreSiteEntity) o;
        return Objects.equals(endpointReferenceType, that.endpointReferenceType);
    }

    @Override
    public int hashCode() {
        return Objects.hash(endpointReferenceType);
    }
}

@@ -417,24 +417,131 @@
 ype;%0A    %7D%0A%0A
+    public EndpointReferenceType getEndpointReferenceType() %7B%0A        return endpointReferenceType;%0A    %7D%0A%0A
     public S

fix missing get EPR method