se.kmr.scam.editor.util.form
Class Node

java.lang.Object
  extended byse.kmr.scam.editor.util.form.Node
Direct Known Subclasses:
FormNode, TextNode

public class Node
extends Object

A base class for nodes in the abstract form view.

Version:
$Revision: 1.20 $
Author:
Jöran
Created:
den 2 augusti 2002

Field Summary
protected  org.apache.log4j.Category _cat
          Description of the Field
 
Constructor Summary
protected Node()
          Constructor for the ValueNode object
protected Node(Node node)
          Copy constructor for the Node object
protected Node(Resource variable)
          Constructor for the ValueNode object
 
Method Summary
 Collection getDescription()
          Gets a collection description values associated to this node.
 String getDisplayType()
          Gets an identifier for the node display type.
 String getId()
          Gets a new instance of this object
protected  String getInfo()
          Gets a string representation of this objects data
 boolean getIsEditable()
          Gets the isEditable attribute of the ValueNode object
 boolean getIsFormNode()
          Gets the isFormNode attribute of the Node object
 boolean getIsLabelNode()
          Gets the isLableNode attribute of the Node object
 boolean getIsMultipleBindingsAllowed()
          Gets the isMultipleBindingsAllowed attribute of the ValueNode object
 boolean getIsPredefinedNode()
          Gets the isPredefinedNode attribute of the Node object
 boolean getIsTextNode()
          Gets the isTextNode attribute of the Node object
 boolean getIsVisible()
          Gets the isVisible attribute of the ValueNode object
 String getLanguage()
          Gets the language attribute of the Node object
 Node getNewInstance()
          Gets a new instance of this object
 String getValidationType()
          Gets an identifier for a datatype validator that validates the data associated with this node.
 String getValue()
          Gets the value attribute of the Node object
 ValueObject getValueObject()
          Gets the valueObject attribute of the Node object
 Resource getVariable()
          Gets the variable attribute of the ValueNode object
 boolean isEditable()
          Gets the editable attribute of the ValueNode object
 boolean isEdited()
           
 boolean isFormNode()
          Gets the formNode attribute of the ValueNode object
 boolean isLabelNode()
          Gets the labelNode attribute of the ValueNode object
 boolean isMultipleBindingsAllowed()
          Gets the multipleBindingsAllowed attribute of the ValueNode object
 boolean isPredefinedNode()
          Gets the predefinedNode attribute of the ValueNode object
 boolean isTextNode()
          Gets the textNode attribute of the ValueNode object
 boolean isVisible()
          Gets the visible attribute of the ValueNode object
 void setDescriptions(Collection description)
          Sets the description attribute of the ValueNode object
 void setDisplayType(String displayType)
          Sets an identifier for the node display type.
 void setEditable(boolean value)
          Sets the editable attribute of the ValueNode object
 void setEdited(boolean edited)
           
 void setMultipleBindingsAllowed(boolean value)
          Sets the multipleBindingsAllowed attribute of the ValueNode object
 void setValidationType(String validationType)
          Sets an identifier for a datatype validator that validates the data associated with this node.
 void setValueObject(ValueObject valueObject)
          Sets the valueObject attribute of the Node object
 void setVisible(boolean value)
          Sets the visible attribute of the ValueNode object
 String toString()
          Gets a string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_cat

protected org.apache.log4j.Category _cat
Description of the Field

Constructor Detail

Node

protected Node()
Constructor for the ValueNode object


Node

protected Node(Resource variable)
Constructor for the ValueNode object

Parameters:
variable - Associate the node to this variable

Node

protected Node(Node node)
Copy constructor for the Node object

Parameters:
node - Copy this Node object
Method Detail

getNewInstance

public Node getNewInstance()
Gets a new instance of this object

Returns:
a new object, representing the data.

getId

public String getId()
Gets a new instance of this object

Returns:
a new object, representing the data.

setValueObject

public void setValueObject(ValueObject valueObject)
Sets the valueObject attribute of the Node object

Parameters:
valueObject - The new valueObject value

