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 SSBondImplclone()booleanequals(Object obj)StringgetChainID1()StringgetChainID2()StringgetInsCode1()StringgetInsCode2()StringgetResnum1()StringgetResnum2()intgetSerNum()static List<SSBondImpl>getSsBondListFromBondList(List<Bond> bonds)inthashCode()voidsetChainID1(String chainID1)voidsetChainID2(String chainID2)voidsetInsCode1(String insCode1)voidsetInsCode2(String insCode2)voidsetResnum1(String resnum1)voidsetResnum2(String resnum2)voidsetSerNum(int serNum)get serial number of this SSBOND in PDB fileStringtoPDB()Returns a PDB file like representation of this record.voidtoPDB(StringBuffer buf)Append the PDB representation of this SSBOND to the provided StringBufferstatic SSBondImpltoSsBond(Bond bond)Converts the givenBondobject into aSSBondImpl.StringtoString()
-
-
-
Constructor Detail
-
SSBondImpl
public SSBondImpl()
-
-
Method Detail
-
toPDB
public String toPDB()
Description copied from interface:PDBRecordReturns 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 givenBondobject into aSSBondImpl.- Returns:
- Throws:
IllegalArgumentException- if this Bond is not between two CYS residues
-
-