org.apache.clerezza.rdf.core
Interface PlainLiteral

All Superinterfaces:
Literal, Resource
All Known Implementing Classes:
PlainLiteralImpl

public interface PlainLiteral
extends Literal

A string combined with an optional language tag The lexical form is the string represented by the Literal without including the language tag

Author:
reto

Method Summary
 boolean equals(Object obj)
          Returns true if obj is an instance of PlainLiteral for which the lexical form and the language are equals to the ones of this instance, false otherwise
 Language getLanguage()
           
 int hashCode()
          Returns the hash code of the lexical form plus the hash code of the language
 
Methods inherited from interface org.apache.clerezza.rdf.core.Literal
getLexicalForm
 

Method Detail

getLanguage

Language getLanguage()

equals

boolean equals(Object obj)
Returns true if obj is an instance of PlainLiteral for which the lexical form and the language are equals to the ones of this instance, false otherwise

Overrides:
equals in class Object
Returns:
true if obj == this

hashCode

int hashCode()
Returns the hash code of the lexical form plus the hash code of the language

Overrides:
hashCode in class Object
Returns:
hash code


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.