org.deri.iris.terms.concrete
Class UnsignedShort
java.lang.Object
org.deri.iris.terms.concrete.AbstractNumericTerm
org.deri.iris.terms.concrete.DecimalTerm
org.deri.iris.terms.concrete.IntegerTerm
org.deri.iris.terms.concrete.NonNegativeInteger
org.deri.iris.terms.concrete.UnsignedLong
org.deri.iris.terms.concrete.UnsignedInt
org.deri.iris.terms.concrete.UnsignedShort
- All Implemented Interfaces:
- Comparable<ITerm>, IDecimalTerm, IIntegerTerm, INonNegativeInteger, IUnsignedInt, IUnsignedLong, IUnsignedShort, IConcreteTerm, INumericTerm, ITerm
- Direct Known Subclasses:
- UnsignedByte
public class UnsignedShort
- extends UnsignedInt
- implements IUnsignedShort
A simple implementation of UnsignedShort.
- Author:
- Adrian Marte
|
Constructor Summary |
UnsignedShort(int value)
Creates a new UnsignedShort for the specified integer. |
|
Method Summary |
URI |
getDatatypeIRI()
Returns the fully qualified identifier for the data type corresponding to
this term. |
| Methods inherited from interface org.deri.iris.api.terms.ITerm |
isGround |
UnsignedShort
public UnsignedShort(int value)
- Creates a new UnsignedShort for the specified integer.
- Parameters:
value - The integer representing a number not less than 0 and not
greater than 65535.
- Throws:
IllegalArgumentException - If the specified integer is less than 0
or greater than 65535.
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 UnsignedInt
- Returns:
- The fully qualified identifier for the data type corresponding to
this term.