#95 - master - add keywords decoder
This commit is contained in:
parent
685c0d9d98
commit
f6e68493ce
@ -74,6 +74,23 @@ public class RESTResource {
|
|||||||
return rootElem.getChildText("abstract");
|
return rootElem.getChildText("abstract");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> getKeywords(){
|
||||||
|
List<String> kwdsList = null;
|
||||||
|
|
||||||
|
final Element keywordsRoot = rootElem.getChild("keywords");
|
||||||
|
if(keywordsRoot != null){
|
||||||
|
final List<Element> keywords = keywordsRoot.getChildren();
|
||||||
|
if(keywords != null){
|
||||||
|
kwdsList = new ArrayList<String>(keywords.size());
|
||||||
|
for(Element keyword : keywords){
|
||||||
|
kwdsList.add(keyword.getValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return kwdsList;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getNameSpace() {
|
public String getNameSpace() {
|
||||||
return rootElem.getChild("namespace").getChildText("name");
|
return rootElem.getChild("namespace").getChildText("name");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user