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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanintstatic 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 filetoPDB()Returns a PDB file like representation of this record.voidtoPDB(StringBuffer buf) Append the PDB representation of this SSBOND to the provided StringBufferstatic SSBondImplConverts the givenBondobject into aSSBondImpl.toString()
-
Constructor Details
-
SSBondImpl
public SSBondImpl()
-
-
Method Details
-
toPDB
Description copied from interface:PDBRecordReturns 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 givenBondobject into aSSBondImpl.- Returns:
- Throws:
IllegalArgumentException- if this Bond is not between two CYS residues
-