本文整理汇总了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);
}