From: Niels Erik G. Nielsen Date: Wed, 30 Apr 2014 01:35:46 +0000 (-0400) Subject: Renames methods X-Git-Tag: v0.0.7~8 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=2f70bdfc5b664dd35b05d3f70cb2a573e7cc9585;p=mkjsf-moved-to-github.git Renames methods --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Service.java b/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Service.java index 1d3024a..8b86fd6 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Service.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Service.java @@ -606,15 +606,15 @@ public class Pz2Service implements StateListener, Configurable, Serializable { } public void setServiceTypePZ2() { - setServiceType(SERVICE_TYPE_PZ2); + setServiceType(SERVICE_TYPE_PZ2); } public void setServiceTypeSP() { - setServiceType(SERVICE_TYPE_SP); + setServiceType(SERVICE_TYPE_SP); } public void setServiceTypeTBD() { - setServiceType(SERVICE_TYPE_TBD); + setServiceType(SERVICE_TYPE_TBD); } private void setServiceType(String type) { diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/data/InfoResponse.java b/src/main/java/com/indexdata/mkjsf/pazpar2/data/InfoResponse.java index 82f31dc..f07c215 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/data/InfoResponse.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/data/InfoResponse.java @@ -7,12 +7,16 @@ public class InfoResponse extends ResponseDataObject { */ private static final long serialVersionUID = 3084509436017631123L; - public String getPazpar2Version () { - return getOneElement("version").getOneValue("pazpar2"); + public String getVersionPazpar2 () { + return ((Pazpar2VersionResponse) getOneElement("version")).getPazpar2(); } - public String getYazVersion() { - return getOneElement("version").getOneValue("yaz"); + public String getVersionYaz() { + return ((Pazpar2VersionResponse) getOneElement("version")).getYaz(); + } + + public Pazpar2VersionResponse getVersion() { + return (Pazpar2VersionResponse) getOneElement("version"); }