Package net.dona.doip.client

# Class DigitalObject

java.lang.Object
net.dona.doip.client.DigitalObject

public class DigitalObject extends Object
A Java representation of a Digital Object.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `com.google.gson.JsonObject`
  `attributes`
  The attributes of the object.
  `List<Element>`
  `elements`
  The elements of the object.
  `String`
  `id`
  The identifier of the object.
  `String`
  `type`
  The type of the object.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DigitalObject()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `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.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### id

    public String id
    The identifier of the object.

  - ### type

    public String type
    The type of the object.

  - ### attributes

    public com.google.gson.JsonObject attributes
    The attributes of the object.

  - ### elements

    public List<Element> elements
    The elements of the object.

- ## Constructor Details

  - ### DigitalObject

    public DigitalObject()

- ## Method Details

  - ### setAttribute

    public void setAttribute(String name, com.google.gson.JsonElement att)
    A convenience method that sets an attribute on the object.
    Parameters:
      `name` - the name of the attribute
      `att` - the value to set

  - ### setAttribute

    public void setAttribute(String name, String att)
    A convenience method that sets an attribute on the object.
    Parameters:
      `name` - the name of the attribute
      `att` - the value to set as a String