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

Link to this section Summary

Functions

Checks if a value and lexical conforms with the max_length_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 max_length_conform?/3 implementation on the datatype RDF.XSD.Datatype.

Link to this section Callbacks

Specs

max_length() :: non_neg_integer() | nil

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

Link to this callback

max_length_conform?(facet_constaint_value, value, arg3)

View Source

Specs

max_length_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.