gov.sandia.ccaffeine.dc.user_iface.MVC
Class CcaPortParameterPrompt

java.lang.Object
  extended by gov.sandia.ccaffeine.dc.user_iface.MVC.CcaPortParameterPrompt

public class CcaPortParameterPrompt
extends java.lang.Object

Cca components contain ports. Some of the ports contain data fields. A view might display the value of a data field inside a textbox. The view might also display a prompt to the left of the textbox. This class contains the contents of such a prompt.


Field Summary
 java.lang.String componentInstanceName
           
 java.lang.String dataFieldName
           
 java.lang.String dataFieldPrompt
           
 java.lang.String portInstanceName
           
 
Constructor Summary
CcaPortParameterPrompt(java.lang.String xml)
          Parse the xml contents of the contents of a prompt that is associated with a field parameter.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentInstanceName

public java.lang.String componentInstanceName

portInstanceName

public java.lang.String portInstanceName

dataFieldName

public java.lang.String dataFieldName

dataFieldPrompt

public java.lang.String dataFieldPrompt
Constructor Detail

CcaPortParameterPrompt

public CcaPortParameterPrompt(java.lang.String xml)
Parse the xml contents of the contents of a prompt that is associated with a field parameter. The parsed values are copied into the class's attributes.

The XML code will contains something like this:
<paramPrompt>
 <componentInstanceName>
   name1
   </componentInstanceName>
 <portInstanceName>name2</portInstanceName>
 <dataFieldName>name3</dataFieldName>
 <dataFieldPrompt>value1</dataFieldPrompt>
<paramPrompt>

Parameters:
xmlComponent - The xml code of one component.