From 2f70bdfc5b664dd35b05d3f70cb2a573e7cc9585 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 29 Apr 2014 21:35:46 -0400 Subject: [PATCH] Renames methods --- src/main/java/com/indexdata/mkjsf/pazpar2/Pz2Service.java | 6 +++--- .../com/indexdata/mkjsf/pazpar2/data/InfoResponse.java | 12 ++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) 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"); } -- 1.7.10.4