Codota Logo
AnnotatedObjectImpl
Code IndexAdd Codota to your IDE (free)

How to use
AnnotatedObjectImpl
in
uk.ac.ebi.intact.model

Best Java code snippets using uk.ac.ebi.intact.model.AnnotatedObjectImpl (Showing top 20 results out of 315)

  • Common ways to obtain AnnotatedObjectImpl
private void myMethod () {
AnnotatedObjectImpl a =
  • Codota IconBasicObjectImpl basicObjectImpl;(AnnotatedObjectImpl) basicObjectImpl.clone()
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact/intact-core

/**
 * Returns a cloned version of the current object.
 *
 * @return a cloned version of the current Experiment with following exceptions. <ul> <li>Interactions are not
 *         cloned. The interactions for the cloned experiment is empty</li> <li>New components but with the same
 *         proteins. The new components has the cloned interaction as their interaction.</li> </ul>
 *
 * @throws CloneNotSupportedException
 */
@Override
public Object clone() throws CloneNotSupportedException {
  Experiment copy = ( Experiment ) super.clone();
  // Not copying any interactions.
  copy.interactions = new ArrayList<Interaction>();
  return copy;
}
origin: uk.ac.ebi.intact.core/intact-core

public boolean equals(Object o) {
  if ( this == o ) {
    return true;
  }
  if ( !( o instanceof Institution ) ) {
    return false;
  }
  if ( !super.equals( o ) ) {
    return false;
  }
  Institution that = (Institution) o;
  return true;
}
origin: uk.ac.ebi.intact/intact-core

  @Override
  public String toString() {
    return this.getAc() + "; owner=" + this.getOwner().getAc()
        + "; name=" + this.shortLabel + "; fullname=" + fullName;
  }
}
origin: uk.ac.ebi.intact.core/intact-core

