ch.uzh.ifi.attempto.acewiki
Class Backend

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.Backend

public class Backend
extends java.lang.Object

This class is used as the backend of an AceWiki. It contains the ontology for the AceWiki and the parameters.

Author:
Yu Changyuan

Constructor Summary
Backend(java.util.Map<java.lang.String,java.lang.String> parameters)
          Creates a new Backend instance for the given parameters.
 
Method Summary
 Ontology getOntology()
          Get the Ontology instance for this Backend.
 java.lang.String getParameter(java.lang.String param)
          Get a specific parameter for this Backend.
 java.util.Map<java.lang.String,java.lang.String> getParameters()
          Get the parameters of this Backend.
 AceWikiStorage getStorage()
          Get the storage associated with this backend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Backend

public Backend(java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a new Backend instance for the given parameters.

Parameters:
parameters - The parameters for the AceWiki Backend.
Method Detail

getStorage

public AceWikiStorage getStorage()
Get the storage associated with this backend.

Returns:
The AceWikiStorage instance.

getOntology

public Ontology getOntology()
Get the Ontology instance for this Backend.

Returns:
The Ontology object.

getParameters

public java.util.Map<java.lang.String,java.lang.String> getParameters()
Get the parameters of this Backend.

Returns:
The parameters.

getParameter

public java.lang.String getParameter(java.lang.String param)
Get a specific parameter for this Backend.

Parameters:
param - The parameter name.
Returns:
The value of the parameter, or null if the parameter does not exist.


Copyright 2008-2012, AceWiki developers