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

How to use
ReferenceSet
in
net.sf.taverna.t2.reference

Best Java code snippets using net.sf.taverna.t2.reference.ReferenceSet (Showing top 20 results out of 315)

origin: net.sf.taverna.t2.activities/external-tool-activity

private FileReference getAsFileReference(ReferenceService referenceService, T2Reference t2Reference) {
  Identified identified = referenceService.resolveIdentifier(t2Reference, null, null);
  if (identified instanceof ReferenceSet) {
    for (ExternalReferenceSPI ref : ((ReferenceSet) identified).getExternalReferences()) {
      if (ref instanceof FileReference) {
        return (FileReference) ref;
      }
    }
  }
  return null;
}
origin: net.sf.taverna.t2.core/reference-impl

public synchronized boolean delete(ReferenceSet refSet) throws DaoException {
  return store.remove(refSet.getId())!=null;
}
origin: net.sf.taverna.t2.ui-exts/renderers-exts

      .getReferenceSetService()
      .getReferenceSet(reference);
  approximateSizeInBytes = refSet.getApproximateSizeInBytes()
      .longValue();
} catch (Exception ex) {
origin: net.sf.taverna.t2.ui-exts/renderers-exts

      .getReferenceSetService()
      .getReferenceSet(reference);
  approximateSizeInBytes = refSet.getApproximateSizeInBytes()
      .longValue();
} catch (Exception ex) {
origin: net.sf.taverna.t2.activities/external-tool-activity

private static SshReference getAsSshReference(ReferenceService referenceService,
    T2Reference t2Reference) {
  Identified identified = referenceService.resolveIdentifier(t2Reference, null, null);
  if (identified instanceof ReferenceSet) {
    for (ExternalReferenceSPI ref : ((ReferenceSet) identified).getExternalReferences()) {
      if (ref instanceof SshReference) {
        SshReference sshRef = (SshReference) ref;
        return sshRef;
      }
    }
  }
  return null;
}
origin: net.sf.taverna.t2/reference-impl

public synchronized void update(ReferenceSet refSet) throws DaoException {
  store.put(refSet.getId(), refSet);		
}
origin: net.sf.taverna.t2.ui-exts/renderers-exts

      .getReferenceSetService()
      .getReferenceSet(reference);
  approximateSizeInBytes = refSet.getApproximateSizeInBytes()
      .longValue();
} catch (Exception ex) {
origin: net.sf.taverna.t2.activities/external-tool-activity

protected InputStream getAsStream(ReferenceService referenceService, T2Reference t2Reference) {
  Identified identified = referenceService.resolveIdentifier(t2Reference, null, null);
  if (identified instanceof ReferenceSet) {
    ExternalReferenceSPI ref = ((ReferenceSet) identified).getExternalReferences().iterator().next();
    return ref.openStream(invocationContext);
  }
  return null;
}
origin: net.sf.taverna.t2/t2reference-impl

public synchronized void update(ReferenceSet refSet) throws DaoException {
  store.put(refSet.getId(), refSet);		
}
origin: net.sf.taverna.t2.activities/external-tool-activity

public SshReference getAsSshReference(ReferenceService referenceService,
    T2Reference t2Reference, SshNode workerNode) {
  Identified identified = referenceService.resolveIdentifier(t2Reference, null, null);
  if (identified instanceof ReferenceSet) {
    for (ExternalReferenceSPI ref : ((ReferenceSet) identified).getExternalReferences()) {
      if (ref instanceof SshReference) {
        SshReference sshRef = (SshReference) ref;
        if (sshRef.getHost().equals(workerNode.getHost())) {
          return sshRef;
        }
      }
    }
  }
  return null;
}
origin: net.sf.taverna.t2.core/reference-impl

public synchronized void store(ReferenceSet refSet) throws DaoException {
  store.put(refSet.getId(), refSet);
}
origin: net.sf.taverna.t2/t2reference-impl

for (ExternalReferenceSPI er : rs.getExternalReferences()) {
  if (er.getClass().equals(
      translators.get(0).getSourceReferenceType())) {
origin: net.sf.taverna.t2.core/reference-impl

public synchronized void update(ReferenceSet refSet) throws DaoException {
  store.put(refSet.getId(), refSet);		
}

origin: net.sf.taverna.t2/reference-impl

for (ExternalReferenceSPI er : rs.getExternalReferences()) {
  if (er.getClass().equals(
      translators.get(0).getSourceReferenceType())) {
origin: net.sf.taverna.t2/t2reference-impl

public synchronized void store(ReferenceSet refSet) throws DaoException {
  store.put(refSet.getId(), refSet);
}
origin: net.sf.taverna.t2.core/reference-impl

for (ExternalReferenceSPI er : rs.getExternalReferences()) {
  if (er.getClass().equals(translators.get(0).getSourceReferenceType())) {
    currentReference = er;
origin: net.sf.taverna.t2/reference-impl

public synchronized void store(ReferenceSet refSet) throws DaoException {
  store.put(refSet.getId(), refSet);
}
origin: net.sf.taverna.t2/reference-impl

for (ExternalReferenceSPI er : rs.getExternalReferences()) {
origin: net.sf.taverna.t2.core/reference-impl

@DeleteIdentifiedOperation
public boolean delete(ReferenceSet rs) throws DaoException {
  if (rs.getId() == null) {
    throw new DaoException(
        "Supplied reference set has a null ID, allocate "
            + "an ID before calling the store method in the dao.");
  } else if (rs.getId().getReferenceType().equals(
      T2ReferenceType.ReferenceSet) == false) {
    throw new DaoException(
        "Strangely the reference set ID doesn't have type "
            + "T2ReferenceType.ReferenceSet, something has probably "
            + "gone badly wrong somewhere earlier!");
  }
  if (rs instanceof ReferenceSetImpl) {
    try {
      sessionFactory.getCurrentSession().delete(rs);
    } catch (Exception ex) {
      throw new DaoException(ex);
    }
  } else {
    throw new DaoException(
        "Supplied reference set not an instance of ReferenceSetImpl");
  }
  return true;
}

origin: net.sf.taverna.t2/t2reference-impl

for (ExternalReferenceSPI er : rs.getExternalReferences()) {
net.sf.taverna.t2.referenceReferenceSet

Javadoc

A set of ExternalReferenceSPI instances, all of which point to the same (byte equivalent) data. The set is identified by a T2Reference. This interface is read-only, as are most of the interfaces in this package. Rather than modifying properties of the reference set directly the client code should use the reference manager functionality.

It is technically okay, but rather unhelpful, to have a ReferenceSet with no ExternalReferenceSPI implementations. In general this is a sign that something has gone wrong somewhere as the reference set will not be resolvable in any way, but it would still retain its unique identifier so there may be occasions where this is the desired behaviour.

Most used methods

  • getExternalReferences
    The reference set contains a set of ExternalReferenceSPI instances, all of which point to byte equiv
  • getId
  • getApproximateSizeInBytes

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • From CI to AI: The AI layer in your organization
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