public class PassthroughIdentifier extends Object implements StructureIdentifier
Constructor and Description |
---|
PassthroughIdentifier(String identifier) |
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
Get the String form of this identifier.
|
Structure |
loadStructure(AtomCache cache)
Passthrough identifiers don't know how to load a structure
|
Structure |
reduce(Structure input)
Takes a complete structure as input and reduces it to the substructure
represented by this StructureIdentifier.
|
SubstructureIdentifier |
toCanonical()
Convert to a canonical SubstructureIdentifier.
|
public PassthroughIdentifier(String identifier)
public String getIdentifier()
StructureIdentifier
#toString()
method also return the
identifier, for consistency during serialization.getIdentifier
in interface StructureIdentifier
public SubstructureIdentifier toCanonical()
StructureIdentifier
This allows all domains to be converted to a standard format String.
toCanonical
in interface StructureIdentifier
public Structure reduce(Structure input) throws StructureException
StructureIdentifier
The returned structure may be a shallow copy of the input, with shared Chains, Residues, etc.
reduce
in interface StructureIdentifier
input
- A full structure, e.g. as loaded from the PDB. The structure
ID should match that returned by getPdbId(), if applicable.StructureException
StructureTools.getReducedStructure(Structure, String)
public Structure loadStructure(AtomCache cache) throws StructureException, IOException
loadStructure
in interface StructureIdentifier
StructureException
- For errors loading and parsing the structureIOException
- Errors reading the structure from diskCopyright © 2000–2019 BioJava. All rights reserved.