Package org.biojava.nbio.structure.io
Class SSBondImpl
- java.lang.Object
-
- org.biojava.nbio.structure.io.SSBondImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,PDBRecord
public class SSBondImpl extends Object implements PDBRecord, Cloneable
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SSBondImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SSBondImpl
clone()
boolean
equals(Object obj)
String
getChainID1()
String
getChainID2()
String
getInsCode1()
String
getInsCode2()
String
getResnum1()
String
getResnum2()
int
getSerNum()
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 fileString
toPDB()
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
toSsBond(Bond bond)
Converts the givenBond
object into aSSBondImpl
.String
toString()
-
-
-
Constructor Detail
-
SSBondImpl
public SSBondImpl()
-
-
Method Detail
-
toPDB
public String toPDB()
Description copied from interface:PDBRecord
Returns a PDB file like representation of this record.
-
toPDB
public void toPDB(StringBuffer buf)
Append the PDB representation of this SSBOND to the provided StringBuffer
-
getInsCode1
public String getInsCode1()
-
setInsCode1
public void setInsCode1(String insCode1)
-
getInsCode2
public String getInsCode2()
-
setInsCode2
public void setInsCode2(String insCode2)
-
getSerNum
public int getSerNum()
-
setSerNum
public void setSerNum(int serNum)
get serial number of this SSBOND in PDB file- Parameters:
serNum
-
-
clone
public SSBondImpl clone()
-
getChainID1
public String getChainID1()
-
setChainID1
public void setChainID1(String chainID1)
-
getChainID2
public String getChainID2()
-
setChainID2
public void setChainID2(String chainID2)
-
getResnum1
public String getResnum1()
-
setResnum1
public void setResnum1(String resnum1)
-
getResnum2
public String getResnum2()
-
setResnum2
public void setResnum2(String resnum2)
-
getSsBondListFromBondList
public static List<SSBondImpl> getSsBondListFromBondList(List<Bond> bonds)
-
toSsBond
public static SSBondImpl toSsBond(Bond bond)
Converts the givenBond
object into aSSBondImpl
.- Returns:
- Throws:
IllegalArgumentException
- if this Bond is not between two CYS residues
-
-