ambit2.core.io
Class SGroupMDL2000Helper

Package class diagram package SGroupMDL2000Helper
java.lang.Object
  extended by ambit2.core.io.SGroupMDL2000Helper

public class SGroupMDL2000Helper
extends java.lang.Object

Helper for MDL SGroups


Nested Class Summary
static class SGroupMDL2000Helper.SGROUP_CONNECTIVITY
           
static class SGroupMDL2000Helper.SGROUP_LINE
           
static class SGroupMDL2000Helper.SGROUP_POLYMER_TYPE
           
static class SGroupMDL2000Helper.SGROUP_TYPE
           
 
Constructor Summary
SGroupMDL2000Helper()
           
 
Method Summary
static ISGroup createGroup(int number, SGroupMDL2000Helper.SGROUP_TYPE stype)
           
static SGroupMDL2000Helper.SGROUP_LINE getValue(java.lang.String line)
          Extracts first 6 chars, replaces spaces with underscore '_' and calls SGROUP_LINE.valueof method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGroupMDL2000Helper

public SGroupMDL2000Helper()
Method Detail

getValue

public static SGroupMDL2000Helper.SGROUP_LINE getValue(java.lang.String line)
                                                throws java.lang.IllegalArgumentException
Extracts first 6 chars, replaces spaces with underscore '_' and calls SGROUP_LINE.valueof method.

Parameters:
line -
Returns:
SGroupMDL2000Helper.SGROUP_LINE
Throws:
java.lang.IllegalArgumentException - if the resulting string is not defined as enum constant

createGroup

public static ISGroup createGroup(int number,
                                  SGroupMDL2000Helper.SGROUP_TYPE stype)
                           throws UnsupportedGroupOperation
Throws:
UnsupportedGroupOperation