Class Element


  • public class Element
    extends java.lang.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.
      java.lang.String id
      The id of the element.
      java.io.InputStream in
      The bytes of the element, as an InputStream.
      java.lang.Long length
      The size of the element.
      java.lang.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 Detail

      • id

        public java.lang.String id
        The id of the element.
      • length

        public java.lang.Long length
        The size of the element. May be null when the size is unknown.
      • type

        public java.lang.String type
        The type of the element.
      • attributes

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

        public transient java.io.InputStream in
        The bytes of the element, as an InputStream.
    • Constructor Detail

      • Element

        public Element()