Class: RDF::Literal::UnsignedLong

Inherits:
NonNegativeInteger show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/integer.rb

Overview

unsignedLong is derived from nonNegativeInteger by setting the value of maxInclusive to be

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

Methods inherited from Integer

#to_sxp

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


147
148
149
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/integer.rb', line 147

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