org.apache.clerezza.rdf.core
Interface TypedLiteral

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

public interface TypedLiteral
extends Literal

Typed literals have a lexical form and a data type URI being an RDF URI reference. To convert java objects to typed literals use LiteralFactory

Author:
reto

Method Summary
 boolean equals(Object obj)
          Two TypedLiteral nodes are equal iff they have the same lexical form and the same data type
 UriRef getDataType()
          Returns the data type which is a UriRef.
 int hashCode()
          The hash code is equal to the hash code of the lexical form plus the hash code of the dataType
 
Methods inherited from interface org.apache.clerezza.rdf.core.Literal
getLexicalForm
 

Method Detail

getDataType

UriRef getDataType()
Returns the data type which is a UriRef. Note that the return value is not a node in the graph

Returns:
UriRef

equals

boolean equals(Object obj)
Two TypedLiteral nodes are equal iff they have the same lexical form and the same data type

Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if obj is an instance of TypedLiteral for which the lexical form and the data type URI are equal to the ones of this instance, false otherwise

hashCode

int hashCode()
The hash code is equal to the hash code of the lexical form plus the hash code of the dataType

Overrides:
hashCode in class Object
Returns:
hash code


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