AnnotatedObjectImpl copy = ( AnnotatedObjectImpl ) super.clone();
Collection<T> xrefs = getXrefs();
Collection<A> aliases = getAliases();
for ( Xref xref : getXrefs() ) {
  Xref xrefClone = ( Xref ) xref.clone();
  xrefClone.setParent( copy );
  copiedXrefs.add( xrefClone );
copy.setXrefs( copiedXrefs );
for ( Alias alias : getAliases() ) {
  Alias aliasClone = ( Alias ) alias.clone();
  aliasClone.setParent( copy );
  copiedAliases.add( ( Alias ) alias.clone() );
copy.setAliases( copiedAliases );
origin: uk.ac.ebi.intact.core/intact-core

  if ( !shortLabel.equals( annotatedObject.getShortLabel() ) ) {
    return false;
  if ( annotatedObject.getShortLabel() != null ) {
    return false;
  if ( !fullName.equals( annotatedObject.getFullName() ) ) {
    return false;
  if ( annotatedObject.getFullName() != null ) {
    return false;
if (IntactCore.isInitialized(getXrefs()) &&
    IntactCore.isInitialized(annotatedObject.getXrefs()) &&
    !CollectionUtils.isEqualCollection( getXrefs(), annotatedObject.getXrefs() )) {
  return false;
if (IntactCore.isInitialized(getAnnotations()) &&
    IntactCore.isInitialized(annotatedObject.getAnnotations()) &&
    !CollectionUtils.isEqualCollection( getAnnotations(), annotatedObject.getAnnotations() )) {
  return false;
if (IntactCore.isInitialized(getAliases()) &&
    IntactCore.isInitialized(annotatedObject.getAliases()) &&
    !CollectionUtils.isEqualCollection( getAliases(), annotatedObject.getAliases() )) {
  return false;
origin: uk.ac.ebi.intact/intact-core

@OneToMany( mappedBy = "parent", cascade = {CascadeType.PERSIST, CascadeType.REMOVE} )
@Override
public Collection<BioSourceXref> getXrefs() {
  return super.getXrefs();
}
origin: uk.ac.ebi.intact/intact-core

@OneToMany( mappedBy = "parent", cascade = {CascadeType.PERSIST, CascadeType.REMOVE} )
@Override
public Collection<BioSourceAlias> getAliases() {
  return super.getAliases();
}
origin: uk.ac.ebi.intact.core/intact-core

@ManyToMany( cascade = {CascadeType.PERSIST, CascadeType.REMOVE, CascadeType.MERGE, CascadeType.REFRESH, CascadeType.DETACH})
@JoinTable(
    name = "ia_cvobject2annot",
    joinColumns = {@JoinColumn( name = "cvobject_ac" )},
    inverseJoinColumns = {@JoinColumn( name = "annotation_ac" )}
)
@Override
public Collection<Annotation> getAnnotations() {
  return super.getAnnotations();
}
origin: uk.ac.ebi.intact/intact-core

  @Override
  public int hashCode() {
    return 29 * super.hashCode();
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

@Deprecated
protected AnnotatedObjectImpl( String shortLabel, Institution owner ) {
  this(shortLabel);
  setOwner(owner);
}
origin: uk.ac.ebi.intact.core/intact-core

  @Override
  public String toString() {
    return this.getClass().getSimpleName()+"{ac="+this.getAc() + "; name=" + this.shortLabel + "; fullname=" + fullName+"}";
  }
}
origin: uk.ac.ebi.intact/intact-core

AnnotatedObjectImpl copy = ( AnnotatedObjectImpl ) super.clone();
Collection<T> xrefs = getXrefs();
Collection<A> aliases = getAliases();
for ( Xref xref : getXrefs() ) {
  Xref xrefClone = ( Xref ) xref.clone();
  xrefClone.setParent( copy );
  copiedXrefs.add( xrefClone );
copy.setXrefs( copiedXrefs );
for ( Alias alias : getAliases() ) {
  Alias aliasClone = ( Alias ) alias.clone();
  aliasClone.setParent( copy );
  copiedAliases.add( ( Alias ) alias.clone() );
copy.setAliases( copiedAliases );
origin: uk.ac.ebi.intact.core/intact-core-readonly

  if ( !shortLabel.equals( annotatedObject.getShortLabel() ) ) {
    return false;
  if ( annotatedObject.getShortLabel() != null ) {
    return false;
  if ( !fullName.equals( annotatedObject.getFullName() ) ) {
    return false;
  if ( annotatedObject.getFullName() != null ) {
    return false;
if (IntactCore.isInitialized(getXrefs()) &&
    IntactCore.isInitialized(annotatedObject.getXrefs()) &&
    !CollectionUtils.isEqualCollection( getXrefs(), annotatedObject.getXrefs() )) {
  return false;
if (IntactCore.isInitialized(getAnnotations()) &&
    IntactCore.isInitialized(annotatedObject.getAnnotations()) &&
    !CollectionUtils.isEqualCollection( getAnnotations(), annotatedObject.getAnnotations() )) {
  return false;
if (IntactCore.isInitialized(getAliases()) &&
    IntactCore.isInitialized(annotatedObject.getAliases()) &&
    !CollectionUtils.isEqualCollection( getAliases(), annotatedObject.getAliases() )) {
  return false;
origin: uk.ac.ebi.intact.core/intact-core

@OneToMany( mappedBy = "parent", cascade = {CascadeType.ALL}, orphanRemoval = true )
public Collection<InstitutionXref> getXrefs() {
  return super.getXrefs();
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

@OneToMany( mappedBy = "parent", cascade = {CascadeType.ALL}, orphanRemoval = true)
public Collection<InstitutionAlias> getAliases() {
  return super.getAliases();
}
origin: uk.ac.ebi.intact/intact-core

@ManyToMany( cascade = {CascadeType.PERSIST} )
@JoinTable(
    name = "ia_pub2annot",
    joinColumns = {@JoinColumn( name = "publication_ac" )},
    inverseJoinColumns = {@JoinColumn( name = "annotation_ac" )}
)
@Override
public Collection<Annotation> getAnnotations() {
  return super.getAnnotations();
}
origin: uk.ac.ebi.intact.core/intact-core

public int hashCode() {
  return 31*super.hashCode();
}
origin: uk.ac.ebi.intact.core/intact-core

@Deprecated
protected AnnotatedObjectImpl( String shortLabel, Institution owner ) {
  this(shortLabel);
  setOwner(owner);
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

  @Override
  public String toString() {
    return this.getClass().getSimpleName()+"{ac="+this.getAc() + "; name=" + this.shortLabel + "; fullname=" + fullName+"}";
  }
}
origin: uk.ac.ebi.intact.core/intact-core-readonly

AnnotatedObjectImpl copy = ( AnnotatedObjectImpl ) super.clone();
Collection<T> xrefs = getXrefs();
Collection<A> aliases = getAliases();
for ( Xref xref : getXrefs() ) {
  Xref xrefClone = ( Xref ) xref.clone();
  xrefClone.setParent( copy );
  copiedXrefs.add( xrefClone );
copy.setXrefs( copiedXrefs );
for ( Alias alias : getAliases() ) {
  Alias aliasClone = ( Alias ) alias.clone();
  aliasClone.setParent( copy );
  copiedAliases.add( ( Alias ) alias.clone() );
copy.setAliases( copiedAliases );
uk.ac.ebi.intact.modelAnnotatedObjectImpl

Javadoc

Represents an object with biological annotation.

Most used methods

  • clone
  • equals
    Equality for AnnotatedObjects is currently based on equality forXrefs, shortLabels and fullNames.
  • getAc
  • getAliases
  • getAnnotations
    This property must be overriden so it can have proper mappings
  • getXrefs
  • hashCode
    This class overwrites equals. To ensure proper functioning of HashTable, hashCode must be overwritte
  • setAliases
  • setOwner
  • setXrefs
  • getFullName
  • getShortLabel
  • getFullName,
  • getShortLabel,
  • prepareShortLabel,
  • toString,
  • getOwner

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now