Class DataValue

java.lang.Object
com.gooddata.sdk.model.executeafm.result.DataValue
All Implemented Interfaces:
Data

public class DataValue
extends java.lang.Object
implements Data
Simple value type of Data. Wrapper of textual value.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.gooddata.sdk.model.executeafm.result.Data

    Data.DataDeserializer
  • Field Summary

    Fields inherited from interface com.gooddata.sdk.model.executeafm.result.Data

    NULL
  • Constructor Summary

    Constructors 
    Constructor Description
    DataValue​(java.lang.String value)
    Creates new instance of given value.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    boolean isList()  
    boolean isValue()  
    java.lang.String textValue()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.gooddata.sdk.model.executeafm.result.Data

    asList, isNull
  • Constructor Details

    • DataValue

      public DataValue​(java.lang.String value)
      Creates new instance of given value.
      Parameters:
      value - textual value, can't be null
  • Method Details

    • isList

      public boolean isList()
      Specified by:
      isList in interface Data
      Returns:
      true if this instance is of kind list, false otherwise
    • isValue

      public boolean isValue()
      Specified by:
      isValue in interface Data
      Returns:
      true if this instance is of kind value, false otherwise
    • textValue

      public java.lang.String textValue()
      Specified by:
      textValue in interface Data
      Returns:
      text data value, throws exception for data which can't be represented as text
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object