treebolic.provider.xml.graph
Class AbstractProvider

java.lang.Object
  extended by treebolic.provider.xml.graph.AbstractProvider
All Implemented Interfaces:
IProvider
Direct Known Subclasses:
Provider, Provider

public abstract class AbstractProvider
extends java.lang.Object
implements IProvider

Graph provider

Author:
Bernard Bou

Field Summary
protected  IProviderContext theContext
          Provider client
 
Constructor Summary
AbstractProvider()
          Constructor
 
Method Summary
 void connect(IProviderContext thisContext)
          Called by framework to pass context reference (may default to void action if provider does not need it)
abstract  AbstractParser getParser()
          Get parser
abstract  java.lang.String getSource(java.lang.String thisSource)
          Fallback hook to determine source
 Model makeModel(java.lang.String thatSource)
          Make model
 Tree makeTree(java.lang.String thatSource, boolean checkRecursion)
          Make tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theContext

protected IProviderContext theContext
Provider client

Constructor Detail

AbstractProvider

public AbstractProvider()
Constructor

Method Detail

getSource

public abstract java.lang.String getSource(java.lang.String thisSource)
Fallback hook to determine source

Parameters:
thisSource - passed source
Returns:
source

getParser

public abstract AbstractParser getParser()
Get parser

Returns:
abstract parser

connect

public void connect(IProviderContext thisContext)
Description copied from interface: IProvider
Called by framework to pass context reference (may default to void action if provider does not need it)

Specified by:
connect in interface IProvider
Parameters:
thisContext - context

makeModel

public Model makeModel(java.lang.String thatSource)
Description copied from interface: IProvider
Make model

Specified by:
makeModel in interface IProvider
Parameters:
thatSource - source (a string that refers to the data in a was that the provider implementation will understand)
Returns:
model

makeTree

public Tree makeTree(java.lang.String thatSource,
                     boolean checkRecursion)
Description copied from interface: IProvider
Make tree. Settings are not parsed. This is used in mounting.

Specified by:
makeTree in interface IProvider
Parameters:
thatSource - source (a string that refers to the data in a was that the provider implementation will understand)
checkRecursion - whether immediate recursion is checked (avoid mount-now infinite recursion)
Returns:
tree