All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wci.umls.server.helpers.PrecedenceList Maven / Gradle / Ivy

/**
 * Copyright 2015 West Coast Informatics, LLC
 */
package com.wci.umls.server.helpers;

import com.wci.umls.server.model.meta.TermType;

/**
 * Represents an ordered list of {@link TermType}s for use in computing atom
 * ranks.
 */
public interface PrecedenceList extends HasTerminology, HasLastModified {

  /**
   * Indicates whether or not default is the case.
   *
   * @return true if so, false otherwise
   */
  public boolean isDefaultList();

  /**
   * Sets the default.
   *
   * @param defaultList the default list
   */
  public void setDefaultList(boolean defaultList);

  /**
   * Returns the name.
   * 
   * @return the name
   */
  public String getName();

  /**
   * Sets the name.
   * 
   * @param name the name
   */
  public void setName(String name);

  /**
   * Sets the terminology, term type tuples.
   * 
   * @param precedence the terminology, term type tuples
   */
  public void setPrecedence(KeyValuePairList precedence);

  /**
   * Returns the terminology, term type tuples.
   * 
   * @return the terminology, term type tuples
   */
  public KeyValuePairList getPrecedence();

  /**
   * Adds the terminology, term type tuple to the end of the list.
   *
   * @param terminology the terminology
   * @param termType the term type
   */
  public void addTerminologyTermType(String terminology, String termType);

  /**
   * Removes the terminology, term type tuplefrom the list.
   *
   * @param terminology the terminology
   * @param termType the term type
   */
  public void removeTerminologyTermType(String terminology, String termType);

  /**
   * Returns the branch.
   *
   * @return the branch
   */
  public String getBranch();

  /**
   * Sets the branch.
   *
   * @param branch the branch
   */
  public void setBranch(String branch);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy