public class PlainLiteralImpl extends Object implements PlainLiteral
Constructor and Description |
---|
PlainLiteralImpl(String value) |
PlainLiteralImpl(String value,
Language language) |
Modifier and Type | Method and Description |
---|---|
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() |
public PlainLiteralImpl(String value)
public String getLexicalForm()
getLexicalForm
in interface Literal
public boolean equals(Object otherObj)
PlainLiteral
obj
is an instance of
PlainLiteral
for which the lexical form and the language
are equals to the ones of this instance, false otherwiseequals
in interface PlainLiteral
equals
in class Object
public int hashCode()
PlainLiteral
hashCode
in interface PlainLiteral
hashCode
in class Object
public Language getLanguage()
getLanguage
in interface PlainLiteral
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.