public class ModifiedCompoundImpl extends Object implements ModifiedCompound, Serializable, Comparable<ModifiedCompound>
Constructor and Description |
---|
ModifiedCompoundImpl() |
ModifiedCompoundImpl(ProteinModification modification,
Collection<StructureAtomLinkage> linkages) |
ModifiedCompoundImpl(ProteinModification modification,
StructureGroup modifiedResidue)
Create a ModifiedCompoundImpl that has only one involved component.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAtomLinkage(StructureAtomLinkage linkage)
Add a linkage.
|
void |
addAtomLinkages(Collection<StructureAtomLinkage> linkages)
Add a collections of linkages.
|
int |
compareTo(ModifiedCompound compound) |
boolean |
crossChains() |
boolean |
equals(Object obj) |
Set<StructureAtomLinkage> |
getAtomLinkages() |
String |
getDescription()
return a description of this compound
|
Set<StructureGroup> |
getGroups() |
Set<StructureGroup> |
getGroups(boolean isAminoAcid) |
ProteinModification |
getModification() |
int |
hashCode() |
void |
setAtomLinkages(Set<StructureAtomLinkage> linkages)
Set atom linkages
|
void |
setDescription(String desc) |
void |
setGroups(Set<StructureGroup> groups) |
void |
setModification(ProteinModification protmod) |
String |
toString() |
public ModifiedCompoundImpl()
public ModifiedCompoundImpl(ProteinModification modification, StructureGroup modifiedResidue)
modification
- ProteinModification
.modifiedResidue
- modified group.IllegalArgumentException
- if either argument is null.public ModifiedCompoundImpl(ProteinModification modification, Collection<StructureAtomLinkage> linkages)
modification
- ProteinModification.linkages
- a collection of atom linkages.ProteinModification
,
StructureAtomLinkage
public void setModification(ProteinModification protmod)
setModification
in interface ModifiedCompound
public ProteinModification getModification()
getModification
in interface ModifiedCompound
ProteinModificationBean
occurred on the residue.public Set<StructureGroup> getGroups()
getGroups
in interface ModifiedCompound
public Set<StructureGroup> getGroups(boolean isAminoAcid)
getGroups
in interface ModifiedCompound
isAminoAcid
- true if amino acids.public void setGroups(Set<StructureGroup> groups)
setGroups
in interface ModifiedCompound
public Set<StructureAtomLinkage> getAtomLinkages()
getAtomLinkages
in interface ModifiedCompound
#getLinkedGroupPairs
,
StructureAtomLinkage
public void setAtomLinkages(Set<StructureAtomLinkage> linkages)
ModifiedCompound
setAtomLinkages
in interface ModifiedCompound
public boolean addAtomLinkage(StructureAtomLinkage linkage)
ModifiedCompound
addGroup
.addAtomLinkage
in interface ModifiedCompound
linkage
- an atom linkage.StructureAtomLinkage
public void addAtomLinkages(Collection<StructureAtomLinkage> linkages)
ModifiedCompound
addAtomLinkages
in interface ModifiedCompound
linkages
- an atom linkage.public boolean crossChains()
crossChains
in interface ModifiedCompound
public String getDescription()
ModifiedCompound
getDescription
in interface ModifiedCompound
public void setDescription(String desc)
setDescription
in interface ModifiedCompound
public int compareTo(ModifiedCompound compound)
compareTo
in interface Comparable<ModifiedCompound>
Copyright © 2000–2018 BioJava. All rights reserved.