use of alma.acs.tools.comphelpergen.generated.ComponentHelperInfo in project ACS by ACS-Community.
the class CompHelperGenerator method getFilePar.
/**
* Method getFilePar. Gets information about COBs from xml input string.
* @param contents
* @return ComponentHelperInfo
*/
protected ComponentHelperInfo getFilePar(String contents) {
ComponentHelperInfo compHelpInfo = null;
if (m_verbose) {
System.out.println(contents);
}
Reader xmlReader = null;
try {
xmlReader = new StringReader(contents);
if (xmlReader != null) {
compHelpInfo = ComponentHelperInfo.unmarshalComponentHelperInfo(xmlReader);
}
} catch (ValidationException e) {
e.printStackTrace();
} catch (MarshalException e) {
e.printStackTrace();
} finally {
if (xmlReader != null)
try {
xmlReader.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return compHelpInfo;
}
Aggregations