getValueObject

public ValueObject getValueObject()
Gets the valueObject attribute of the Node object

Returns:
The valueObject value

getValue

public String getValue()
Gets the value attribute of the Node object

Returns:
The value value

getLanguage

public String getLanguage()
Gets the language attribute of the Node object

Returns:
The language value

getVariable

public Resource getVariable()
Gets the variable attribute of the ValueNode object

Returns:
The variable value

getDescription

public Collection getDescription()
Gets a collection description values associated to this node. The values is of type RDFNode.

Returns:
The description value

setDescriptions

public void setDescriptions(Collection description)
Sets the description attribute of the ValueNode object

Parameters:
description - The new description value

getValidationType

public String getValidationType()
Gets an identifier for a datatype validator that validates the data associated with this node.

Returns:
An identifier for a datatype validator, if such is assigned to this object, otherwise an empty string.

getDisplayType

public String getDisplayType()
Gets an identifier for the node display type.

Returns:
An identifier for the node field type, if such is assigned to this object, otherwise an empty string.

setValidationType

public void setValidationType(String validationType)
Sets an identifier for a datatype validator that validates the data associated with this node.

Parameters:
validationType - The new validationType value

setDisplayType

public void setDisplayType(String displayType)
Sets an identifier for the node display type.


isEditable

public boolean isEditable()
Gets the editable attribute of the ValueNode object

Returns:
The editable value

getIsEditable

public boolean getIsEditable()
Gets the isEditable attribute of the ValueNode object

Returns:
The editable value

setEditable

public void setEditable(boolean value)
Sets the editable attribute of the ValueNode object

Parameters:
value - The new editable value

isVisible

public boolean isVisible()
Gets the visible attribute of the ValueNode object

Returns:
The visible value

getIsVisible

public boolean getIsVisible()
Gets the isVisible attribute of the ValueNode object

Returns:
The visible value

setVisible

public void setVisible(boolean value)
Sets the visible attribute of the ValueNode object

Parameters:
value - The new visible value

isMultipleBindingsAllowed

public boolean isMultipleBindingsAllowed()
Gets the multipleBindingsAllowed attribute of the ValueNode object

Returns:
The visible value

getIsMultipleBindingsAllowed

public boolean getIsMultipleBindingsAllowed()
Gets the isMultipleBindingsAllowed attribute of the ValueNode object

Returns:
The visible value

setMultipleBindingsAllowed

public void setMultipleBindingsAllowed(boolean value)
Sets the multipleBindingsAllowed attribute of the ValueNode object

Parameters:
value - The new visible value

isFormNode

public boolean isFormNode()
Gets the formNode attribute of the ValueNode object

Returns:
The formNode value

getIsFormNode

public boolean getIsFormNode()
Gets the isFormNode attribute of the Node object

Returns:
The isFormNode value

isLabelNode

public boolean isLabelNode()
Gets the labelNode attribute of the ValueNode object

Returns:
The labelNode value

getIsLabelNode

public boolean getIsLabelNode()
Gets the isLableNode attribute of the Node object

Returns:
The isLableNode value

isTextNode

public boolean isTextNode()
Gets the textNode attribute of the ValueNode object

Returns:
The textNode value

getIsTextNode

public boolean getIsTextNode()
Gets the isTextNode attribute of the Node object

Returns:
The isTextNode value

isPredefinedNode

public boolean isPredefinedNode()
Gets the predefinedNode attribute of the ValueNode object

Returns:
The predefinedNode value

getIsPredefinedNode

public boolean getIsPredefinedNode()
Gets the isPredefinedNode attribute of the Node object

Returns:
The isPredefinedNode value

toString

public String toString()
Gets a string representation of this object

Returns:
a string representing this object

getInfo

protected String getInfo()
Gets a string representation of this objects data

Returns:
a string representation of this objects data

isEdited

public boolean isEdited()
Returns:

setEdited

public void setEdited(boolean edited)
Returns:


Copyright © 2003 SCAM. All Rights Reserved.