Package pl.poznan.put.atom
Enum AtomName
- All Implemented Interfaces:
Serializable
,Comparable<AtomName>
,java.lang.constant.Constable
A unified atom name found in PDB and mmCIF files with a list of alternative names.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic AtomName
fromString
(String pdbName) Creates an instance from String.getName()
Gets the default atom name (if more than one is configured).getType()
Gets enum describing the type of atom that this constant represents.boolean
isHeavy()
Checks if atom is heavy (i.e. not a hydrogen).boolean
matchesName
(String pdbName) Checks if this constant matches a name found in PDB or mmCIF file.static AtomName
Returns the enum constant of this type with the specified name.static AtomName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
C
-
C1
-
C10
-
C11
-
C12
-
C13
-
C14
-
C15
-
C16
-
C19
-
C1p
-
C2
-
C21
-
C23
-
C24
-
C2p
-
C3
-
C3T
-
C3p
-
C4
-
C4p
-
C5
-
C5M
-
C5T
-
C5p
-
C6
-
C8
-
CA
-
CAT
-
CAY
-
CB
-
CB1
-
CB2
-
CD
-
CD1
-
CD2
-
CE
-
CE1
-
CE2
-
CE3
-
CG
-
CG1
-
CG2
-
CH2
-
CL
-
CLP
-
CM1
-
CM2
-
CM5
-
CM7
-
CR
-
CRP
-
CT
-
CY
-
CZ
-
CZ2
-
CZ3
-
H1
-
H1p
-
H2
-
H21
-
H22
-
H2p
-
H2pp
-
H3
-
H3T
-
H3T1
-
H3T2
-
H3T3
-
H3p
-
H41
-
H42
-
H4p
-
H5
-
H51
-
H52
-
H53
-
H53p
-
H5T
-
H5T1
-
H5T2
-
H5T3
-
H5p
-
H5pp
-
H6
-
H61
-
H62
-
H8
-
HA
-
HA1
-
HA2
-
HB
-
HB1
-
HB2
-
HB3
-
HD1
-
HD11
-
HD12
-
HD13
-
HD2
-
HD21
-
HD22
-
HD23
-
HD3
-
HE
-
HE1
-
HE2
-
HE21
-
HE22
-
HE3
-
HG
-
HG1
-
HG11
-
HG12
-
HG13
-
HG2
-
HG21
-
HG22
-
HG23
-
HH
-
HH11
-
HH12
-
HH2
-
HH21
-
HH22
-
HL
-
HL1
-
HL2
-
HL3
-
HN
-
HN1
-
HN2
-
HNT
-
HO2p
-
HR
-
HR1
-
HR2
-
HR3
-
HT1
-
HT2
-
HT3
-
HY1
-
HY2
-
HY3
-
HZ
-
HZ1
-
HZ2
-
HZ3
-
K
-
MG
-
MN
-
N
-
N1
-
N2
-
N20
-
N3
-
N4
-
N6
-
N7
-
N9
-
ND1
-
ND2
-
NE
-
NE1
-
NE2
-
NH1
-
NH2
-
NL
-
NR
-
NT
-
NZ
-
O
-
O1
-
O17
-
O18
-
O1A
-
O1B
-
O1C
-
O1G
-
O1P
-
O1P3
-
O2
-
O22
-
O23
-
O2A
-
O2B
-
O2C
-
O2G
-
O2P
-
O2P3
-
O2p
-
O3
-
O3A
-
O3B
-
O3C
-
O3G
-
O3P
-
O3P3
-
O3T
-
O3p
-
O4
-
O4p
-
O5
-
O5T
-
O5p
-
O6
-
OD1
-
OD2
-
OE1
-
OE2
-
OG
-
OG1
-
OH
-
OL
-
OR
-
OT1
-
OT2
-
OY
-
P
-
PA
-
PB
-
PC
-
PG
-
P3
-
SD
-
SG
-
SG1
-
SG2
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
fromString
Creates an instance from String. For null or unknown atom names, a special constant UNKNOWN is used.- Parameters:
pdbName
- String representation of the atom name.- Returns:
- An instance of this enum.
-
matchesName
Checks if this constant matches a name found in PDB or mmCIF file. Certain atom names have more than one matching PDB names e.g. O2P/OP2.- Parameters:
pdbName
- Name found in PDB or mmCIF file.- Returns:
- True if this constant matches pdbName.
-
getName
Gets the default atom name (if more than one is configured).- Returns:
- The default name for this constant.
-
isHeavy
public boolean isHeavy()Checks if atom is heavy (i.e. not a hydrogen).- Returns:
- True if this constant describes an atom which is not a hydrogen.
-
getType
Gets enum describing the type of atom that this constant represents.- Returns:
- {
AtomType
} object representing the atom type.
-