Class: RDF::Literal::UnsignedLong

Inherits:
NonNegativeInteger show all
Defined in:
lib/rdf/xsd/integer.rb

Overview

unsignedLong is derived from nonNegativeInteger by setting the value of maxInclusive to be 18446744073709551615. The base type of unsignedLong is nonNegativeInteger.

See Also:

Direct Known Subclasses

UnsignedInt

Constant Summary

GRAMMAR =
/^\d+$/.freeze
DATATYPE =
RDF::XSD.unsignedLong

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) valid?



149
150
151
# File 'lib/rdf/xsd/integer.rb', line 149

def valid?
  super && @object >= 0 && @object <= 18446744073709551615
end