Class DigitalObject

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

public class DigitalObject extends Object
A Java representation of a Digital Object.
  • 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