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

public class RelationEntity
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An entity that corresponds with an argument in a relation.
  • Constructor Summary

    Constructors
    Constructor Description
    RelationEntity()  
  • Method Summary

    Modifier and Type Method Description
    String getText()
    Gets the text.
    String getType()
    Gets the type.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RelationEntity

      public RelationEntity()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      Text that corresponds to the entity.

      Returns:
      the text
    • getType

      public String getType()
      Gets the type.

      Entity type.

      Returns:
      the type