org.activemath.omdocjdom.index.analysis
Class ContentExtractor

java.lang.Object
  extended by org.activemath.omdocjdom.index.analysis.ContentExtractor

public abstract class ContentExtractor
extends Object

Simple abstraction of MBaseRef for the purpose of index-extraction which also works on a MBaseRef being-built (important for speed).


Constructor Summary
protected ContentExtractor()
           
 
Method Summary
abstract  String getAttribute(MBaseID id, String name)
           
abstract  List getCMPs(MBaseID id)
           
abstract  Map getCommonName(MBaseID id)
           
abstract  OJElement getFullItem(MBaseID id)
           
abstract  OJElement getMetadata(MBaseID id)
           
abstract  String getTypeString(MBaseID id)
           
static ContentExtractor makeCombinedExtractor(ContentExtractor a, ContentExtractor b)
           
static ContentExtractor makeMapExtractor(Map map)
           
static ContentExtractor makeMBaseRefExtractor(MBaseRef ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentExtractor

protected ContentExtractor()
Method Detail

makeMBaseRefExtractor

public static ContentExtractor makeMBaseRefExtractor(MBaseRef ref)

makeMapExtractor

public static ContentExtractor makeMapExtractor(Map map)

makeCombinedExtractor

public static ContentExtractor makeCombinedExtractor(ContentExtractor a,
                                                     ContentExtractor b)

getCMPs

public abstract List getCMPs(MBaseID id)
                      throws MBaseException
Throws:
MBaseException

getMetadata

public abstract OJElement getMetadata(MBaseID id)
                               throws MBaseException
Throws:
MBaseException

getFullItem

public abstract OJElement getFullItem(MBaseID id)
                               throws MBaseException
Throws:
MBaseException

getCommonName

public abstract Map getCommonName(MBaseID id)
                           throws MBaseException
Throws:
MBaseException

getAttribute

public abstract String getAttribute(MBaseID id,
                                    String name)
                             throws MBaseException
Throws:
MBaseException

getTypeString

public abstract String getTypeString(MBaseID id)
                              throws MBaseException
Throws:
MBaseException