HashMap<String,String> attributes = new HashMap<String,String>();\r
HashMap<String,List<Pazpar2ResponseData>> elements = new HashMap<String,List<Pazpar2ResponseData>>();\r
String textContent = "";\r
- ApplicationError error = null;\r
+ CommandError error = null;\r
+ String xml = null;\r
\r
public void setType (String type) {\r
this.type = type;\r
return (getOneElement("applicationerror") != null); \r
}\r
\r
- public ApplicationError getApplicationError() {\r
- return (ApplicationError) getOneElement("applicationerror");\r
+ public CommandError getApplicationError() {\r
+ return (CommandError) getOneElement("applicationerror");\r
}\r
\r
+ public boolean hasPazpar2Error() {\r
+ return hasApplicationError() && getApplicationError().hasPazpar2Error();\r
+ }\r
\r
+ public void setXml(String xml) {\r
+ this.xml = xml; \r
+ }\r
\r
- \r
+ public String getXml() {\r
+ return xml;\r
+ }\r
+ \r
}\r