Package org.openscience.cdk.sgroup
Enum SgroupType
- java.lang.Object
-
- java.lang.Enum<SgroupType>
-
- org.openscience.cdk.sgroup.SgroupType
-
- All Implemented Interfaces:
Serializable
,Comparable<SgroupType>
public enum SgroupType extends Enum<SgroupType>
Enumeration of Ctab Sgroup types.
Display shortcuts- SUP, abbreviation Sgroup (formerly called superatom)
- MUL, multiple group
- GEN, generic
- SRU, SRU type
- MON, monomer
- MER, Mer type
- COP, copolymer
- CRO, crosslink
- MOD, modification
- GRA, graft
- ANY, any polymer
- COM, component
- MIX, mixture
- FOR, formulation
- DAT, data Sgroup
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CtabAbbreviation
CtabAnyPolymer
CtabComponent
CtabCopolymer
CtabCrossLink
CtabData
CtabFormulation
CtabGeneric
CtabGraft
CtabMer
CtabMixture
CtabModified
CtabMonomer
CtabMultipleGroup
CtabStructureRepeatUnit
ExtAttachOrdering
ExtMulticenter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
boolean
isCtabStandard()
Indicates if this SGroup type is support by standard CTAB (Molfile/SDfile) sgroups.static SgroupType
parseCtabKey(String str)
static SgroupType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SgroupType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CtabAbbreviation
public static final SgroupType CtabAbbreviation
-
CtabMultipleGroup
public static final SgroupType CtabMultipleGroup
-
CtabStructureRepeatUnit
public static final SgroupType CtabStructureRepeatUnit
-
CtabMonomer
public static final SgroupType CtabMonomer
-
CtabModified
public static final SgroupType CtabModified
-
CtabCopolymer
public static final SgroupType CtabCopolymer
-
CtabMer
public static final SgroupType CtabMer
-
CtabCrossLink
public static final SgroupType CtabCrossLink
-
CtabGraft
public static final SgroupType CtabGraft
-
CtabAnyPolymer
public static final SgroupType CtabAnyPolymer
-
CtabComponent
public static final SgroupType CtabComponent
-
CtabMixture
public static final SgroupType CtabMixture
-
CtabFormulation
public static final SgroupType CtabFormulation
-
CtabData
public static final SgroupType CtabData
-
CtabGeneric
public static final SgroupType CtabGeneric
-
ExtMulticenter
public static final SgroupType ExtMulticenter
-
ExtAttachOrdering
public static final SgroupType ExtAttachOrdering
-
-
Method Detail
-
values
public static SgroupType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SgroupType c : SgroupType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SgroupType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isCtabStandard
public boolean isCtabStandard()
Indicates if this SGroup type is support by standard CTAB (Molfile/SDfile) sgroups.- Returns:
- true/false
-
getKey
public String getKey()
-
parseCtabKey
public static SgroupType parseCtabKey(String str)
-
-