Class ModifiedCompoundImpl
- java.lang.Object
 - 
- org.biojava.nbio.protmod.structure.ModifiedCompoundImpl
 
 
- 
- All Implemented Interfaces:
 Serializable,Comparable<ModifiedCompound>,ModifiedCompound
public class ModifiedCompoundImpl extends Object implements ModifiedCompound, Serializable, Comparable<ModifiedCompound>
- Since:
 - 3.0
 - Author:
 - Jianjiong Gao
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ModifiedCompoundImpl()ModifiedCompoundImpl(ProteinModification modification, Collection<StructureAtomLinkage> linkages)ModifiedCompoundImpl(ProteinModification modification, StructureGroup modifiedResidue)Create a ModifiedCompoundImpl that has only one involved component. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAtomLinkage(StructureAtomLinkage linkage)Add a linkage.voidaddAtomLinkages(Collection<StructureAtomLinkage> linkages)Add a collections of linkages.intcompareTo(ModifiedCompound compound)booleancrossChains()booleanequals(Object obj)Set<StructureAtomLinkage>getAtomLinkages()StringgetDescription()return a description of this compoundSet<StructureGroup>getGroups()Set<StructureGroup>getGroups(boolean isAminoAcid)ProteinModificationgetModification()inthashCode()voidsetAtomLinkages(Set<StructureAtomLinkage> linkages)Set atom linkagesvoidsetDescription(String desc)voidsetGroups(Set<StructureGroup> groups)voidsetModification(ProteinModification protmod)StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
ModifiedCompoundImpl
public ModifiedCompoundImpl()
 
- 
ModifiedCompoundImpl
public ModifiedCompoundImpl(ProteinModification modification, StructureGroup modifiedResidue)
Create a ModifiedCompoundImpl that has only one involved component. Use this constructor for a modified residue.- Parameters:
 modification-ProteinModification.modifiedResidue- modified group.- Throws:
 IllegalArgumentException- if either argument is null.
 
- 
ModifiedCompoundImpl
public ModifiedCompoundImpl(ProteinModification modification, Collection<StructureAtomLinkage> linkages)
- Parameters:
 modification- ProteinModification.linkages- a collection of atom linkages.- See Also:
 ProteinModification,StructureAtomLinkage
 
 - 
 
- 
Method Detail
- 
setModification
public void setModification(ProteinModification protmod)
- Specified by:
 setModificationin interfaceModifiedCompound
 
- 
getModification
public ProteinModification getModification()
- Specified by:
 getModificationin interfaceModifiedCompound- Returns:
 ProteinModificationBeanoccurred on the residue.
 
- 
getGroups
public Set<StructureGroup> getGroups()
- Specified by:
 getGroupsin interfaceModifiedCompound- Returns:
 - a set of involved group.
 
 
- 
getGroups
public Set<StructureGroup> getGroups(boolean isAminoAcid)
- Specified by:
 getGroupsin interfaceModifiedCompound- Parameters:
 isAminoAcid- true if amino acids.- Returns:
 - a set of involved group of the type.
 
 
- 
setGroups
public void setGroups(Set<StructureGroup> groups)
- Specified by:
 setGroupsin interfaceModifiedCompound
 
- 
getAtomLinkages
public Set<StructureAtomLinkage> getAtomLinkages()
- Specified by:
 getAtomLinkagesin interfaceModifiedCompound- Returns:
 - a set of atom linkages.
 - See Also:
 #getLinkedGroupPairs,StructureAtomLinkage
 
- 
setAtomLinkages
public void setAtomLinkages(Set<StructureAtomLinkage> linkages)
Description copied from interface:ModifiedCompoundSet atom linkages- Specified by:
 setAtomLinkagesin interfaceModifiedCompound
 
- 
addAtomLinkage
public boolean addAtomLinkage(StructureAtomLinkage linkage)
Description copied from interface:ModifiedCompoundAdd a linkage. Add new the involved groups first usingaddGroup.- Specified by:
 addAtomLinkagein interfaceModifiedCompound- Parameters:
 linkage- an atom linkage.- Returns:
 - true if this linkage was not already contained.
 - See Also:
 StructureAtomLinkage
 
- 
addAtomLinkages
public void addAtomLinkages(Collection<StructureAtomLinkage> linkages)
Description copied from interface:ModifiedCompoundAdd a collections of linkages.- Specified by:
 addAtomLinkagesin interfaceModifiedCompound- Parameters:
 linkages- an atom linkage.
 
- 
crossChains
public boolean crossChains()
- Specified by:
 crossChainsin interfaceModifiedCompound- Returns:
 - true if groups from multiple chains were involved
 
 
- 
getDescription
public String getDescription()
Description copied from interface:ModifiedCompoundreturn a description of this compound- Specified by:
 getDescriptionin interfaceModifiedCompound- Returns:
 - a description
 
 
- 
setDescription
public void setDescription(String desc)
- Specified by:
 setDescriptionin interfaceModifiedCompound
 
- 
compareTo
public int compareTo(ModifiedCompound compound)
- Specified by:
 compareToin interfaceComparable<ModifiedCompound>
 
 - 
 
 -