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

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

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

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

/**
 * Constructor for subclass use only. Ensures that AnnotatedObjects cannot be
 * created without at least a shortLabel and an owner specified.
 *
 * @param shortLabel The memorable label to identify this AnnotatedObject
 *
 * @throws NullPointerException thrown if either parameters are not specified
 */
protected AnnotatedObjectImpl( String shortLabel ) {
  //super call sets creation time data
  super();
  this.shortLabel = AnnotatedObjectUtils.prepareShortLabel( shortLabel );
}
origin: uk.ac.ebi.intact.core/intact-core

/**
 * Constructor for subclass use only. Ensures that AnnotatedObjects cannot be
 * created without at least a shortLabel and an owner specified.
 *
 * @param shortLabel The memorable label to identify this AnnotatedObject
 *
 * @throws NullPointerException thrown if either parameters are not specified
 */
protected AnnotatedObjectImpl( String shortLabel ) {
  //super call sets creation time data
  super();
  this.shortLabel = AnnotatedObjectUtils.prepareShortLabel( shortLabel );
}
origin: uk.ac.ebi.intact/intact-core

/**
 * Constructor for subclass use only. Ensures that AnnotatedObjects cannot be
 * created without at least a shortLabel and an owner specified.
 *
 * @param shortLabel The memorable label to identify this AnnotatedObject
 * @param owner      The Institution which owns this AnnotatedObject
 *
 * @throws NullPointerException thrown if either parameters are not specified
 */
protected AnnotatedObjectImpl( String shortLabel, Institution owner ) {
  //super call sets creation time data
  super();
  this.shortLabel = AnnotatedObjectUtils.prepareShortLabel( shortLabel );
  setOwner( owner );
}
// Class methods
uk.ac.ebi.intact.model.utilAnnotatedObjectUtilsprepareShortLabel

Javadoc

Trims a shortlabel if it is too long to be inserted in the database.

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
  • getParameterizedType
  • 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

  • Finding current android device location
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • 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
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 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