Handlers

Static factories to reconstruct OsidPrimitives from the string it produced (or from typed parts), snooping the format and choosing the matching implementation.

Handlers

DateTimeHandler

Reconstructs a DateTime from the string a DateTime produced — today the ISO 8601 form — delegating to GregorianUTCDateTime.

ISO 8601 · valueOf(String) · datetime(String) → GregorianUTCDateTime
Javadoc →

DurationHandler

Reconstructs a Duration from its string form, delegating to GregorianUTCDuration.

valueOf(String) · duration(String) → GregorianUTCDuration
Javadoc →

TimeHandler

Recovers a Time from its string by snooping the format and choosing the matching Time class.

valueOf(String) · time(String) → UTCTime, MeanSolarTime, …
Javadoc →

CurrencyHandler

Recovers a Currency from a string by snooping the format, or builds one from an ISO code or currency Type and a value.

valueOf(String) · valueOf(isoCode, value) · valueOf(Type, value) → ISOCurrency, USDCurrency, AnyCurrency
Javadoc →

IdHandler

Creates an Id from a string — URI, URN, or path forms — or from an authority, namespace, and identifier.

valueOf(String) · valueOf(authority, namespace, identifier) → URLId, URNId, PathId, BasicId
Javadoc →

VersionHandler

Recovers a Version from a string by snooping the format, or builds one from a scheme Type and components.

valueOf(String) · valueOf(scheme, components) → SemanticVersion, SequenceVersion, …
Javadoc →

DisplayTextHandler

Convenience builders for a DisplayText — English/US text, formatted text, or text in a given language Type.

enus(text) · enus(format, text) · valueOf(language, text)
Javadoc →

CoordinateHandler

Recovers a Coordinate from a string, routing on format (geographic versus Cartesian), or builds a Cartesian coordinate from numeric components.

valueOf(String) · cartesian(long) · cartesian(BigDecimal) → GeographicCoordinate, CartesianCoordinate
Javadoc →

DegreeHeadingHandler

Creates a degree Heading from a string or typed values — one, two, or three components for a 1D, 2D, or 3D heading.

valueOf(String) · valueOf(Type, text) · valueOf(Type, value) → OneD/TwoD/ThreeDDegreeHeading
Javadoc →

TypeHandler

Creates a Type from a string (URN form) or from an authority, namespace, and identifier.

valueOf(String) · valueOf(authority, namespace, identifier)
Javadoc →