Package org.biopax.paxtools.impl.level3
Class ChemicalStructureImpl
java.lang.Object
org.biopax.paxtools.impl.BioPAXElementImpl
org.biopax.paxtools.impl.level3.L3ElementImpl
org.biopax.paxtools.impl.level3.ChemicalStructureImpl
- All Implemented Interfaces:
Serializable,Cloneable,BioPAXElement,ChemicalStructure,Level3Element,UtilityClass
- See Also:
-
Field Summary
Fields inherited from interface org.biopax.paxtools.model.BioPAXElement
UNKNOWN_DOUBLE, UNKNOWN_FLOAT, UNKNOWN_INT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintIf two elements are equivalent, then their equivalence code should be the same.Class<? extends ChemicalStructure>This method returns the actual model interface that a class implements.This property specifies which format is used to define chemical structure.protected booleansemanticallyEquivalent(BioPAXElement element) voidsetStructureData(String structureData) voidsetStructureFormat(StructureFormatType structureFormat) This property specifies which format is used to define chemical structure.Methods inherited from class org.biopax.paxtools.impl.level3.L3ElementImpl
addComment, getComment, removeComment, setCommentMethods inherited from class org.biopax.paxtools.impl.BioPAXElementImpl
equals, getAnnotations, getUri, hashCode, isEquivalent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biopax.paxtools.model.BioPAXElement
getAnnotations, getUri, isEquivalentMethods inherited from interface org.biopax.paxtools.model.level3.Level3Element
addComment, getComment, removeComment
-
Constructor Details
-
ChemicalStructureImpl
public ChemicalStructureImpl()
-
-
Method Details
-
getModelInterface
Description copied from interface:BioPAXElementThis method returns the actual model interface that a class implements.- Specified by:
getModelInterfacein interfaceBioPAXElement- Returns:
- an interface from
org.biopax.paxtools.modelpackage corresponding to a BioPAX class.
-
semanticallyEquivalent
- Overrides:
semanticallyEquivalentin classBioPAXElementImpl
-
equivalenceCode
public int equivalenceCode()Description copied from interface:BioPAXElementIf two elements are equivalent, then their equivalence code should be the same.- Specified by:
equivalenceCodein interfaceBioPAXElement- Overrides:
equivalenceCodein classBioPAXElementImpl- Returns:
- an integer that is same across all equivalent entities.
-
getStructureData
Description copied from interface:ChemicalStructureThis property holds a string defining chemical structure,in one of the three formats: CML, SMILES or InChI. If, for example,the CML format is used, then the value of this property is a string containing the XML encoding of the CML data.- Specified by:
getStructureDatain interfaceChemicalStructure- Returns:
- a string defining chemical structure
-
setStructureData
Description copied from interface:ChemicalStructureThis property holds a string of data defining chemical structure,in one of the three formats: CML, SMILES or InChI. If, for example,the CML format is used, then the value of this property is a string containing the XML encoding of the CML data.- Specified by:
setStructureDatain interfaceChemicalStructure- Parameters:
structureData- a string defining chemical structure
-
getStructureFormat
Description copied from interface:ChemicalStructureThis property specifies which format is used to define chemical structure.- Specified by:
getStructureFormatin interfaceChemicalStructure- Returns:
- format used to define chemical structure
-
setStructureFormat
Description copied from interface:ChemicalStructureThis property specifies which format is used to define chemical structure.- Specified by:
setStructureFormatin interfaceChemicalStructure- Parameters:
structureFormat- format used to define chemical structure
-