public class Relation
extends com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
Constructor and Description |
---|
Relation() |
Modifier and Type | Method and 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.
|
public java.lang.String getType()
public java.lang.String getSource()
public java.lang.Double getScore()
public java.util.List<RelationNode> getNodes()
public RelationNode getNode(int index)
public java.lang.Object get(java.lang.String key)
get
in class com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
key
- the name of the field to getCopyright © 2022 IBM Cloud. All rights reserved.