org.deri.iris.terms.concrete
Class Token
java.lang.Object
org.deri.iris.terms.concrete.NormalizedString
org.deri.iris.terms.concrete.Token
- All Implemented Interfaces:
- Comparable<ITerm>, INormalizedString, IToken, IConcreteTerm, IStringTerm, ITerm
- Direct Known Subclasses:
- Language, Name, NMTOKEN
public class Token
- extends NormalizedString
- implements IToken
A simple implementation of Token.
- Author:
- Adrian Marte
|
Constructor Summary |
Token(String string)
Creates a new Token for the specified string. |
| Methods inherited from interface org.deri.iris.api.terms.ITerm |
isGround |
Token
public Token(String string)
- Creates a new Token for the specified string. The string is normalized if
it is not normalized already.
- Parameters:
string - The normalized or non-normalized string.
normalize
public static String normalize(String string)
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 NormalizedString
- Returns:
- The fully qualified identifier for the data type corresponding to
this term.