org.apache.clerezza.rdf.core.impl
Class PlainLiteralImpl
java.lang.Object
org.apache.clerezza.rdf.core.impl.PlainLiteralImpl
- All Implemented Interfaces:
- Literal, PlainLiteral, Resource
public class PlainLiteralImpl
- extends Object
- implements PlainLiteral
- Author:
- reto
PlainLiteralImpl
public PlainLiteralImpl(String value)
PlainLiteralImpl
public PlainLiteralImpl(String value,
Language language)
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.