congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AnnotatedObjectUtils.getParameterizedType
Code IndexAdd Tabnine to your IDE (free)

How to use
getParameterizedType
method
in
uk.ac.ebi.intact.model.util.AnnotatedObjectUtils

Best Java code snippets using uk.ac.ebi.intact.model.util.AnnotatedObjectUtils.getParameterizedType (Showing top 6 results out of 315)

origin: uk.ac.ebi.intact/intact-core

/**
 * Gets the generic Xref type for an AnnotatedObject class
 * @param clazz an AnnotatedObject class
 * @return the Xref type used in the class
 */
public static Class<? extends Xref> getXrefClassType(Class<? extends AnnotatedObject> clazz)  {
  clazz = CgLibUtil.removeCglibEnhanced(clazz);
  
  PropertyDescriptor propDesc = null;
  try {
    propDesc = new PropertyDescriptor("xrefs", clazz);
  } catch (IntrospectionException e) {
    e.printStackTrace();
  }
  Method method = propDesc.getReadMethod();
  return getParameterizedType(method.getGenericReturnType());
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Gets the generic Xref type for an AnnotatedObject class
 *
 * @param clazz an AnnotatedObject class
 * @return the Xref type used in the class
 */
public static Class<? extends Xref> getXrefClassType(Class<? extends AnnotatedObject> clazz) {
  clazz = CgLibUtil.removeCglibEnhanced(clazz);
  PropertyDescriptor propDesc = null;
  try {
    propDesc = new PropertyDescriptor("xrefs", clazz);
  } catch (IntrospectionException e) {
    e.printStackTrace();
  }
  Method method = propDesc.getReadMethod();
  return getParameterizedType(method.getGenericReturnType());
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Gets the generic Xref type for an AnnotatedObject class
 *
 * @param clazz an AnnotatedObject class
 * @return the Xref type used in the class
 * @since 1.6.1
 */
public static Class<? extends Alias> getAliasClassType(Class<? extends AnnotatedObject> clazz) {
  clazz = CgLibUtil.removeCglibEnhanced(clazz);
  PropertyDescriptor propDesc = null;
  try {
    propDesc = new PropertyDescriptor("aliases", clazz);
  } catch (IntrospectionException e) {
    e.printStackTrace();
  }
  Method method = propDesc.getReadMethod();
  return getParameterizedType(method.getGenericReturnType());
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

/**
 * Gets the generic Xref type for an AnnotatedObject class
 *
 * @param clazz an AnnotatedObject class
 * @return the Xref type used in the class
 */
public static Class<? extends Xref> getXrefClassType(Class<? extends AnnotatedObject> clazz) {
  clazz = CgLibUtil.removeCglibEnhanced(clazz);
  PropertyDescriptor propDesc = null;
  try {
    propDesc = new PropertyDescriptor("xrefs", clazz);
  } catch (IntrospectionException e) {
    e.printStackTrace();
  }
  Method method = propDesc.getReadMethod();
  return getParameterizedType(method.getGenericReturnType());
}
origin: uk.ac.ebi.intact/intact-core

/**
 * Gets the generic Xref type for an AnnotatedObject class
 * @param clazz an AnnotatedObject class
 * @return the Xref type used in the class
 *
 * @since 1.6.1
 */
public static Class<? extends Alias> getAliasClassType(Class<? extends AnnotatedObject> clazz)  {
  clazz = CgLibUtil.removeCglibEnhanced(clazz);
  PropertyDescriptor propDesc = null;
  try {
    propDesc = new PropertyDescriptor("aliases", clazz);
  } catch (IntrospectionException e) {
    e.printStackTrace();
  }
  Method method = propDesc.getReadMethod();
  return getParameterizedType(method.getGenericReturnType());
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Gets the generic Xref type for an AnnotatedObject class
 *
 * @param clazz an AnnotatedObject class
 * @return the Xref type used in the class
 * @since 1.6.1
 */
public static Class<? extends Alias> getAliasClassType(Class<? extends AnnotatedObject> clazz) {
  clazz = CgLibUtil.removeCglibEnhanced(clazz);
  PropertyDescriptor propDesc = null;
  try {
    propDesc = new PropertyDescriptor("aliases", clazz);
  } catch (IntrospectionException e) {
    e.printStackTrace();
  }
  Method method = propDesc.getReadMethod();
  return getParameterizedType(method.getGenericReturnType());
}
uk.ac.ebi.intact.model.utilAnnotatedObjectUtilsgetParameterizedType

Popular methods of AnnotatedObjectUtils

  • getAliasClassType
    Gets the generic Xref type for an AnnotatedObject class
  • getXrefClassType
    Gets the generic Xref type for an AnnotatedObject class
  • findAnnotationByTopicMiOrLabel
    Finds an Annotations with a topic that has an MI or label equal to the value provided
  • prepareShortLabel
    Trims a shortlabel if it is too long to be inserted in the database.
  • searchXrefs
    Retrieve the xrefs from an annotated object that comply with the filter.
  • areCollectionEqual
    Method to compare Annotation, Xref and Aliases collections
  • containSameAliases
  • containSameAnnotations
  • containSameCollections
    Checks if two given annotated objects contain the same set of annotations, xrefs and aliases
  • containSameXrefs
  • containTheSameXrefs
    Check if the passed annotated objects contain the same set of filtered Xrefs.
  • createUniqueString
    Creates unique strings for Annotations,Xrefs and aliases.
  • containTheSameXrefs,
  • createUniqueString,
  • findParent,
  • isChildrenInitialized,
  • isCvTopicPublic,
  • isNewOrManaged,
  • removeChild,
  • searchXrefsByDatabase,
  • searchXrefsByQualifier

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Permission (java.security)
    Legacy security code; do not use.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now