Package org.helm.notation2.tools
Class xHelmNotationParser
java.lang.Object
org.helm.notation2.tools.xHelmNotationParser
public class xHelmNotationParser extends Object
Class to parse the XHELM XML format
- Author:
- maisel
-
Constructor Summary
Constructors Constructor Description xHelmNotationParser() -
Method Summary
Modifier and Type Method Description static StringgetComplexNotationString(org.jdom2.Element rootElement)Extracts the complex notation string from the root node of the XHELM documentstatic StringgetHELMNotationString(org.jdom2.Element rootElement)Extracts the HELM string from the root node of the XHELM documentstatic MonomerStoregetMonomerStore(org.jdom2.Element rootElement)Generates the monomer store from a given XHELM document
-
Constructor Details
-
xHelmNotationParser
public xHelmNotationParser()
-
-
Method Details
-
getHELMNotationString
Extracts the HELM string from the root node of the XHELM document- Parameters:
rootElement- root element- Returns:
- the complex notation string
-
getComplexNotationString
Extracts the complex notation string from the root node of the XHELM document- Parameters:
rootElement- root element- Returns:
- the complex notation string
-
getMonomerStore
public static MonomerStore getMonomerStore(org.jdom2.Element rootElement) throws MonomerException, IOExceptionGenerates the monomer store from a given XHELM document- Parameters:
rootElement- root element- Returns:
- a monomer store
- Throws:
MonomerException- if monomer is not validIOException- IO error
-