com.ossuminc.riddl.utils

Members list

Type members

Classlikes

final class AdjustableClock(var inst: Instant, zone: ZoneId) extends Clock

An implementation of java.time.Clock which only moves through time via calls to updateInstant.

An implementation of java.time.Clock which only moves through time via calls to updateInstant. This allows fine-grained, side-effect-free deterministic control over the progression of system time, which is useful for testing purposes.

Attributes

Source
AdjustableClock.scala
Supertypes
class Clock
trait InstantSource
class Object
trait Matchable
class Any
object Await

Attributes

Source
Await.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Await.type
case class CallBackLogger(callback: (Lvl, String) => Unit) extends Logger

Attributes

Source
Logging.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Logger
class Object
trait Matchable
class Any
Show all

Attributes

Source
ExceptionUtils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait FileBuilder

A trait to build a string up for writing to a file.

A trait to build a string up for writing to a file. This provides the platform specific definition of newline, an nl function to insert a newline, and other functions for putting changes into the file content. The file is assumed to have a UTF-8 content type.

Attributes

Source
FileBuilder.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

A Logger which captures logged lines into an in-memory buffer, useful for testing purposes.

A Logger which captures logged lines into an in-memory buffer, useful for testing purposes.

Attributes

Source
Logging.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Logger
class Object
trait Matchable
class Any
Show all
final class Interrupt extends () => Boolean

Attributes

Companion
object
Source
Interrupt.scala
Supertypes
trait () => Boolean
class Object
trait Matchable
class Any
object Interrupt

Attributes

Companion
class
Source
Interrupt.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Interrupt.type
case class Loader(url: URL)

This is the JVM version of the Loader utility.

This is the JVM version of the Loader utility. It is used to load file content in UTF-8 via a URL as a String and returning the Future that will obtain it. Further processing can be chained onto the future. This handles the I/O part of parsing in a platform specific way.

Attributes

Source
Loader.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait Logger

Attributes

Source
Logging.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Logging

Attributes

Source
Logging.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Logging.type
trait OutputFile extends FileBuilder

Attributes

Source
OutputFile.scala
Supertypes
trait FileBuilder
class Object
trait Matchable
class Any
Known subtypes
object PathUtils

Attributes

Source
PathUtils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
PathUtils.type
case object RiddlBuildInfo

This object was generated by sbt-buildinfo.

This object was generated by sbt-buildinfo.

Attributes

Source
RiddlBuildInfo.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object SeqHelpers

Attributes

Source
SeqHelpers.scala
Supertypes
class Object
trait Matchable
class Any
Self type
SeqHelpers.type
final class StringBuildingPrintStream extends PrintStream

A PrintStream that captures any output into a String

A PrintStream that captures any output into a String

Attributes

Companion
object
Source
StringBuildingPrintStream.scala
Supertypes
class PrintStream
trait Appendable
class FilterOutputStream
class OutputStream
trait Flushable
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
StringBuildingPrintStream.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object StringHelpers

Attributes

Source
StringHelpers.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
Logging.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Logger
class Object
trait Matchable
class Any
Show all
case class SysLogger(withHighlighting: Boolean) extends Logger

Attributes

Source
Logging.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Logger
class Object
trait Matchable
class Any
Show all
object Tar

Attributes

Source
Tar.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Tar.type
abstract class TextFileWriter extends OutputFile

Unit Tests For TextFileWriter

Unit Tests For TextFileWriter

Attributes

Companion
object
Source
TextFileWriter.scala
Supertypes
trait OutputFile
trait FileBuilder
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Source
TextFileWriter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Timer

Private implementation details which allow for more testability

Private implementation details which allow for more testability

Attributes

Source
Timer.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Timer.type

A RIDDL version of a URL since the JVM version isn't useful to Javascript.

A RIDDL version of a URL since the JVM version isn't useful to Javascript. This just allows a simplified URL that has a scheme, authority, basis and path part.

Value parameters

authority

The authority part providing the basic location and credentials of the resource. The full syntax should be user@host:port. This field must not contain a /

basis

The "root" path or basis of the URL. This is for compatibility with "file" scheme as taken from java.nio.file.Path's functionality that the current working directory will be presumed as the root of the path. You can use the toBasisString method to get the URL without the path part. basis should not start with a /

path

The path of the resource. Fragments (part after #) can be included in the path if necessary. This URL implementation doesn't check the validity or existence of the fragment. path should not start with a /

scheme

The URL's scheme, either file, http, or https

Attributes

Companion
object
Source
URL.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object URL

Attributes

Companion
class
Source
URL.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
URL.type
object Zip

Attributes

Source
Zip.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Zip.type