Package com.merative.acd.v1.model
Class Relation
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
-
- com.merative.acd.v1.model.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.
-
-
-
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 classcom.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
- Parameters:
key
- the name of the field to get
-
-