org.deri.iris.terms.concrete
Class UnsignedInt

java.lang.Object
  extended by org.deri.iris.terms.concrete.AbstractNumericTerm
      extended by org.deri.iris.terms.concrete.DecimalTerm
          extended by org.deri.iris.terms.concrete.IntegerTerm
              extended by org.deri.iris.terms.concrete.NonNegativeInteger
                  extended by org.deri.iris.terms.concrete.UnsignedLong
                      extended by org.deri.iris.terms.concrete.UnsignedInt
All Implemented Interfaces:
Comparable<ITerm>, IDecimalTerm, IIntegerTerm, INonNegativeInteger, IUnsignedInt, IUnsignedLong, IConcreteTerm, INumericTerm, ITerm
Direct Known Subclasses:
UnsignedShort

public class UnsignedInt
extends UnsignedLong
implements IUnsignedInt

A simple implementation of UnsignedInt.

Author:
Adrian Marte

Field Summary
 
Fields inherited from class org.deri.iris.terms.concrete.DecimalTerm
value
 
Fields inherited from interface org.deri.iris.api.terms.concrete.IUnsignedInt
DATATYPE_URI, MAX_INCLUSIVE
 
Constructor Summary
UnsignedInt(long value)
          Creates a new UnsignedInt for the specified long.
 
Method Summary
 URI getDatatypeIRI()
          Returns the fully qualified identifier for the data type corresponding to this term.
 
Methods inherited from class org.deri.iris.terms.concrete.DecimalTerm
getValue, isNegativeInfinity, isNotANumber, isPositiveInfinity
 
Methods inherited from class org.deri.iris.terms.concrete.AbstractNumericTerm
compareTo, equals, hashCode, isGround, toCanonicalString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deri.iris.api.terms.INumericTerm
getValue, isNegativeInfinity, isNotANumber, isPositiveInfinity
 
Methods inherited from interface org.deri.iris.api.terms.IConcreteTerm
toCanonicalString
 
Methods inherited from interface org.deri.iris.api.terms.ITerm
isGround
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

UnsignedInt

public UnsignedInt(long value)
Creates a new UnsignedInt for the specified long.

Parameters:
value - The long representing a number not less than 0 and not greater than 4294967295.
Throws:
IllegalArgumentException - If the specified long is less than 0 or greater than 4294967295.
Method Detail

getDatatypeIRI

public URI getDatatypeIRI()
Description copied from interface: IConcreteTerm
Returns the fully qualified identifier for the data type corresponding to this term. For instance, a terms representing a double data type should return the URI "http://www.w3.org/2001/XMLSchema#double".

Specified by:
getDatatypeIRI in interface IConcreteTerm
Overrides:
getDatatypeIRI in class UnsignedLong
Returns:
The fully qualified identifier for the data type corresponding to this term.