Interface Extensible

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addExtension​(java.lang.String name, java.lang.Object value)
      Adds the given object to this Extensible's map of extensions, with the given name as its key.
      java.util.Map<java.lang.String,java.lang.Object> getExtensions​()
      Returns the extensions property from an Extensible instance.
      void setExtensions​(java.util.Map<java.lang.String,java.lang.Object> extensions)
      Sets this Extensible's extensions property to the given map of extensions.
    • Method Detail

      • getExtensions

        java.util.Map<java.lang.String,java.lang.Object> getExtensions​()
        Returns the extensions property from an Extensible instance.
        Returns:
        a map containing keys which start with "x-" and values which provide additional information
      • addExtension

        void addExtension​(java.lang.String name,
                          java.lang.Object value)
        Adds the given object to this Extensible's map of extensions, with the given name as its key.
        Parameters:
        name - the key used to access the extension object. Always prefixed by "x-".
        value - data not required by the specification
      • setExtensions

        void setExtensions​(java.util.Map<java.lang.String,java.lang.Object> extensions)
        Sets this Extensible's extensions property to the given map of extensions.
        Parameters:
        extensions - map containing keys which start with "x-" and values which provide additional information