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

How to use
getList
method
in
net.sf.taverna.t2.reference.ListService

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

origin: net.sf.taverna.t2.component/component-activity

private Set<T2Reference> getErrors(T2Reference ref) {
  Set<T2Reference> result = new HashSet<T2Reference>();
  if (ref.getReferenceType().equals(ReferenceSet)) {
    // nothing
  } else if (ref.getReferenceType().equals(IdentifiedList)) {
    IdentifiedList<T2Reference> originalList = listService.getList(ref);
    for (T2Reference subValue : originalList)
      if (subValue.containsErrors())
        result.addAll(getErrors(subValue));
  } else {
    result.add(ref);
  }
  return result;
}
origin: net.sf.taverna.t2.lang/results

public static List<ErrorDocument> getErrorDocuments(T2Reference reference,
    ReferenceService referenceService) {
  List<ErrorDocument> errorDocuments = new ArrayList<ErrorDocument>();
  if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
    ErrorDocumentService errorDocumentService = referenceService
        .getErrorDocumentService();
    errorDocuments.add(errorDocumentService.getError(reference));
  } else if (reference.getReferenceType().equals(
      T2ReferenceType.IdentifiedList)) {
    ListService listService = referenceService.getListService();
    IdentifiedList<T2Reference> list = listService.getList(reference);
    for (T2Reference listReference : list) {
      errorDocuments
          .addAll(getErrorDocuments(listReference, referenceService));
    }
  }
  return errorDocuments;
}
origin: net.sf.taverna.t2/results

public static List<ErrorDocument> getErrorDocuments(T2Reference reference,
    ReferenceService referenceService) {
  List<ErrorDocument> errorDocuments = new ArrayList<ErrorDocument>();
  if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
    ErrorDocumentService errorDocumentService = referenceService
        .getErrorDocumentService();
    errorDocuments.add(errorDocumentService.getError(reference));
  } else if (reference.getReferenceType().equals(
      T2ReferenceType.IdentifiedList)) {
    ListService listService = referenceService.getListService();
    IdentifiedList<T2Reference> list = listService.getList(reference);
    for (T2Reference listReference : list) {
      errorDocuments
          .addAll(getErrorDocuments(listReference, referenceService));
    }
  }
  return errorDocuments;
}
origin: net.sf.taverna.t2.workbench.views/results

public static List<ErrorDocument> getErrorDocuments(T2Reference reference, InvocationContext context) {
  List<ErrorDocument> errorDocuments = new ArrayList<ErrorDocument>();
  if (reference.getReferenceType().equals(T2ReferenceType.ErrorDocument)) {
    ErrorDocumentService errorDocumentService = context.getReferenceService().getErrorDocumentService();
    errorDocuments.add(errorDocumentService.getError(reference));            
  } else if (reference.getReferenceType().equals(T2ReferenceType.IdentifiedList)) {
    ListService listService = context.getReferenceService().getListService();
    IdentifiedList<T2Reference> list = listService.getList(reference);
    for (T2Reference listReference : list) {
      errorDocuments.addAll(getErrorDocuments(listReference, context));
    }
  }
  return errorDocuments;
}

origin: net.sf.taverna.t2.component/component-activity

private T2Reference findFirstFailure(T2Reference value) {
  IdentifiedList<T2Reference> originalList = listService.getList(value);
  for (T2Reference subValue : originalList) {
    if (subValue.getReferenceType().equals(ErrorDocument))
      return subValue;
    if (subValue.getReferenceType().equals(IdentifiedList))
      if (subValue.containsErrors())
        return findFirstFailure(subValue);
    // No need to consider value
  }
  return null;
}
origin: net.sf.taverna.t2.ui-components/results-view

private void createTree(T2Reference t2Ref, ProcessorResultTreeNode parentNode){
  
  // If reference contains a list of data references
  if (t2Ref.getReferenceType() == T2ReferenceType.IdentifiedList) {
    IdentifiedList<T2Reference> list = referenceService
        .getListService().getList(t2Ref);
    if (list == null) {
      logger.error("Could not resolve list " + t2Ref + ", was run with in-memory storage?");
    }
    ProcessorResultTreeNode listNode = new ProcessorResultTreeNode(list.size(), t2Ref, referenceService); // list node
    parentNode.add(listNode);
    for (T2Reference ref : list) {
      createTree(ref, listNode);
    }
  } else { // reference to single data or an error
    insertDataNode(t2Ref, parentNode);
  }    
}
origin: net.sf.taverna.t2.workbench.views/results

.getReferenceService().getListService().getList(reference);
List<Object> list = new ArrayList<Object>();
origin: net.sf.taverna.t2.component/component-activity

