public enum EntityType extends Enum<EntityType>
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.
Enum Constant and Description |
---|
MACROLIDE
Macrolide.
|
NONPOLYMER
Non-polymeric entities: ligands, metal ions, buffer molecules, etc
|
POLYMER
Polymeric entities: poly-peptides and nucleotide chains
|
WATER
Water
|
Modifier and Type | Method and Description |
---|---|
static EntityType |
entityTypeFromString(String entityType)
Creates a new EntityType from a String value.
|
String |
getEntityType()
Returns the type of the Entity as a String
|
static EntityType |
valueOf(String name)
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.
|
public static final EntityType POLYMER
public static final EntityType NONPOLYMER
public static final EntityType WATER
public static final EntityType MACROLIDE
public static EntityType[] values()
for (EntityType c : EntityType.values()) System.out.println(c);
public static EntityType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getEntityType()
public static EntityType entityTypeFromString(String entityType)
entityType
- String value , should be one of "polymer","non-polymer","water","macrolide"Copyright © 2000–2019 BioJava. All rights reserved.