eXchaNGeR

org.xngr
Interface XManager


public interface XManager

The Manager allows services to interact with other services and returns handles to available documents and elements.

Version:
$Revision: 1.1.1.1 $, $Date: 2002/02/16 16:12:51 $
Author:
Edwin Dankert

Method Summary
 boolean addDocument(XDocument document)
          Adds a document to the list of documents.
 XAction[] getActions(XElementType type)
          Returns the actions that are associated with the element-type.
 XDocument getDocument(URL url)
          Returns a document for the url supplied.
 XElement getElement(XUrl xurl)
          Returns an element for the url supplied.
 void open(XElement element)
          Opens the element with the default service.
 

Method Detail

getElement

public XElement getElement(XUrl xurl)
Returns an element for the url supplied.
Parameters:
xurl - the XUrl (URL and xpath) of the element.
Returns:
element that is found for the url, null if not found.

getDocument

public XDocument getDocument(URL url)
Returns a document for the url supplied.
Parameters:
url - the URL of the document.
Returns:
document that is found for the URL, null if not found.

addDocument

public boolean addDocument(XDocument document)
Adds a document to the list of documents.
Parameters:
document - the document to be added.
Returns:
true if the document did not exist in the list yet.

open

public void open(XElement element)
Opens the element with the default service.
Parameters:
element - the element to be opened.

getActions

public XAction[] getActions(XElementType type)
Returns the actions that are associated with the element-type.
Parameters:
type - the element-type of the actions.
Returns:
the actions associated with the element-type.

eXchaNGeR

Copyright © 2002, Cladonia Ltd., All Rights Reserved