RDF.XSD.Facets.Pattern behaviour (RDF.ex v0.9.2) View Source

Link to this section Summary

Functions

Checks if a value and lexical conforms with the pattern_conform?/3 implementation on the datatype RDF.XSD.Datatype.

Callbacks

Returns the value of this RDF.XSD.Facet on specific RDF.XSD.Datatype.

Validates if a value and lexical conforms with a concrete facet_constaint_value for this RDF.XSD.Facet.

Link to this section Functions

Link to this function

conform?(datatype, value, lexical)

View Source

Specs

Checks if a value and lexical conforms with the pattern_conform?/3 implementation on the datatype RDF.XSD.Datatype.

Link to this section Callbacks

Specs

pattern() :: (String.t() | [String.t()]) | nil

Returns the value of this RDF.XSD.Facet on specific RDF.XSD.Datatype.

Link to this callback

pattern_conform?(facet_constaint_value, value, arg3)

View Source

Specs

pattern_conform?(
  facet_constaint_value :: any(),
  value :: any(),
  RDF.XSD.Datatype.uncanonical_lexical()
) :: boolean()

Validates if a value and lexical conforms with a concrete facet_constaint_value for this RDF.XSD.Facet.

This function must be implemented on a RDF.XSD.Datatype using this RDF.XSD.Facet.