View Source RDF.XSD.Facets.Pattern behaviour (RDF.ex v1.0.0)
RDF.XSD.Facet
for pattern
.
pattern
is a constraint on the value space of a datatype which is achieved
by constraining the lexical space to literals which match each member of a
set of regular expressions.
The value of pattern must be a set of regular expressions.
see https://www.w3.org/TR/xmlschema11-2/datatypes.html#rf-pattern
Link to this section Summary
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
.
Functions
Checks if a value
and lexical
conforms with the pattern_conform?/3
implementation on the datatype
RDF.XSD.Datatype
.
Link to this section Callbacks
Returns the value of this RDF.XSD.Facet
on specific RDF.XSD.Datatype
.
pattern_conform?(facet_constaint_value, value, uncanonical_lexical)
View Source@callback 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
.
Link to this section Functions
@spec conform?(RDF.XSD.Datatype.t(), any(), RDF.XSD.Datatype.uncanonical_lexical()) :: boolean()
Checks if a value
and lexical
conforms with the pattern_conform?/3
implementation on the datatype
RDF.XSD.Datatype
.