org.semanticweb.elk.owl.iris
Class ElkPrefixDeclarationsImpl

java.lang.Object
  extended by org.semanticweb.elk.owl.iris.ElkPrefixDeclarationsImpl
All Implemented Interfaces:
ElkPrefixDeclarations

public class ElkPrefixDeclarationsImpl
extends Object
implements ElkPrefixDeclarations

Author:
Frantisek Simancik

Field Summary
protected  Map<String,ElkPrefix> prefixLookup
           
 
Constructor Summary
ElkPrefixDeclarationsImpl()
           
 
Method Summary
 boolean addPrefix(ElkPrefix prefix)
          Prefix declaration.
 ElkPrefix getPrefix(String prefixName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefixLookup

protected final Map<String,ElkPrefix> prefixLookup
Constructor Detail

ElkPrefixDeclarationsImpl

public ElkPrefixDeclarationsImpl()
Method Detail

addPrefix

public boolean addPrefix(ElkPrefix prefix)
Description copied from interface: ElkPrefixDeclarations
Prefix declaration. Rejects if a prefix with the same name has already been declared.

Specified by:
addPrefix in interface ElkPrefixDeclarations
Returns:
true is successful

getPrefix

public ElkPrefix getPrefix(String prefixName)
Specified by:
getPrefix in interface ElkPrefixDeclarations
Returns:
The ElkPrefix associated with the prefixName or null if none.


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