Class ElementPair

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.compare_comply.v1.model.ElementPair
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class ElementPair
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Details of semantically aligned elements.
  • Constructor Details

    • ElementPair

      public ElementPair()
  • Method Details

    • getDocumentLabel

      public String getDocumentLabel()
      Gets the documentLabel.

      The label of the document (that is, the value of either the `file_1_label` or `file_2_label` parameters) in which the element occurs.

      Returns:
      the documentLabel
    • getText

      public String getText()
      Gets the text.

      The contents of the element.

      Returns:
      the text
    • getLocation

      public Location getLocation()
      Gets the location.

      The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.

      Returns:
      the location
    • getTypes

      public List<TypeLabelComparison> getTypes()
      Gets the types.

      Description of the action specified by the element and whom it affects.

      Returns:
      the types
    • getCategories

      public List<CategoryComparison> getCategories()
      Gets the categories.

      List of functional categories into which the element falls; in other words, the subject matter of the element.

      Returns:
      the categories
    • getAttributes

      public List<Attribute> getAttributes()
      Gets the attributes.

      List of document attributes.

      Returns:
      the attributes