org.semanticweb.elk.owl.iris
Class ElkIri

java.lang.Object
  extended by org.semanticweb.elk.owl.iris.ElkIri
All Implemented Interfaces:
Comparable<ElkIri>, ElkAnnotationSubject, ElkAnnotationValue, ElkObject
Direct Known Subclasses:
ElkAbbreviatedIri, ElkFullIri

public abstract class ElkIri
extends Object
implements Comparable<ElkIri>, ElkAnnotationSubject, ElkAnnotationValue

This class represents an IRI. It redefines hash and equality so that two IRIs are considered equal iff their string representations are equal.

Author:
Frantisek Simancik

Field Summary
protected  int hashCode
           
 
Constructor Summary
protected ElkIri(int hashCode)
           
 
Method Summary
<O> O
accept(ElkObjectVisitor<O> visitor)
           
 int compareTo(ElkIri arg)
           
 boolean equals(Object obj)
           
abstract  String getFullIriAsString()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashCode

protected final int hashCode
Constructor Detail

ElkIri

protected ElkIri(int hashCode)
Method Detail

getFullIriAsString

public abstract String getFullIriAsString()
Returns:
the full IRI as a string

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(ElkIri arg)
Specified by:
compareTo in interface Comparable<ElkIri>

accept

public <O> O accept(ElkObjectVisitor<O> visitor)
Specified by:
accept in interface ElkObject


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.