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

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

public class CcaPortParameterDefaultValue
extends java.lang.Object

Cca components contain ports. Some of the ports contain data fields. This class holds the name and the default value of one data field. The "default" value is the that value that is displayed on the screen when the parameter is initially displayed on the screen.


Field Summary
 java.lang.String componentInstanceName
           
 java.lang.String dataFieldDefaultValue
           
 java.lang.String dataFieldName
           
 java.lang.String portInstanceName
           
 
Constructor Summary
CcaPortParameterDefaultValue(java.lang.String xml)
          Parse the xml contents of a current port 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

dataFieldDefaultValue

public java.lang.String dataFieldDefaultValue
Constructor Detail

CcaPortParameterDefaultValue

public CcaPortParameterDefaultValue(java.lang.String xml)
Parse the xml contents of a current port parameter. The parsed values are copied into the class's attributes.

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

Parameters:
xmlComponent - The xml code of one component.