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

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

public class CcaPortParameterValue
extends java.lang.Object

Cca components contain ports. Some of the ports contain data fields. This class holds the name and the value of one data field.


Field Summary
 java.lang.String componentInstanceName
           
 java.lang.String dataFieldName
           
 java.lang.String dataFieldValue
           
 java.lang.String portInstanceName
           
 
Constructor Summary
CcaPortParameterValue(java.lang.String xml)
          Parse the xml contents of a port parameter.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

componentInstanceName

public java.lang.String componentInstanceName

portInstanceName

public java.lang.String portInstanceName

dataFieldName

public java.lang.String dataFieldName

dataFieldValue

public java.lang.String dataFieldValue
Constructor Detail

CcaPortParameterValue

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

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

Parameters:
xmlComponent - The xml code of one component.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object