se.kmr.scam.editor
Class FieldMap

java.lang.Object
  extended byse.kmr.scam.editor.FieldMap

public class FieldMap
extends Object

A set of variables are bound to values in a RDF-model. Theese variables are styled by a stylesheet.

Version:
$Revision: 1.48 $
Author:
Jöran
Created:
den 4 september 2002

Constructor Summary
FieldMap(Model queryModel, Model valueModel, Model formModel, Model externalModel, Resource root)
          Full Constructor.
FieldMap(Model queryModel, Model valueModel, Model formModel, Resource root)
          Constructor for the FieldMap object
FieldMap(String queryModelUri, String valueModelUri, String formModelUri, Resource root)
          Constructor for the FieldMap object
 
Method Summary
 Collection getAllowedLanguages()
          Gets a collection of allowed languages for the multilingual nodes.
 Model getFormModel()
          Gets the current FormModel
 FormNode getFormNode()
          Gets the form-node that represents the top node of the form.
 Node getNode(String id)
          Gets the form-node associated to a id.
 QueryModel getQuery()
           
 Model getQueryModel()
          Gets the current QueryModel
 Model getValueModel()
          Gets the current ValueModel
static void main(String[] args)
          The main program for the FieldMap class
 String toString()
          Gets string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldMap

public FieldMap(Model queryModel,
                Model valueModel,
                Model formModel,
                Model externalModel,
                Resource root)
         throws RDFException
Full Constructor.

Parameters:
queryModel -
valueModel -
formModel -
externalModel -
Throws:
RDFException

FieldMap

public FieldMap(Model queryModel,
                Model valueModel,
                Model formModel,
                Resource root)
         throws RDFException
Constructor for the FieldMap object

Parameters:
queryModel - the QueryModel
valueModel - the ValueModel
formModel - the FormModel
Throws:
RDFException - thrown in case of exception while reading data from the models.

FieldMap

public FieldMap(String queryModelUri,
                String valueModelUri,
                String formModelUri,
                Resource root)
         throws RDFException
Constructor for the FieldMap object

Parameters:
queryModelUri - URI to the QueryModel
valueModelUri - URI to the ValueModel
formModelUri - URI to the FormModel
Throws:
RDFException - thrown in case of exception while handling the models.
Method Detail

getValueModel

public Model getValueModel()
Gets the current ValueModel

Returns:
The ValueModel

getFormModel

public Model getFormModel()
Gets the current FormModel

Returns:
The FormModel

getQueryModel

public Model getQueryModel()
Gets the current QueryModel

Returns:
The QueryModel

getQuery

public QueryModel getQuery()

getFormNode

public FormNode getFormNode()
Gets the form-node that represents the top node of the form.

Returns:
The top node of the form .

getNode

public Node getNode(String id)
Gets the form-node associated to a id.

Parameters:
id - The id.
Returns:
The form-node associated to the given id.

getAllowedLanguages

public Collection getAllowedLanguages()
Gets a collection of allowed languages for the multilingual nodes.


toString

public String toString()
Gets string representation of the object.

Returns:
a string-value of the object

main

public static void main(String[] args)
The main program for the FieldMap class

Parameters:
args - The command line arguments


Copyright © 2003 SCAM. All Rights Reserved.