com.cosylab.vdct.vdb
Class VDBTemplateInstance

java.lang.Object
  extended by com.cosylab.vdct.vdb.VDBTemplateInstance
All Implemented Interfaces:
Commentable

public class VDBTemplateInstance
extends java.lang.Object
implements Commentable

Author:
Matej

Field Summary
protected  java.lang.String name
           
protected  java.util.Hashtable properties
           
protected  java.util.Vector propertiesV
           
protected  VDBTemplate template
           
protected  Template visualTemplate
           
 
Constructor Summary
VDBTemplateInstance(java.lang.String name, VDBTemplate template)
          Constructor.
 
Method Summary
 void addProperty(java.lang.Object key, java.lang.String value)
           
static java.lang.String applyPorts(java.lang.String value, java.util.Map ports)
          Make port substitutions on a string using port table.
static java.lang.String applyProperties(java.lang.String s, java.util.Map properties)
          Make macro substitutions on a string using properties table.
 java.lang.String getComment()
          Returns the comment.
 java.lang.Object getDsId()
           
 java.lang.String getName()
          Returns the name.
 java.util.Hashtable getProperties()
          Returns the properties.
 java.util.Vector getPropertiesV()
          Returns the properties.
 VDBTemplate getTemplate()
          Returns the template.
 Template getVisualTemplate()
           
 void removeProperty(java.lang.Object key)
           
 void setComment(java.lang.String comment)
          Sets the comment.
 void setName(java.lang.String newName)
          Insert the method's description here.
 void setProperties(java.util.Hashtable properties, java.util.Vector propertiesV)
          Sets the properties.
 void setTemplate(VDBTemplate template)
          Sets the template.
 void setVisualTemplate(Template visualTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

template

protected VDBTemplate template

visualTemplate

protected Template visualTemplate

propertiesV

protected java.util.Vector propertiesV

properties

protected java.util.Hashtable properties
Constructor Detail

VDBTemplateInstance

public VDBTemplateInstance(java.lang.String name,
                           VDBTemplate template)
Constructor.

Method Detail

getProperties

public java.util.Hashtable getProperties()
Returns the properties.

Returns:
Hashtable

getPropertiesV

public java.util.Vector getPropertiesV()
Returns the properties.

Returns:
Vector

addProperty

public void addProperty(java.lang.Object key,
                        java.lang.String value)

removeProperty

public void removeProperty(java.lang.Object key)

getTemplate

public VDBTemplate getTemplate()
Returns the template.

Returns:
VDBTemplate

setProperties

public void setProperties(java.util.Hashtable properties,
                          java.util.Vector propertiesV)
Sets the properties.

Parameters:
properties - The properties to set

applyProperties

public static java.lang.String applyProperties(java.lang.String s,
                                               java.util.Map properties)
Make macro substitutions on a string using properties table.

Parameters:
s - The string to be applied
properties - The properties to use
Returns:
String

applyPorts

public static java.lang.String applyPorts(java.lang.String value,
                                          java.util.Map ports)
Make port substitutions on a string using port table.

Parameters:
s - The string to be applied
ports - The ports to use
Returns:
String

getName

public java.lang.String getName()
Returns the name.

Specified by:
getName in interface Commentable
Returns:
String

setName

public void setName(java.lang.String newName)
Insert the method's description here. Creation date: (9.12.2000 18:13:17)

Parameters:
newName - java.lang.String

getComment

public java.lang.String getComment()
Returns the comment.

Specified by:
getComment in interface Commentable
Returns:
String

setComment

public void setComment(java.lang.String comment)
Sets the comment.

Specified by:
setComment in interface Commentable
Parameters:
comment - The comment to set

setTemplate

public void setTemplate(VDBTemplate template)
Sets the template.

Parameters:
template - The template to set

getVisualTemplate

public Template getVisualTemplate()

setVisualTemplate

public void setVisualTemplate(Template visualTemplate)

getDsId

public java.lang.Object getDsId()
Specified by:
getDsId in interface Commentable