PatientViewUtil - apache/ctakes GitHub Wiki

final public class PatientViewUtil

Utility class to get view information from a JCas.

  • Author: SPF , chip-nlp
  • Version: %I%
  • Since: 9/27/2017

static public Collection<String> getAllViewNames( final JCas jCas )

  • Parameters:
    • jCas ye olde ...
  • Returns: Names of all views, including gold and default

static public String getDefaultViewName()

  • Returns: {@link #DEFAULT_VIEW}

static public Collection<String> getGoldViewNames( final JCas jCas )

  • Parameters:
    • jCas ye olde ...
  • Returns: Names of all gold views, which are views with the prefix {@link #GOLD_PREFIX}

static public Collection<String> getDocumentViewNames( final JCas jCas )

  • Parameters:
    • jCas ye olde ...
  • Returns: Names of all document views, which are views that are not the default and not gold

static public Collection<JCas> getAllViews( final JCas jCas )

  • Parameters:
    • jCas ye olde ...
  • Returns: All views, including gold and default

static public JCas getDefaultView( final JCas jCas )

  • Returns: The view with name {@link #DEFAULT_VIEW}

static public Collection<JCas> getGoldViews( final JCas jCas )

  • Parameters:
    • jCas ye olde ...
  • Returns: All gold views, which are views with the prefix {@link #GOLD_PREFIX}

static public Collection<JCas> getDocumentViews( final JCas jCas )

  • Parameters:
    • jCas ye olde ...
  • Returns: All document views, which are views that are not the default and not gold

static final class ViewComparator implements Comparator<JCas>

Use to sort views by logical number suffix. {@link NumberedSuffixComparator}

⚠️ **GitHub.com Fallback** ⚠️