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