Class Attribute

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

public class Attribute
extends com.ibm.cloud.sdk.core.service.model.GenericModel
List of document attributes.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  Attribute.Type
    The type of attribute.
  • Constructor Summary

    Constructors
    Constructor Description
    Attribute()  
  • Method Summary

    Modifier and Type Method Description
    Location getLocation()
    Gets the location.
    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

    • Attribute

      public Attribute()
  • Method Details

    • getType

      public String getType()
      Gets the type.

      The type of attribute.

      Returns:
      the type
    • getText

      public String getText()
      Gets the text.

      The text associated with the attribute.

      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