Package org.biojava.nbio.structure
Enum EntityType
- All Implemented Interfaces:
Serializable
,Comparable<EntityType>
,java.lang.constant.Constable
The type of entity (polymer, non-polymer, water, macrolide)
as defined in the mmCIF dictionary:
Entities are of four types: polymer, non-polymer, macrolide and water.
Note that the water category includes only water; ordered solvent such as sulfate ion or acetone would be described as individual non-polymer entities. It is not clear what macrolides are, but they appear to be supported since mmCIF 4.0.
- Author:
- Anthony Bradley, Jose Duarte
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe 'branched' type use mainly to represent carbohydrates.Macrolide.Non-polymeric entities: ligands, metal ions, buffer molecules, etcPolymeric entities: poly-peptides and nucleotide chainsWater -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityType
entityTypeFromString
(String entityType) Creates a new EntityType from a String value.Returns the type of the Entity as a Stringstatic EntityType
Returns the enum constant of this type with the specified name.static EntityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POLYMER
Polymeric entities: poly-peptides and nucleotide chains -
BRANCHED
The 'branched' type use mainly to represent carbohydrates. The type was introduced in these versions of the mmcif dictionary: 5.101 2012-08-22 5.291 2017-09-10 5.304 2018-08-01 The type will only be used for PDB-deposited files from July 2020, as part of the carbohydrate remediation project.- Since:
- 5.4.0
-
NONPOLYMER
Non-polymeric entities: ligands, metal ions, buffer molecules, etc -
WATER
Water -
MACROLIDE
Macrolide. Supported in mmCIF 4.0 dictionary. Not clear what it refers to.
-
-
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
-
getEntityType
Returns the type of the Entity as a String- Returns:
- String representation of the entity type.
-
entityTypeFromString
Creates a new EntityType from a String value. Returns null if entityType is null or not one of the supported standard types.- Parameters:
entityType
- String value , should be one of "polymer","non-polymer","water","macrolide"- Returns:
- an EntityType object
-