Class: RDF::Literal::UnsignedInt

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

Overview

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

Direct Known Subclasses

UnsignedShort

Constant Summary collapse

DATATYPE =
RDF::XSD.unsignedInt

Constants inherited from UnsignedLong

RDF::Literal::UnsignedLong::GRAMMAR

Constants inherited from NonNegativeInteger

NonNegativeInteger::GRAMMAR

Instance Method Summary collapse

Methods inherited from Integer

#to_sxp

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/integer.rb', line 160

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