Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.model
Class PropertyValue<T>

java.lang.Object
  extended by org.apache.tuscany.spi.model.ModelObject
      extended by org.apache.tuscany.spi.model.PropertyValue<T>

public class PropertyValue<T>
extends ModelObject

Represents a configured component property

Version:
$Rev: 452761 $ $Date: 2006-10-03 23:33:20 -0700 (Tue, 03 Oct 2006) $

Constructor Summary
PropertyValue()
           
PropertyValue(String name, Document value)
           
PropertyValue(String name, ObjectFactory<T> valueFactory)
           
PropertyValue(String name, String source, String file)
          Constructor specifying the name of a property and the XPath source expression.
 
Method Summary
 String getFile()
           
 String getName()
          Returns the name of the property that this value is for.
 String getSource()
          Returns an XPath expression that should be evaluated to get the actual property value.
 Document getValue()
           
 ObjectFactory<T> getValueFactory()
           
 void setFile(String file)
           
 void setName(String name)
          Sets the name of the property that this value is for.
 void setSource(String source)
          Sets an XPath expression that should be evaluated to get the actual property value.
 void setValue(Document value)
           
 void setValueFactory(ObjectFactory<T> valueFactory)
           
 
Methods inherited from class org.apache.tuscany.spi.model.ModelObject
getExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyValue

public PropertyValue()

PropertyValue

public PropertyValue(String name,
                     String source,
                     String file)
Constructor specifying the name of a property and the XPath source expression.

Parameters:
name - the name of the property which this value is for
source - an XPath expression whose result will be the actual value
file - A URI that the property value can be loaded from

PropertyValue

public PropertyValue(String name,
                     Document value)
Parameters:
name -
value -

PropertyValue

public PropertyValue(String name,
                     ObjectFactory<T> valueFactory)
Method Detail

getName

public String getName()
Returns the name of the property that this value is for.

Returns:
the name of the property that this value is for

setName

public void setName(String name)
Sets the name of the property that this value is for.

Parameters:
name - the name of the property that this value is for

getSource

public String getSource()
Returns an XPath expression that should be evaluated to get the actual property value.

Returns:
an XPath expression that should be evaluated to get the actual property value

setSource

public void setSource(String source)
Sets an XPath expression that should be evaluated to get the actual property value.

Parameters:
source - an XPath expression that should be evaluated to get the actual property value

getValueFactory

public ObjectFactory<T> getValueFactory()

setValueFactory

public void setValueFactory(ObjectFactory<T> valueFactory)

getValue

public Document getValue()

setValue

public void setValue(Document value)

getFile

public String getFile()
Returns:
the file

setFile

public void setFile(String file)
Parameters:
file - the file to set

Apache Tuscany SCA Kernel Sub-Project

-