public enum BondType extends java.lang.Enum<BondType>
Prohibited
or Pseudo
may be ignored or handled differently than other bonds,
depending on the circumstances of the operation.Enum Constant and Description |
---|
Forced
User (or external evidence etc) indicates this bond MUST be paired.
|
Prohibited
User (or external evidence etc) indicates this bond must NOT be paired.
|
Pseudo
Pseduo-knot or quaternary bond.
|
Special
This bond is likely to be paired, but should be highlighted as special or unusual for some reason.
|
Standard
This bond is likely to be paired in the given structure.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,BondType> |
_lookup |
private java.lang.String |
abbrev |
static BondType |
Default |
private java.lang.String |
description |
Modifier and Type | Method and Description |
---|---|
static BondType |
fromAbbrev(java.lang.String abbrev)
Gets the BondType corresponding to an abbreviation.
|
static BondType |
fromAbbrev(java.lang.String abbrev,
BondType defaultIfInvalid)
Gets the BondType corresponding to an abbreviation.
|
java.lang.String |
getAbbrev() |
java.lang.String |
getDescription() |
static BondType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BondType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BondType Forced
public static final BondType Prohibited
public static final BondType Pseudo
public static final BondType Special
public static final BondType Standard
private static java.util.Map<java.lang.String,BondType> _lookup
private java.lang.String abbrev
public static final BondType Default
private final java.lang.String description
public static BondType fromAbbrev(java.lang.String abbrev)
java.lang.IllegalArgumentException
- if the abbreviation is empty or does not correspond to a known BondType.public static BondType fromAbbrev(java.lang.String abbrev, BondType defaultIfInvalid)
public java.lang.String getAbbrev()
public java.lang.String getDescription()
public static BondType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static BondType[] values()
for (BondType c : BondType.values()) System.out.println(c);