projects
/
mkjsf-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds convenience methods for UI pages
[mkjsf-moved-to-github.git]
/
src
/
main
/
java
/
com
/
indexdata
/
mkjsf
/
pazpar2
/
data
/
CommandError.java
diff --git
a/src/main/java/com/indexdata/mkjsf/pazpar2/data/CommandError.java
b/src/main/java/com/indexdata/mkjsf/pazpar2/data/CommandError.java
index
54aa8f6
..
4302d9d
100644
(file)
--- a/
src/main/java/com/indexdata/mkjsf/pazpar2/data/CommandError.java
+++ b/
src/main/java/com/indexdata/mkjsf/pazpar2/data/CommandError.java
@@
-7,8
+7,8
@@
import java.util.List;
import java.util.regex.Pattern;
\r
\r
import com.indexdata.mkjsf.errors.ErrorHelper;
\r
import java.util.regex.Pattern;
\r
\r
import com.indexdata.mkjsf.errors.ErrorHelper;
\r
-import com.indexdata.mkjsf.errors.ErrorInterface;
\r
import com.indexdata.mkjsf.errors.ErrorHelper.ErrorCode;
\r
import com.indexdata.mkjsf.errors.ErrorHelper.ErrorCode;
\r
+import com.indexdata.mkjsf.errors.ErrorInterface;
\r
import com.indexdata.utils.XmlUtils;
\r
\r
/**
\r
import com.indexdata.utils.XmlUtils;
\r
\r
/**
\r
@@
-37,23
+37,23
@@
public class CommandError extends ResponseDataObject implements ErrorInterface {
}
\r
\r
public String getLabel() {
\r
}
\r
\r
public String getLabel() {
\r
- return getOneElementValue("commandname");
\r
+ return getOneValue("commandname");
\r
}
\r
\r
public String getMessage() {
\r
if (isServiceError()) {
\r
return getServiceError().getMsg();
\r
} else {
\r
}
\r
\r
public String getMessage() {
\r
if (isServiceError()) {
\r
return getServiceError().getMsg();
\r
} else {
\r
- return getOneElementValue("errormessage");
\r
+ return getOneValue("errormessage");
\r
}
\r
}
\r
\r
public String getException () {
\r
}
\r
}
\r
\r
public String getException () {
\r
- return getOneElementValue("exception");
\r
+ return getOneValue("exception");
\r
}
\r
\r
public List<String> getSuggestions() {
\r
}
\r
\r
public List<String> getSuggestions() {
\r
- if (errorHelper!=null) {
\r
+ if (errorHelper!=null) {
\r
return errorHelper.getSuggestions(this);
\r
} else {
\r
List<String> nohelper = new ArrayList<String>();
\r
return errorHelper.getSuggestions(this);
\r
} else {
\r
List<String> nohelper = new ArrayList<String>();
\r