org.activemath.omdocjdom.slumb
Class Inheritor

java.lang.Object
  extended by org.activemath.omdocjdom.slumb.Inheritor

public class Inheritor
extends Object

A class that is responsible to operate the inheritance procedure which allows included items to obtain new children and attributes based on the parents. A typical use-case is that of inheriting the authorship or source informations.


Nested Class Summary
static interface Inheritor.Reparser
           
 
Constructor Summary
Inheritor(File collDir)
           
Inheritor(IndexedCollectionStatus coll)
           
 
Method Summary
 void operateInheritance(OJItem item)
          injects inside the metadata and extradata children, the inherited fields.
 void setReparser(Inheritor.Reparser reparser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inheritor

public Inheritor(File collDir)

Inheritor

public Inheritor(IndexedCollectionStatus coll)
Method Detail

setReparser

public void setReparser(Inheritor.Reparser reparser)

operateInheritance

public void operateInheritance(OJItem item)
injects inside the metadata and extradata children, the inherited fields.

Parameters:
item - the element whose metadata will be populated, from any parent, expressly inherited and manifest