public class PDBIdentifier extends AbstractIdentifier<PDBIdentifier>
The identifier is a 4 character code, where the first character is any number followed by three alphanumeric characters.
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PATTERN
The pattern to verify the identifier.
|
| Constructor and Description |
|---|
PDBIdentifier(String identifier)
Creates a new identifier.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
extractFirst(String line)
Extracts the first occurrence of any PDB identifier from a string.
|
PDBIdentifier |
getFeatureContent() |
equals, getFeatureOrigin, getIdentifier, getSymbol, hashCode, toStringpublic static final Pattern PATTERN
public PDBIdentifier(String identifier) throws IllegalArgumentException
identifier - The identifier.IllegalArgumentException - If the identifier not valid.public static String extractFirst(String line)
line - The string to extract from.null if no PDB identifier could be
found.public PDBIdentifier getFeatureContent()
Copyright © 2018. All rights reserved.