gr.forth.ics.rdfsuite.swkm.model
Interface IRDF_Literal

All Known Implementing Classes:
RDF_Literal

public interface IRDF_Literal

This class describes a Literal value (e.g a name) According to the RDF specification a Literal is described by a value attribute, a language attribute and a type attribute. The type can be any valid type (like "int","String","char" e.t.c) as long as the value can be interpreted in that form


Method Summary
 java.lang.String getLanguage()
          This method retrieves the language of the Literal
 java.lang.String getType()
          This method retrieves the type of the literal
 java.lang.Object getValue()
          This method retrieves the value of the Literal which must be further casted to its type
 void setLanguage(java.lang.String language)
          This method sets the language of the Literal
 void setType(java.lang.String type)
          This method defines the type of the Literal
 void setValue(java.lang.Object value)
          This method sets the value of the Literal
 java.lang.String toString()
           
 

Method Detail

getValue

java.lang.Object getValue()
This method retrieves the value of the Literal which must be further casted to its type

Returns:
The value of the Literal

setValue

void setValue(java.lang.Object value)
This method sets the value of the Literal

Parameters:
value - The value to be set to the literal

getLanguage

java.lang.String getLanguage()
This method retrieves the language of the Literal

Returns:
A String describing the language of the Literal

setLanguage

void setLanguage(java.lang.String language)
This method sets the language of the Literal

Parameters:
language - A String describing the language of the Literal

getType

java.lang.String getType()
This method retrieves the type of the literal

Returns:
A String containing the type of the Literal(e.g "int","String" e.t.c)

setType

void setType(java.lang.String type)
This method defines the type of the Literal

Parameters:
type - The String that contains the type of the Literal

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object