se.kmr.scam.editor.vocabulary
Class Editor

java.lang.Object
  extended byse.kmr.scam.editor.vocabulary.Editor

public class Editor
extends Object

Defines the vocabulary used in the RDF Editor. The RDFQuery-model defines a relation between parameter variables and values in the RDFValue-model. The RDFQuery defines a projection variable that will be projected over the RDFValue-model, fixating the models to each other. The RDFForm-model defines a relation between parameter variables (references to values in the RDFValue-model) and attributes in an abstract view. Note:
In the documentation for RDFForm properties the word paramater refers to the parameter, or property, in the RDFValue model, identified by the parameter variable that also is associated to the RDFForm-node.

Version:
$Revision: 1.25 $
Author:
Jöran
Created:
den 29 juli 2002

Field Summary
static Property ACL
          Description of the Field
static Property ALLOWEDLANGUAGES
          Defines a RDFForm property that determines if the parameter supports multi-lingual values.
static Property ALLOWMULTIPLEBINDINGS
          Defines a RDFForm property that determines wether the parameter should be made available for multiple bindings
static Property DISPLAYTYPE
          Defines a RDFForm property that identifies the field type.
static String DUMMY_BASE_URI
           
static Property EDITABLE
          Defines a RDFForm property that determines wether the parameter should be made available for editing.
static Resource FALSE
          Defines the boolean value false
static Resource FORM
          Defines the form type for resources in a RDFForm.
static Property IMPORTMODEL
           
static Resource LABEL
          Defines the label type for resources in a RDFForm.
static Property LANGUAGE
          Defines a RDFForm property that determines if the parameter supports multi-lingual values.
static Property MAXCHARS
          Defines a RDFForm property that describes a upper limit of expected characters in the parameter value.
static Resource PARAMETER
          Defines a resource type for parameter variables
static Resource PREDEFINED
          Defines the predefined type for resources in a RDFForm.
static Resource PRIVATE
          Description of the Field
static Resource PROJECTION
          Defines a resource type for projection variables
static Resource PROTECTED
          Description of the Field
static Resource PUBLIC
          Description of the Field
static Property REPETED
          Defines a RDFForm property, used for labels, that determines wether the label is repeted for each property.
static Resource TEXT
          Defines the text type for resources in a RDFForm.
static Property title
           
static Resource TRUE
          Defines the boolean value true
static Property VALIDATIONTYPE
          Defines a RDFForm property that identifies a validator for the field value.
static Property VALUE
          Defines a RDFForm property that represents the value of the parameter.
static Property VARIABLE
          Defines the property that identifies the associated variable
static Property VISIBLE
          Defines a RDFForm property that determines wether the parameter should be visible or not.
 
Constructor Summary
Editor()
           
 
Method Summary
static String getDummyResource(String resource)
           
static String getFirstMemberInAltViaProperty(Model mo, String nuri, Property prop)
           
static String getNameFrom(Model mo, String nuri)
           
static String getResourceFromDummy(String dummy)
           
static String getVariableNamespace()
           
static Resource getVariableResource(String name)
          Gets the variableResource attribute of the Editor class
static boolean isDummyResource(String dummy)
           
static boolean isParameterVariable(Resource res)
          Test if a resource is defined as a parameter variable.
static boolean isProjectionVariable(Resource res)
          Test if a resource is defined as a projection variable.
static boolean isVariable(Resource res)
          Gets the variable attribute of the Editor class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMMY_BASE_URI

public static final String DUMMY_BASE_URI
See Also:
Constant Field Values

PROJECTION

public static Resource PROJECTION
Defines a resource type for projection variables


PARAMETER

public static Resource PARAMETER
Defines a resource type for parameter variables


VARIABLE

public static Property VARIABLE
Defines the property that identifies the associated variable


TRUE

public static Resource TRUE
Defines the boolean value true


FALSE

public static Resource FALSE
Defines the boolean value false


FORM

public static Resource FORM
Defines the form type for resources in a RDFForm. form represents the top node in a RDFForm.


LABEL

public static Resource LABEL
Defines the label type for resources in a RDFForm. label represents a node containing a label.


TEXT

public static Resource TEXT
Defines the text type for resources in a RDFForm. text represents a node containing the value of a parameter.


PREDEFINED

public static Resource PREDEFINED
Defines the predefined type for resources in a RDFForm. predefined represents a node containing the value of a parameter, the value belongs to a pre-defined set of values.


VISIBLE

public static Property VISIBLE
Defines a RDFForm property that determines wether the parameter should be visible or not.


EDITABLE

public static Property EDITABLE
Defines a RDFForm property that determines wether the parameter should be made available for editing.


ALLOWMULTIPLEBINDINGS

public static Property ALLOWMULTIPLEBINDINGS
Defines a RDFForm property that determines wether the parameter should be made available for multiple bindings


REPETED

public static Property REPETED
Defines a RDFForm property, used for labels, that determines wether the label is repeted for each property.


MAXCHARS

public static Property MAXCHARS
Defines a RDFForm property that describes a upper limit of expected characters in the parameter value.


LANGUAGE

public static Property LANGUAGE
Defines a RDFForm property that determines if the parameter supports multi-lingual values.


ALLOWEDLANGUAGES

public static Property ALLOWEDLANGUAGES
Defines a RDFForm property that determines if the parameter supports multi-lingual values.


VALUE

public static Property VALUE
Defines a RDFForm property that represents the value of the parameter.


VALIDATIONTYPE

public static Property VALIDATIONTYPE
Defines a RDFForm property that identifies a validator for the field value.


DISPLAYTYPE

public static Property DISPLAYTYPE
Defines a RDFForm property that identifies the field type.


IMPORTMODEL

public static Property IMPORTMODEL

PUBLIC

public static Resource PUBLIC
Description of the Field


PROTECTED

public static Resource PROTECTED
Description of the Field


PRIVATE

public static Resource PRIVATE
Description of the Field


ACL

public static Property ACL
Description of the Field


title

public static Property title
Constructor Detail

Editor

public Editor()
Method Detail

getVariableResource

public static Resource getVariableResource(String name)
                                    throws RDFException
Gets the variableResource attribute of the Editor class

Parameters:
name - Description of the Parameter
Returns:
The variableResource value
Throws:
RDFException - Description of the Exception

getVariableNamespace

public static String getVariableNamespace()
Returns:

isProjectionVariable

public static boolean isProjectionVariable(Resource res)
Test if a resource is defined as a projection variable.

Parameters:
res - Test this resource
Returns:
true iff the resource is defined as a projection variable, false otherwise.

isParameterVariable

public static boolean isParameterVariable(Resource res)
Test if a resource is defined as a parameter variable.

Parameters:
res - Test this resource
Returns:
true iff the resource is defined as a parameter variable, false otherwise.

isVariable

public static boolean isVariable(Resource res)
Gets the variable attribute of the Editor class

Parameters:
res - Description of the Parameter
Returns:
The variable value

getNameFrom

public static String getNameFrom(Model mo,
                                 String nuri)

getFirstMemberInAltViaProperty

public static String getFirstMemberInAltViaProperty(Model mo,
                                                    String nuri,
                                                    Property prop)

getDummyResource

public static String getDummyResource(String resource)

isDummyResource

public static boolean isDummyResource(String dummy)

getResourceFromDummy

public static String getResourceFromDummy(String dummy)


Copyright © 2003 SCAM. All Rights Reserved.