Package net.dona.doip.client

# Class Element

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

public class Element extends Object
A Java representation of an element of a Digital Object.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `com.google.gson.JsonObject`
  `attributes`
  The attributes of the element.
  `String`
  `id`
  The id of the element.
  `InputStream`
  `in`
  The bytes of the element, as an `InputStream`.
  `Long`
  `length`
  The size of the element.
  `String`
  `type`
  The type of the element.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Element()`

- ## Method Summary

  ### 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 id of the element.

  - ### length

    public Long length
    The size of the element. May be null when the size is unknown.

  - ### type

    public String type
    The type of the element.

  - ### attributes

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

  - ### in

    public transient InputStream in
    The bytes of the element, as an `InputStream`.

- ## Constructor Details

  - ### Element

    public Element()