org.deri.iris.api.terms
Interface ITerm

All Superinterfaces:
Comparable<ITerm>
All Known Subinterfaces:
IAnyURI, IBase64Binary, IBooleanTerm, IByteTerm, IConcreteTerm, IConstructedTerm, IDateTerm, IDateTime, IDateTimeStamp, IDayTimeDuration, IDecimalTerm, IDoubleTerm, IDuration, IENTITY, IFloatTerm, IGDay, IGMonth, IGMonthDay, IGYear, IGYearMonth, IHexBinary, IID, IIDREF, IIntegerTerm, IIntTerm, IIri, ILanguage, ILongTerm, IName, INCName, INegativeInteger, INMTOKEN, INonNegativeInteger, INonPositiveInteger, INormalizedString, INOTATION, INumericTerm, IPlainLiteral, IPositiveInteger, IQName, IShortTerm, ISqName, IStringTerm, ITime, IToken, IUnsignedByte, IUnsignedInt, IUnsignedLong, IUnsignedShort, IVariable, IXMLLiteral, IYearMonthDuration
All Known Implementing Classes:
AbstractNumericTerm, AnyURI, Base64Binary, BooleanTerm, ByteTerm, ConstructedTerm, DateTerm, DateTime, DateTimeStamp, DayTimeDuration, DecimalTerm, DoubleTerm, Duration, ENTITY, FloatTerm, GDay, GMonth, GMonthDay, GYear, GYearMonth, HexBinary, ID, IDREF, IntegerTerm, IntTerm, Iri, Language, LongTerm, Name, NCName, NegativeInteger, NMTOKEN, NonNegativeInteger, NonPositiveInteger, NormalizedString, NOTATION, PlainLiteral, PositiveInteger, QName, ShortTerm, SqName, StringTerm, Time, Token, UnsignedByte, UnsignedInt, UnsignedLong, UnsignedShort, Variable, XMLLiteral, YearMonthDuration

public interface ITerm
extends Comparable<ITerm>

An interface which defines a term. A term is a name for an object in the universe of discourse. There are three types of terms:

By convention null is the smalles possible term of all types. So if you compare a term using the compare method you will always recieve a positive number.

$Id: ITerm.java,v 1.15 2007-10-15 15:20:38 bazbishop237 Exp $

Author:
Darko Anicic, DERI Innsbruck, Richard P??ttler (richard dot poettler at deri dot at)

Method Summary
 Object getValue()
          Returns a vale of the term.
 boolean isGround()
          Checks whether the term is ground (a term with no variables).
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

isGround

boolean isGround()
Checks whether the term is ground (a term with no variables).

Returns:
true if the term is ground, otherwise false.

getValue

Object getValue()
Returns a vale of the term.

Returns:
The term value.