org.apache.clerezza.rdf.core.impl
Class PlainLiteralImpl

java.lang.Object
  extended by org.apache.clerezza.rdf.core.impl.PlainLiteralImpl
All Implemented Interfaces:
Literal, PlainLiteral, Resource

public class PlainLiteralImpl
extends Object
implements PlainLiteral

Author:
reto

Constructor Summary
PlainLiteralImpl(String value)
           
PlainLiteralImpl(String value, Language language)
           
 
Method Summary
 boolean equals(Object otherObj)
          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()
           
 String getLexicalForm()
           
 int hashCode()
          Returns the hash code of the lexical form plus the hash code of the language
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlainLiteralImpl

public PlainLiteralImpl(String value)

PlainLiteralImpl

public PlainLiteralImpl(String value,
                        Language language)
Method Detail

getLexicalForm

public String getLexicalForm()
Specified by:
getLexicalForm in interface Literal
Returns:
the text of this literal

equals

public boolean equals(Object otherObj)
Description copied from interface: PlainLiteral
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

Specified by:
equals in interface PlainLiteral
Overrides:
equals in class Object
Returns:
true if obj == this

hashCode

public int hashCode()
Description copied from interface: PlainLiteral
Returns the hash code of the lexical form plus the hash code of the language

Specified by:
hashCode in interface PlainLiteral
Overrides:
hashCode in class Object
Returns:
hash code

getLanguage

public Language getLanguage()
Specified by:
getLanguage in interface PlainLiteral

toString

public String toString()
Overrides:
toString in class Object


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