com.compomics.util.experiment.biology
Class GlyconFactory

java.lang.Object
  extended by com.compomics.util.experiment.biology.GlyconFactory

public class GlyconFactory
extends java.lang.Object

This factory will provide theoretic glycons.

Author:
Marc Vaudel

Method Summary
 java.util.ArrayList<Glycon> getGlycons()
          A getter to access the glycons.
static GlyconFactory getInstance()
          Static method to get the factory instance.
 void importGlycons(java.io.File aFile)
          Import glycons from an xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GlyconFactory getInstance()
Static method to get the factory instance.

Returns:
the instance of the factory

getGlycons

public java.util.ArrayList<Glycon> getGlycons()
A getter to access the glycons.

Returns:
all glycons imported

importGlycons

public void importGlycons(java.io.File aFile)
                   throws org.xmlpull.v1.XmlPullParserException,
                          java.io.IOException
Import glycons from an xml file.

Parameters:
aFile - xml file to parse
Throws:
org.xmlpull.v1.XmlPullParserException - exception thrown if a parsing issue is encountered
java.io.IOException - exception thrown if an issue with the file is encountered


Copyright © 2013. All Rights Reserved.