@Introspected public final class GenericResource extends AbstractResource<GenericResource>
Resource
with indeterminate structure. This is used as the deserialization target of
Resource.getEmbedded()
, because we can't determine the type of the resource for deserialization, there.Constructor and Description |
---|
GenericResource()
Create a new resource.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(java.lang.String key,
java.lang.Object v)
Add a property to this resource (internal, for deserialization use only).
|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.Object> |
getAdditionalProperties()
Get the properties of this resource, as an untyped map.
|
int |
hashCode() |
java.lang.String |
toString() |
embedded, embedded, embedded, getEmbedded, getLinks, link, link, setEmbedded, setLinks
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
deserialize
@Internal public GenericResource()
Resource
, please create a custom implementation of AbstractResource
.@Internal public void addProperty(java.lang.String key, java.lang.Object v)
key
- Property keyv
- Property valuepublic java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object