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.

Direct Known Subclasses

UnsignedInt

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


147
148
149
# File 'lib/rdf/xsd/integer.rb', line 147

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