本文整理匯總了Java中org.sbolstandard.core2.ComponentDefinition.containsType方法的典型用法代碼示例。如果您正苦於以下問題:Java ComponentDefinition.containsType方法的具體用法?Java ComponentDefinition.containsType怎麽用?Java ComponentDefinition.containsType使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.sbolstandard.core2.ComponentDefinition
的用法示例。
在下文中一共展示了ComponentDefinition.containsType方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isSpeciesDefinition
import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
* Determine if the given SBOL ComponentDefinition is a valid SBML species.
*
* @param compDef - The SBOL ComponentDefinition to check if it is a valid SBML species
* @return True if the given ComponentDefinition is a valid SBML species
*/
private static boolean isSpeciesDefinition(ComponentDefinition compDef) {
return isComplexDefinition(compDef)
|| isProteinDefinition(compDef)
|| isRNADefinition(compDef)
// || isTFDefinition(compDef)
|| isSmallMoleculeDefinition(compDef)
|| compDef.containsType(ComponentDefinition.EFFECTOR);
}
示例2: isDNADefinition
import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
* Determine if the given SBOL ComponentDefinition is a valid DNA species.
*
* @param compDef - The SBOL ComponentDefinition to check if it is a valid DNA species.
* @return True if the given ComponentDefinition is a valid DNA species
*/
private static boolean isDNADefinition(ComponentDefinition compDef) {
return compDef.containsType(ComponentDefinition.DNA);
}
示例3: isProteinDefinition
import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
* Determine if the given SBOL ComponentDefinition is a valid protein species.
*
* @param compDef - The SBOL ComponentDefinition to check if it is a valid protein species.
* @return True if the given ComponentDefinition is a valid protein species
*/
private static boolean isProteinDefinition(ComponentDefinition compDef) {
return compDef.containsType(ComponentDefinition.PROTEIN);
}
示例4: isRNADefinition
import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
* Determine if the given SBOL ComponentDefinition is a valid RNA species.
*
* @param compDef - The SBOL ComponentDefinition to check if it is a valid RNA species.
* @return True if the given ComponentDefinition is a valid RNA species
*/
private static boolean isRNADefinition(ComponentDefinition compDef) {
return compDef.containsType(ComponentDefinition.RNA);
}
示例5: isComplexDefinition
import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
* Determine if the given SBOL ComponentDefinition is Complex SBML species.
*
* @param compDef - The ComponentDefinition to determine if it is a Complex SBML species.
* @return True if the given ComponentDefinition is Complex SBML species. False otherwise.
*/
private static boolean isComplexDefinition(ComponentDefinition compDef) {
return compDef.containsType(ComponentDefinition.COMPLEX);
}
示例6: isSmallMoleculeDefinition
import org.sbolstandard.core2.ComponentDefinition; //導入方法依賴的package包/類
/**
* Determine if the given SBOL ComponentDefinition is Small Molecule SBML species.
*
* @param compDef - The ComponentDefinition to determine if it is a Small Molecule SBML species.
* @return True if the given ComponentDefinition is Small Molecule SBML species. False otherwise.
*/
private static boolean isSmallMoleculeDefinition(ComponentDefinition compDef) {
return compDef.containsType(ComponentDefinition.SMALL_MOLECULE);
}