private T2Reference considerReference(T2Reference value,
    List<T2Reference> exceptions) {
  if (!value.containsErrors()) {
    return value;
  } else if (!value.getReferenceType().equals(IdentifiedList)) {
    return replaceErrors(value, exceptions);
  } else if (exceptionHandling.failLists()) {
    T2Reference failure = findFirstFailure(value);
    T2Reference replacement = replaceErrors(failure, value.getDepth(),
        exceptions);
    return replacement;
  } else {
    IdentifiedList<T2Reference> originalList = listService
        .getList(value);
    List<T2Reference> replacementList = new ArrayList<T2Reference>();
    for (T2Reference subValue : originalList)
      replacementList.add(considerReference(subValue, exceptions));
    return referenceService.register(replacementList, value.getDepth(),
        true, context);
  }
}
origin: net.sf.taverna.t2.core/provenanceconnector

  T2ReferenceType.IdentifiedList)) {
IdentifiedList<T2Reference> list = referenceService
    .getListService().getList(reference);
origin: net.sf.taverna.t2.ui-components/results-view

public void createTree(T2Reference t2Ref, InvocationContext context,  WorkflowResultTreeNode parentNode){
  
  // If reference contains a list of data references
  if (t2Ref.getReferenceType() == T2ReferenceType.IdentifiedList) {
    try {
      IdentifiedList<T2Reference> list = context.getReferenceService()
          .getListService().getList(t2Ref);
      if (list == null) {
        logger.warn("Could not resolve " + t2Ref);
        return;
      }
      WorkflowResultTreeNode listNode = new WorkflowResultTreeNode(t2Ref, context, ResultTreeNodeState.RESULT_LIST); // list node
      listNode.setContext(context);
      insertNodeInto(listNode, parentNode, parentNode.getChildCount());
      for (T2Reference ref : list) {
        createTree(ref, context, listNode);
      }
    } catch (NullPointerException e) {
      logger .error("Error resolving data entity list "
          + t2Ref, e);
    }
  } else { // reference to single data or an error
    // insert data node
    WorkflowResultTreeNode dataNode = new WorkflowResultTreeNode(t2Ref, context, ResultTreeNodeState.RESULT_REFERENCE); // data node
    insertNodeInto(dataNode, parentNode, parentNode.getChildCount());
  }    
}

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

case IdentifiedList:
  try {
    List<T2Reference> children = getListService().getList(
        ref);
    int position = 0;
origin: net.sf.taverna.t2/reference-impl

case IdentifiedList:
  try {
    List<T2Reference> children = getListService().getList(
        ref);
    int position = 0;
origin: net.sf.taverna.t2.workbench.views/results

IdentifiedList<T2Reference> list = dataToken
    .getContext().getReferenceService()
    .getListService().getList(reference);
int[] elementIndex = new int[index.length + 1];
for (int indexElement = 0; indexElement < index.length; indexElement++) {
origin: net.sf.taverna.t2/t2reference-impl

IdentifiedList<T2Reference> idList = listService.getList(id);
List<Object> result = new ArrayList<Object>();
for (T2Reference child : idList) {
origin: net.sf.taverna.t2/reference-impl

IdentifiedList<T2Reference> idList = listService.getList(id);
List<Object> result = new ArrayList<Object>();
for (T2Reference child : idList) {
origin: net.sf.taverna.t2.lang/results

IdentifiedList<T2Reference> identifiedList = referenceService.getListService().getList(reference);
List<Object> list = new ArrayList<Object>();
origin: net.sf.taverna.t2/results

IdentifiedList<T2Reference> identifiedList = referenceService.getListService().getList(reference);
List<Object> list = new ArrayList<Object>();
origin: net.sf.taverna.t2.core/reference-impl

IdentifiedList<T2Reference> idList = listService.getList(id);
if (idList == null) {
  throw new ReferenceServiceException("Could not find IdentifiedList " + id);
origin: net.sf.taverna.t2.ui-components/results-view

    .getListService().getList(reference);
int[] elementIndex = new int[index.length + 1];
for (int indexElement = 0; indexElement < index.length; indexElement++) {
origin: net.sf.taverna.t2/reference-impl

IdentifiedList<T2Reference> idList = listService.getList(id);
net.sf.taverna.t2.referenceListServicegetList

Javadoc

Retrieve a previously named and registered list of T2Reference instances identified by the specified T2Reference (which must be of type T2ReferenceType.IdentifiedList)

Popular methods of ListService

  • registerEmptyList
    Register a new empty list with the specified depth. This is needed because in the case of empty list
  • registerList
    Register a new list of T2References. The depth of the list will be calculated based on the depth of
  • delete
  • deleteIdentifiedListsForWorkflowRun

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • 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