Protege 4.1.0

org.protege.editor.owl.model.entity
Class AbstractIDGenerator

java.lang.Object
  extended by org.protege.editor.owl.model.entity.AbstractIDGenerator
All Implemented Interfaces:
AutoIDGenerator
Direct Known Subclasses:
IterativeAutoIDGenerator, PseudoRandomAutoIDGenerator, UniqueIdGenerator

public abstract class AbstractIDGenerator
extends Object
implements AutoIDGenerator

Author: drummond
http://www.cs.man.ac.uk/~drummond/

The University Of Manchester
Bio Health Informatics Group
Date: Jul 28, 2008


Constructor Summary
AbstractIDGenerator()
           
 
Method Summary
protected  int getDigitLength()
           
 String getNextID(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)
           
protected  String getPrefix(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)
           
protected abstract  long getRawID(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)
           
protected  String getSuffix(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)
           
protected  String preprocess(String s, Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractIDGenerator

public AbstractIDGenerator()
Method Detail

getNextID

public String getNextID(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)
                 throws AutoIDException
Specified by:
getNextID in interface AutoIDGenerator
Throws:
AutoIDException

getRawID

protected abstract long getRawID(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)
                          throws AutoIDException
Throws:
AutoIDException

getPrefix

protected String getPrefix(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)

getSuffix

protected String getSuffix(Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)

preprocess

protected String preprocess(String s,
                            Class<? extends org.semanticweb.owlapi.model.OWLEntity> type)

getDigitLength

protected int getDigitLength()

Protege 4.1.0

Submit a bug report or feature request

For further API reference and developer documentation, see Protege 4 Developer Documentation.

Copyright © 2010 Stanford Center for Biomedical Informatics Research