it.uniroma2.art.owlart.model
Interface ARTLiteral

All Superinterfaces:
ARTNode
All Known Subinterfaces:
NodeFilters.JackOfAllTradesNode
All Known Implementing Classes:
ARTLiteralEmptyImpl

public interface ARTLiteral
extends ARTNode

interface for literal RDF nodes

Author:
Armando Stellato

Method Summary
 boolean equals(java.lang.Object other)
          Compares a literal object to another object.
 ARTURIResource getDatatype()
          Gets the datatype for this literal.
 java.lang.String getLabel()
          Gets the label of this literal.
 java.lang.String getLanguage()
          Gets the language tag for this literal, normalized to lowercase.
 int hashCode()
          The hash code of a literal is defined as the hash code of its label: label.hashCode().
 
Methods inherited from interface it.uniroma2.art.owlart.model.ARTNode
asBNode, asLiteral, asResource, asURIResource, getNominalValue, isBlank, isLiteral, isResource, isURIResource, toString
 

Method Detail

getLabel

java.lang.String getLabel()
Gets the label of this literal.

Returns:
The literal's label.

getLanguage

java.lang.String getLanguage()
Gets the language tag for this literal, normalized to lowercase.

Returns:
The language tag for this literal, or null if it doesn't have one.

getDatatype

ARTURIResource getDatatype()
Gets the datatype for this literal.

Returns:
The datatype for this literal, or null if it doesn't have one.

equals

boolean equals(java.lang.Object other)
Compares a literal object to another object.

Specified by:
equals in interface ARTNode
Overrides:
equals in class java.lang.Object
Parameters:
other - The object to compare this literal to.
Returns:
true if labels, language tags and datatypes from it and from other are equal equal.

hashCode

int hashCode()
The hash code of a literal is defined as the hash code of its label: label.hashCode().

Specified by:
hashCode in interface ARTNode
Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for the literal.


Copyright © 2013 ART Group, University of Rome, Tor Vergata. All Rights Reserved.