treebolic.provider.xml.dom
Class Provider

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

public class Provider
extends java.lang.Object
implements IProvider


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

Field Detail

theContext

protected 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

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

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

makeUrl

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

Parameters:
thisSource - source
Returns:
URL

makeModel

protected Model makeModel(java.net.URL thisUrl)
Make model from url

Parameters:
thisUrl - url
Returns:
model

makeTree

protected Tree makeTree(java.net.URL thisUrl)
Make tree from url

Parameters:
thisUrl - url
Returns:
tree

makeDocument

protected org.w3c.dom.Document makeDocument(java.net.URL thisUrl)
Make DOM document from its Url

Parameters:
thisUrl - document url
Returns:
DOM document

ask

protected java.lang.String ask(java.lang.String thisMessage)
Ask

Parameters:
thisMessage - message
Returns:
input

inform

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

Parameters:
thisMessage - message