Package com.cosylab.vdct.vdb
Class VDBTemplateInstance
- java.lang.Object
-
- com.cosylab.vdct.vdb.VDBTemplateInstance
-
- All Implemented Interfaces:
Commentable
public class VDBTemplateInstance extends Object implements Commentable
- Author:
- Matej
-
-
Field Summary
Fields Modifier and Type Field Description protected String
name
protected Hashtable
properties
protected Vector
propertiesV
protected VDBTemplate
template
protected Template
visualTemplate
-
Constructor Summary
Constructors Constructor Description VDBTemplateInstance(String name, VDBTemplate template)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(Object key, String value)
static String
applyPorts(String value, Map ports)
Make port substitutions on a string using port table.static String
applyProperties(String s, Map properties)
Make macro substitutions on a string using properties table.String
getComment()
Returns the comment.Object
getDsId()
String
getName()
Returns the name.Hashtable
getProperties()
Returns the properties.Vector
getPropertiesV()
Returns the properties.VDBTemplate
getTemplate()
Returns the template.Template
getVisualTemplate()
void
removeProperty(Object key)
void
setComment(String comment)
Sets the comment.void
setName(String newName)
Insert the method's description here.void
setProperties(Hashtable properties, Vector propertiesV)
Sets the properties.void
setTemplate(VDBTemplate template)
Sets the template.void
setVisualTemplate(Template visualTemplate)
-
-
-
Field Detail
-
name
protected String name
-
template
protected VDBTemplate template
-
visualTemplate
protected Template visualTemplate
-
propertiesV
protected Vector propertiesV
-
properties
protected Hashtable properties
-
-
Constructor Detail
-
VDBTemplateInstance
public VDBTemplateInstance(String name, VDBTemplate template)
Constructor.- Parameters:
name
- nametemplate
- template
-
-
Method Detail
-
getProperties
public Hashtable getProperties()
Returns the properties.- Returns:
- Hashtable
-
getPropertiesV
public Vector getPropertiesV()
Returns the properties.- Returns:
- Vector
-
removeProperty
public void removeProperty(Object key)
- Parameters:
key
- key
-
getTemplate
public VDBTemplate getTemplate()
Returns the template.- Returns:
- VDBTemplate
-
setProperties
public void setProperties(Hashtable properties, Vector propertiesV)
Sets the properties.- Parameters:
properties
- The properties to setpropertiesV
- propertiesV
-
applyProperties
public static String applyProperties(String s, Map properties)
Make macro substitutions on a string using properties table.- Parameters:
s
- The string to be appliedproperties
- The properties to use- Returns:
- String
-
applyPorts
public static String applyPorts(String value, Map ports)
Make port substitutions on a string using port table.- Parameters:
value
- The string to be appliedports
- The ports to use- Returns:
- String
-
getName
public String getName()
Returns the name.- Specified by:
getName
in interfaceCommentable
- Returns:
- String
-
setName
public void setName(String newName)
Insert the method's description here. Creation date: (9.12.2000 18:13:17)- Parameters:
newName
- java.lang.String
-
getComment
public String getComment()
Returns the comment.- Specified by:
getComment
in interfaceCommentable
- Returns:
- String
-
setComment
public void setComment(String comment)
Sets the comment.- Specified by:
setComment
in interfaceCommentable
- 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()
- Returns:
- something
-
setVisualTemplate
public void setVisualTemplate(Template visualTemplate)
- Parameters:
visualTemplate
- visualTemplate
-
getDsId
public Object getDsId()
- Specified by:
getDsId
in interfaceCommentable
- Returns:
- something
-
-