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 Summary
Constructors Constructor Description ElementPair()
-
Method Summary
Modifier and Type Method Description List<Attribute>
getAttributes()
Gets the attributes.List<CategoryComparison>
getCategories()
Gets the categories.String
getDocumentLabel()
Gets the documentLabel.Location
getLocation()
Gets the location.String
getText()
Gets the text.List<TypeLabelComparison>
getTypes()
Gets the types.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
ElementPair
public ElementPair()
-
-
Method Details
-
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
Gets the text.The contents of the element.
- Returns:
- the text
-
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
Gets the types.Description of the action specified by the element and whom it affects.
- Returns:
- the types
-
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
Gets the attributes.List of document attributes.
- Returns:
- the attributes
-