eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.RDF.model
Class UriLiteralValue

java.lang.Object
  extended byeworks.RDF.model.Value
      extended byeworks.RDF.model.LiteralValue
          extended byeworks.RDF.model.UriLiteralValue

public class UriLiteralValue
extends LiteralValue

Represents an URI literal.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)

Constructor Summary
UriLiteralValue(String literal)
          Creates a new instance representing the given URI literal literal.
 
Method Summary
 boolean equals(Object o)
          Checks if the URI is equal to a given object.
 String getLocalName()
          Returns the URI's local name component.
 URI getNamespace()
          Returns the URI's namespace component.
 URI getURI()
          Returns the encapsulated URI.
 int hashCode()
          Returns the URI's hash code.
 String toString()
          Returns the URI's string representation.
 
Methods inherited from class eworks.RDF.model.LiteralValue
getValue, getValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UriLiteralValue

public UriLiteralValue(String literal)
                throws URISyntaxException
Creates a new instance representing the given URI literal literal.

Parameters:
literal - The URI literal to use.
Throws:
URISyntaxException - if the given literal is no valid URI.
Method Detail

getURI

public URI getURI()
Returns the encapsulated URI.

Returns:
The encapsulated URI.

getNamespace

public URI getNamespace()
Returns the URI's namespace component.

Returns:
The URI's namespace component.

getLocalName

public String getLocalName()
Returns the URI's local name component.

Returns:
The URI's local name component.

toString

public String toString()
Returns the URI's string representation.

Returns:
The URI's string representation.

hashCode

public int hashCode()
Returns the URI's hash code.

Overrides:
hashCode in class LiteralValue
Returns:
The URI's hash code.

equals

public boolean equals(Object o)
Checks if the URI is equal to a given object. To do so it is checked if the given object o is an instance of UriLiteralValue, too. If so, both encapsulated URIs are checked for equality. Otherwise the call is propagated to the inhertied implementation LiteralValue.equals(Object).

Overrides:
equals in class LiteralValue
Returns:
true if and only if the URI is equal to o.

eRqlEngine API documentation - http://www.wleklinski.de/rdf/