congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CgLibUtil
Code IndexAdd Tabnine to your IDE (free)

How to use
CgLibUtil
in
uk.ac.ebi.intact.persistence.util

Best Java code snippets using uk.ac.ebi.intact.persistence.util.CgLibUtil (Showing top 15 results out of 315)

origin: uk.ac.ebi.intact.app/data-conversion

public CvClass2Source( Class clazz, String parentNodeName ) {
  this.clazz = CgLibUtil.removeCglibEnhanced(clazz);
  this.parentNodeName = parentNodeName;
}
origin: uk.ac.ebi.intact/intact-core

/**
 * From the real className of an object, gets a displayable name.
 *
 * @param obj the object for which we want the class name to display - the object must not be null
 *
 * @return the classname to display in the view.
 */
public static String getDisplayableClassName( Object obj ) {
  return getDisplayableClassName( getRealClassName( obj ) );
}
origin: uk.ac.ebi.intact/intact-core

/**
 * From the real className of className, gets a displayable name.
 *
 * @param clazz the class for which we want the class name to display - the class must not be null
 *
 * @return the classname to display in the view.
 */
public static String getDisplayableClassName( Class clazz ) {
  return getDisplayableClassName( clazz.getName() );
}
origin: uk.ac.ebi.intact.util/data-conversion

public CvClass2Source( Class clazz, String parentNodeName ) {
  this.clazz = CgLibUtil.removeCglibEnhanced(clazz);
  this.parentNodeName = parentNodeName;
}
origin: uk.ac.ebi.intact.util/data-conversion

public CvClass2Source( Class clazz ) {
  this.clazz = CgLibUtil.removeCglibEnhanced(clazz);
  this.parentNodeName = null;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public CvClass2Source( Class clazz, String parentNodeName ) {
  this.clazz = CgLibUtil.removeCglibEnhanced(clazz);
  this.parentNodeName = parentNodeName;
}
origin: uk.ac.ebi.intact.app/data-conversion

public CvClass2Source( Class clazz ) {
  this.clazz = CgLibUtil.removeCglibEnhanced(clazz);
  this.parentNodeName = null;
}
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

public CvClass2Source( Class clazz ) {
  this.clazz = CgLibUtil.removeCglibEnhanced(clazz);
  this.parentNodeName = null;
}
origin: uk.ac.ebi.intact.core/intact-persister

  protected static String normalizeClassName(Class clazz) {
    Class realClass = CgLibUtil.removeCglibEnhanced(clazz);
    return realClass.getSimpleName();
    //return clazz.getSimpleName();
  }
}
origin: uk.ac.ebi.intact/intact-core

/**
 * Gives the Object classname, give the real object class name if this is a VirtualProxy class
 *
 * @param obj the object for which we request the real class name.
 *
 * @return the real class name.
 */
public static <T> Class<T> getRealClassName( T obj ) {
  return removeCglibEnhanced( obj.getClass() );
}
origin: uk.ac.ebi.intact.core/intact-persister

public ReportedIntactObject(IntactObject intactObject) {
  this.ac = intactObject.getAc();
  this.objectClass = CgLibUtil.removeCglibEnhanced(intactObject.getClass());
}
origin: uk.ac.ebi.intact.core/intact-persister

public Cache cacheFor(Class<?> aoClass) {
  if (cacheMap.containsKey(aoClass)) {
    return cacheMap.get(aoClass);
  }
  String cacheName;
  if (Interactor.class.isAssignableFrom(aoClass)) {
    cacheName = Interactor.class.getName();
  } else if (CvObject.class.isAssignableFrom(aoClass)) {
    cacheName = CvObject.class.getName();
  } else {
    cacheName = CgLibUtil.removeCglibEnhanced(aoClass).getName();
  }
  Cache cache = cacheManager.getCache(cacheName);
  if (cache == null) {
    throw new RuntimeException("Cache not found: " + cacheName);
  }
  cacheMap.put(aoClass, cache);
  return cache;
}
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/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/intact-ebi-search-engine-export

protected void writeCvTerm( Writer out, CvObject cv, String indent ) throws IOException {
  String title = cvtype2name.get( CgLibUtil.removeCglibEnhanced( cv.getClass() ) );
  if ( title == null ) {
    throw new IllegalStateException( "No title has been assigned to CV type: " + cv.getClass().getName() );
  }
  String sl = cv.getShortLabel();
  String fn = escapeXml( cv.getFullName() );
  writeField( out, title, sl, indent );
  // write fullname only if different from shortlabel and not null.
  if ( !sl.equals( fn ) ) {
    if ( fn != null && fn.length() > 0 ) {
      writeField( out, title, fn, indent );
    }
  }
  String mi = getMiReference( cv );
  if ( mi != null ) {
    writeField( out, title, mi, indent );
  }
}
uk.ac.ebi.intact.persistence.utilCgLibUtil

Javadoc

TODO comment it.

Most used methods

  • removeCglibEnhanced
    Gets the correct class, removing the CGLIB enhanced part. (e.g uk.ac.ebi.intact.model.CvInteraction$
  • getDisplayableClassName
    From the real className of className, gets a displayable name. 1. get the real class name. 2. Remov
  • getRealClassName
    Gives the Object classname, give the real object class name if this is a VirtualProxy class

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Option (scala)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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