Class ModelWriter.DefaultModelElementWriterContext

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.Class<?>,​java.lang.Object> values  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T get​(java.lang.Class<T> type)
      Retrieves the object with the given type from this context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • values

        private final java.util.Map<java.lang.Class<?>,​java.lang.Object> values
    • Constructor Detail

      • DefaultModelElementWriterContext

        DefaultModelElementWriterContext​(java.util.Map<java.lang.Class<?>,​java.lang.Object> values)
    • Method Detail

      • get

        public <T> T get​(java.lang.Class<T> type)
        Description copied from interface: Writable.Context
        Retrieves the object with the given type from this context.
        Specified by:
        get in interface Writable.Context
        Type Parameters:
        T - the type
        Parameters:
        type - The type of the object to retrieve from this context.
        Returns:
        The object with the given type from this context.