org.deri.iris.terms.concrete
Class PositiveInteger
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.PositiveInteger
- All Implemented Interfaces:
- Comparable<ITerm>, IDecimalTerm, IIntegerTerm, INonNegativeInteger, IPositiveInteger, IConcreteTerm, INumericTerm, ITerm
public class PositiveInteger
- extends IntegerTerm
- implements IPositiveInteger
A simple implementation of PositiveInteger.
- Author:
- Adrian Marte
|
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 |
PositiveInteger
public PositiveInteger(int value)
- Creates a new PositiveInteger for the specified integer.
- Parameters:
value - The integer representing a number not less than 1.
- Throws:
IllegalArgumentException - If the specified integer is less than 1.
PositiveInteger
public PositiveInteger(BigInteger value)
- Creates a new PositiveInteger for the specified BigInteger.
- Parameters:
value - The BigInteger representing a number not less than 1.
- Throws:
IllegalArgumentException - If the specified BigInteger is less than
1.
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 IntegerTerm
- Returns:
- The fully qualified identifier for the data type corresponding to
this term.