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 Stringnameprotected Hashtablepropertiesprotected VectorpropertiesVprotected VDBTemplatetemplateprotected TemplatevisualTemplate
-
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 voidaddProperty(Object key, String value)static StringapplyPorts(String value, Map ports)Make port substitutions on a string using port table.static StringapplyProperties(String s, Map properties)Make macro substitutions on a string using properties table.StringgetComment()Returns the comment.ObjectgetDsId()StringgetName()Returns the name.HashtablegetProperties()Returns the properties.VectorgetPropertiesV()Returns the properties.VDBTemplategetTemplate()Returns the template.TemplategetVisualTemplate()voidremoveProperty(Object key)voidsetComment(String comment)Sets the comment.voidsetName(String newName)Insert the method's description here.voidsetProperties(Hashtable properties, Vector propertiesV)Sets the properties.voidsetTemplate(VDBTemplate template)Sets the template.voidsetVisualTemplate(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:
getNamein 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:
getCommentin interfaceCommentable- Returns:
- String
-
setComment
public void setComment(String comment)
Sets the comment.- Specified by:
setCommentin 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:
getDsIdin interfaceCommentable- Returns:
- something
-
-