public final class Statement extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Digital Asset Links API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Statement() |
Modifier and Type | Method and Description |
---|---|
Statement |
clone() |
String |
getRelation()
The relation identifies the use of the statement as intended by the source asset's owner (that
is, the person or entity who issued the statement).
|
Asset |
getSource()
Every statement has a source asset.
|
Asset |
getTarget()
Every statement has a target asset.
|
Statement |
set(String fieldName,
Object value) |
Statement |
setRelation(String relation)
The relation identifies the use of the statement as intended by the source asset's owner (that
is, the person or entity who issued the statement).
|
Statement |
setSource(Asset source)
Every statement has a source asset.
|
Statement |
setTarget(Asset target)
Every statement has a target asset.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getRelation()
null
for nonepublic Statement setRelation(String relation)
relation
- relation or null
for nonepublic Asset getSource()
null
for nonepublic Statement setSource(Asset source)
source
- source or null
for nonepublic Asset getTarget()
null
for nonepublic Statement setTarget(Asset target)
target
- target or null
for nonepublic Statement set(String fieldName, Object value)
set
in class GenericJson
public Statement clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.