public final class Component
extends java.lang.Object
register
and of
methods.Modifier and Type | Method and Description |
---|---|
static java.util.Set<Component> |
allComponents() |
java.util.Set<java.lang.String> |
getPdbccIds() |
boolean |
isCTerminal() |
boolean |
isNTerminal() |
static Component |
of(java.util.Set<java.lang.String> pdbccIds)
Get a Component that does not have to occur at terminals.
|
static Component |
of(java.util.Set<java.lang.String> pdbccIds,
boolean isNTerminal,
boolean isCTerminal)
Get or create a Component.
|
static Component |
of(java.lang.String pdbccId)
Get a Component that does not have to occur at terminals.
|
static Component |
of(java.lang.String pdbccId,
boolean isNTerminal,
boolean isCTerminal)
Get or create a Component.
|
java.lang.String |
toString() |
public java.util.Set<java.lang.String> getPdbccIds()
public boolean isNTerminal()
public boolean isCTerminal()
public static Component of(java.lang.String pdbccId)
pdbccIds
- possible Protein Data Bank ID.java.lang.IllegalArgumentException
- if pdbccId or type is null,
or the pdbccId has been registered as a different type.public static Component of(java.lang.String pdbccId, boolean isNTerminal, boolean isCTerminal)
pdbccId
- Protein Data Bank ID.isNTerminal
- true if occurring at N-terminal. false, otherwise.isCTerminal
- true if occurring at C-terminal. false, otherwise.java.lang.IllegalArgumentException
- if pdbccId or type is null,
or the pdbccId has been registered as a different type,
or terminal condition is indicated for non-amino-acid component,
or both N-terminal and C-terminal are true.public static Component of(java.util.Set<java.lang.String> pdbccIds)
pdbccIds
- a set of possible Protein Data Bank ID.java.lang.IllegalArgumentException
- if pdbccId or type is null,
or the pdbccId has been registered as a different type.public static Component of(java.util.Set<java.lang.String> pdbccIds, boolean isNTerminal, boolean isCTerminal)
pdbccIds
- a set of possible Protein Data Bank ID.isNTerminal
- true if occurring at N-terminal. false, otherwise.isCTerminal
- true if occurring at C-terminal. false, otherwise.java.lang.IllegalArgumentException
- if pdbccId or type is null,
or the pdbccId has been registered as a different type,
or terminal condition is indicated for non-amino-acid component,
or both N-terminal and C-terminal are true.public static java.util.Set<Component> allComponents()
public java.lang.String toString()
toString
in class java.lang.Object