Package net.dona.doip.client
Class DigitalObject
java.lang.Object
net.dona.doip.client.DigitalObject
A Java representation of a Digital Object.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAttribute
(String name, com.google.gson.JsonElement att) A convenience method that sets an attribute on the object.void
setAttribute
(String name, String att) A convenience method that sets an attribute on the object.
-
Field Details
-
id
The identifier of the object. -
type
The type of the object. -
attributes
public com.google.gson.JsonObject attributesThe attributes of the object. -
elements
The elements of the object.
-
-
Constructor Details
-
DigitalObject
public DigitalObject()
-
-
Method Details
-
setAttribute
A convenience method that sets an attribute on the object.- Parameters:
name
- the name of the attributeatt
- the value to set
-
setAttribute
A convenience method that sets an attribute on the object.- Parameters:
name
- the name of the attributeatt
- the value to set as a String
-