Class Relation

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class Relation
    extends com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Relation()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String key)
      Returns the value from Relation annotation by specified key.
      RelationNode getNode​(int index)
      Gets the node.
      java.util.List<RelationNode> getNodes()
      Gets the node.
      java.lang.Double getScore()
      Gets the score.
      java.lang.String getSource()
      Gets the source.
      java.lang.String getType()
      Gets the type.
      • Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel

        equals, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Relation

        public Relation()
    • Method Detail

      • getType

        public java.lang.String getType()
        Gets the type.
        Returns:
        the type
      • getSource

        public java.lang.String getSource()
        Gets the source.
        Returns:
        the source
      • getScore

        public java.lang.Double getScore()
        Gets the score.
        Returns:
        the score
      • getNodes

        public java.util.List<RelationNode> getNodes()
        Gets the node.
        Returns:
        the node list
      • getNode

        public RelationNode getNode​(int index)
        Gets the node.
        Parameters:
        index - position to retrieve
        Returns:
        the node
      • get

        public java.lang.Object get​(java.lang.String key)
        Returns the value from Relation annotation by specified key.
        Overrides:
        get in class com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
        Parameters:
        key - the name of the field to get