org.deri.iris.api.terms.concrete
Interface IPlainLiteral

All Superinterfaces:
Comparable<ITerm>, IConcreteTerm, ITerm
All Known Implementing Classes:
PlainLiteral

public interface IPlainLiteral
extends IConcreteTerm

Represents the rdf:PlainLiteral data type, formerly known as rdf:text. rdf:PlainLiteral is an internationalized string value that contains a language tag indicating it's spoken language, e.g. "Padre de familia@es".


Method Summary
 String getLang()
          Returns the language tag, e.g.
 String getString()
          Returns the string, e.g.
 String[] getValue()
          Returns the wrapped type.
 
Methods inherited from interface org.deri.iris.api.terms.IConcreteTerm
getDatatypeIRI, toCanonicalString
 
Methods inherited from interface org.deri.iris.api.terms.ITerm
isGround
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getValue

String[] getValue()
Returns the wrapped type. The first element of this array is the string and the second is the language.

Specified by:
getValue in interface ITerm
Returns:
The wrapped type.

getString

String getString()
Returns the string, e.g. "Padre de familia", if this text represents "Padre de familia@es".

Returns:
The text.

getLang

String getLang()
Returns the language tag, e.g. "es", if this text represents "Padre de familia@es".

Returns:
The language tag.