org.semanticweb.elk.owl.iris
Class ElkAbbreviatedIri

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

public class ElkAbbreviatedIri
extends ElkIri

Represents an abbreaviated IRI. This class holds enough information to be able to get the IRI both in the full and the abbreviated form.

Author:
Frantisek Simancik

Field Summary
protected  String localName
           
protected  ElkPrefix prefix
           
 
Fields inherited from class org.semanticweb.elk.owl.iris.ElkIri
hashCode
 
Constructor Summary
ElkAbbreviatedIri(ElkPrefix prefix, String localName)
           
 
Method Summary
 int compareTo(ElkIri arg)
           
protected static int concatHashCode(String a, String b)
          Returns (a+b).hashCode() without actually concatenating the strings.
 String getFullIriAsString()
           
 String getLocalName()
           
 ElkPrefix getPrefix()
           
 String toString()
           
 
Methods inherited from class org.semanticweb.elk.owl.iris.ElkIri
accept, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

prefix

protected final ElkPrefix prefix

localName

protected final String localName
Constructor Detail

ElkAbbreviatedIri

public ElkAbbreviatedIri(ElkPrefix prefix,
                         String localName)
Method Detail

getPrefix

public ElkPrefix getPrefix()

getLocalName

public String getLocalName()

getFullIriAsString

public String getFullIriAsString()
Specified by:
getFullIriAsString in class ElkIri
Returns:
the full IRI as a string

compareTo

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

concatHashCode

protected static int concatHashCode(String a,
                                    String b)
Returns (a+b).hashCode() without actually concatenating the strings.


toString

public String toString()
Overrides:
toString in class Object


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