Class: RDF::Literal::UnsignedInt

Inherits:
UnsignedLong show all
Defined in:
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

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


160
161
162
# File 'lib/rdf/xsd/integer.rb', line 160

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