Package org.biojava.nbio.structure.io
Class SSBondImpl
java.lang.Object
org.biojava.nbio.structure.io.SSBondImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,PDBRecord
A simple bean to store disulfide bridge information, the SSBOND records in the PDB files.
The two residues specified here are CYS residues that form a Disulfide bridge.
- Author:
- Andreas Prlic
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
static List<SSBondImpl>
getSsBondListFromBondList
(List<Bond> bonds) int
hashCode()
void
setChainID1
(String chainID1) void
setChainID2
(String chainID2) void
setInsCode1
(String insCode1) void
setInsCode2
(String insCode2) void
setResnum1
(String resnum1) void
setResnum2
(String resnum2) void
setSerNum
(int serNum) get serial number of this SSBOND in PDB filetoPDB()
Returns a PDB file like representation of this record.void
toPDB
(StringBuffer buf) Append the PDB representation of this SSBOND to the provided StringBufferstatic SSBondImpl
Converts the givenBond
object into aSSBondImpl
.toString()
-
Constructor Details
-
SSBondImpl
public SSBondImpl()
-
-
Method Details
-
toPDB
Description copied from interface:PDBRecord
Returns a PDB file like representation of this record. -
toPDB
Append the PDB representation of this SSBOND to the provided StringBuffer -
getInsCode1
-
setInsCode1
-
getInsCode2
-
setInsCode2
-
getSerNum
public int getSerNum() -
setSerNum
public void setSerNum(int serNum) get serial number of this SSBOND in PDB file- Parameters:
serNum
-
-
clone
-
getChainID1
-
setChainID1
-
getChainID2
-
setChainID2
-
getResnum1
-
setResnum1
-
getResnum2
-
setResnum2
-
toString
-
hashCode
public int hashCode() -
equals
-
getSsBondListFromBondList
-
toSsBond
Converts the givenBond
object into aSSBondImpl
.- Returns:
- Throws:
IllegalArgumentException
- if this Bond is not between two CYS residues
-