public class Element
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Attribute> |
attributes |
protected java.util.List<Category> |
categories |
protected Location |
location |
protected java.lang.String |
text |
protected java.util.List<TypeLabel> |
types |
Constructor and Description |
---|
Element() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Attribute> |
getAttributes()
Gets the attributes.
|
java.util.List<Category> |
getCategories()
Gets the categories.
|
Location |
getLocation()
Gets the location.
|
java.lang.String |
getText()
Gets the text.
|
java.util.List<TypeLabel> |
getTypes()
Gets the types.
|
protected Location location
protected java.lang.String text
protected java.util.List<TypeLabel> types
protected java.util.List<Category> categories
protected java.util.List<Attribute> attributes
public Location getLocation()
The numeric location of the identified element in the document, represented with two integers labeled `begin` and `end`.
public java.lang.String getText()
The text of the element.
public java.util.List<TypeLabel> getTypes()
Description of the action specified by the element and whom it affects.
public java.util.List<Category> getCategories()
List of functional categories into which the element falls; in other words, the subject matter of the element.
public java.util.List<Attribute> getAttributes()
List of document attributes.