treebolic.provider.xml.fast
Class Provider

java.lang.Object
  extended by treebolic.provider.xml.fast.Provider
All Implemented Interfaces:
IProvider

public class Provider
extends java.lang.Object
implements IProvider

Provider factory implementation

Author:
Bernard Bou

Field Summary
private  IProviderContext theContext
          Context used to query for Url
protected  java.net.URL theUrl
          Url
 
Constructor Summary
Provider()
          Constructor
 
Method Summary
private  java.lang.String ask(java.lang.String thisMessage)
          Ask dialog
 void connect(IProviderContext thisContext)
          Called by framework to pass context reference (may default to void action if provider does not need it)
private  void inform(java.lang.String thisMessage)
          Inform dialog
 Model makeModel(java.lang.String thisSource)
          Make model
 Tree makeTree(java.lang.String thisSource, boolean checkRecursion)
          Make tree.
private  java.net.URL makeUrl(java.lang.String thisSource)
          Make Url
private  Model parseModel(java.net.URL thisURL)
          Populate model with data from URL
private  Tree parseTree(java.net.URL thisURL)
          Populate tree with data from URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theContext

private IProviderContext theContext
Context used to query for Url


theUrl

protected java.net.URL theUrl
Url

Constructor Detail

Provider

public Provider()
Constructor

Method Detail

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 thisSource)
Description copied from interface: IProvider
Make model

Specified by:
makeModel in interface IProvider
Parameters:
thisSource - 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 thisSource,
                     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:
thisSource - 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

makeUrl

private java.net.URL makeUrl(java.lang.String thisSource)
Make Url

Parameters:
thisSource - source
Returns:
URL

parseModel

private Model parseModel(java.net.URL thisURL)
Populate model with data from URL

Parameters:
thisURL - url
Returns:
model or null

parseTree

private Tree parseTree(java.net.URL thisURL)
Populate tree with data from URL

Parameters:
thisURL - url
Returns:
tree or null

ask

private java.lang.String ask(java.lang.String thisMessage)
Ask dialog

Parameters:
thisMessage - message
Returns:
input

inform

private void inform(java.lang.String thisMessage)
Inform dialog

Parameters:
thisMessage - message