com.taursys.tools
Class ValueHolderInfo

java.lang.Object
  extended bycom.taursys.tools.ValueHolderInfo

public class ValueHolderInfo
extends java.lang.Object

ValueHolderInfo - Information about a ValueHolder for a new class

Version:
1.0
Author:
Marty Phelan

Constructor Summary
ValueHolderInfo()
          Constructs a new ValueHolderInfo with all properties null.
ValueHolderInfo(java.lang.String holderType, java.lang.String containedClassName, java.lang.String holderName, java.lang.String holderAlias)
          Constructs a new ValueHolderInfo with the given property values.
 
Method Summary
 java.lang.String getContainedClassName()
          Get the class name of the object contained by the holder.
 java.lang.String getHolderAlias()
          Get the alias used in html/xml document ID's for auto-binding to the holder.
 java.lang.String getHolderName()
          Get the holder's instance variable name within the code.
 java.lang.String getHolderType()
          Get fully qualified class name for type of holder
 java.lang.String getInstanceVarDeclSourceCode()
          Get the instance variable declaration source code.
 java.util.Vector getJbInitSourceCode()
          Get a vector of the source code lines to be placed in jbInit method for this holder.
 void setContainedClassName(java.lang.String newContainedClassName)
          Set the class name of the object contained by the holder.
 void setHolderAlias(java.lang.String newHolderAlias)
          Set the alias used in html/xml document ID's for auto-binding to the holder.
 void setHolderName(java.lang.String newHolderName)
          Set the holder's instance variable name within the code.
 void setHolderType(java.lang.String holderType)
          Set fully qualified class name for type of holder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueHolderInfo

public ValueHolderInfo()
Constructs a new ValueHolderInfo with all properties null.


ValueHolderInfo

public ValueHolderInfo(java.lang.String holderType,
                       java.lang.String containedClassName,
                       java.lang.String holderName,
                       java.lang.String holderAlias)
Constructs a new ValueHolderInfo with the given property values.

Parameters:
holderType - fully qualified class name for type of holder
Method Detail

getInstanceVarDeclSourceCode

public java.lang.String getInstanceVarDeclSourceCode()
Get the instance variable declaration source code. Given current property values of this object: holderType="com.taursys.model.VOValueHolder", containedClassName= "com.taursys.examples.simpleweb.Person", holderName="personHolder", and holderAlias="PERSON", the following value would be returned:
 private com.taursys.model.VOValueHolder personHolder =
 new com.taursys.model.VOValueHolder()
 


getJbInitSourceCode

public java.util.Vector getJbInitSourceCode()
Get a vector of the source code lines to be placed in jbInit method for this holder.


getHolderType

public java.lang.String getHolderType()
Get fully qualified class name for type of holder

Returns:
fully qualified class name for type of holder

setHolderType

public void setHolderType(java.lang.String holderType)
Set fully qualified class name for type of holder

Parameters:
holderType - fully qualified class name for type of holder

setContainedClassName

public void setContainedClassName(java.lang.String newContainedClassName)
Set the class name of the object contained by the holder.

Parameters:
newContainedClassName - the class name of the object contained by the holder.

getContainedClassName

public java.lang.String getContainedClassName()
Get the class name of the object contained by the holder.

Returns:
the class name of the object contained by the holder.

setHolderName

public void setHolderName(java.lang.String newHolderName)
Set the holder's instance variable name within the code.

Parameters:
newHolderName - the holder's instance variable name within the code.

getHolderName

public java.lang.String getHolderName()
Get the holder's instance variable name within the code.

Returns:
the holder's instance variable name within the code.

setHolderAlias

public void setHolderAlias(java.lang.String newHolderAlias)
Set the alias used in html/xml document ID's for auto-binding to the holder.

Parameters:
newHolderAlias - the alias used in html/xml document ID's for auto-binding to the holder.

getHolderAlias

public java.lang.String getHolderAlias()
Get the alias used in html/xml document ID's for auto-binding to the holder.

Returns:
the alias used in html/xml document ID's for auto-binding to the holder.


Copyright © 2007 Martin T Phelan. All Rights Reserved.