Class Element
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.compare_comply.v1.model.Element
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Element
extends com.ibm.cloud.sdk.core.service.model.GenericModel
A component part of the document.
-
Constructor Summary
Constructors Constructor Description Element()
-
Method Summary
Modifier and Type Method Description List<Attribute>
getAttributes()
Gets the attributes.List<Category>
getCategories()
Gets the categories.Location
getLocation()
Gets the location.String
getText()
Gets the text.List<TypeLabel>
getTypes()
Gets the types.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
Element
public Element()
-
-
Method Details
-
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
-
getText
Gets the text.The text of the element.
- Returns:
- the text
-
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
-