org.apache.tuscany.sca.assembly.impl
Class ComponentPropertyImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.BaseImpl
      extended by org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.sca.assembly.impl.AbstractPropertyImpl
              extended by org.apache.tuscany.sca.assembly.impl.PropertyImpl
                  extended by org.apache.tuscany.sca.assembly.impl.ComponentPropertyImpl
All Implemented Interfaces:
java.lang.Cloneable, AbstractProperty, Base, ComponentProperty, Extensible, Property, IntentAttachPoint, PolicySetAttachPoint

public class ComponentPropertyImpl
extends PropertyImpl
implements ComponentProperty, java.lang.Cloneable

Represents a component property.


Constructor Summary
protected ComponentPropertyImpl()
          Constructs a new component property.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of the property.
 java.lang.String getFile()
          Returns a URI to a file containing the property value.
 Property getProperty()
          Returns the property defined by the component implementation.
 java.lang.String getSource()
          Returns an XPath expression referencing a property of the enclosing composite.
 javax.xml.xpath.XPathExpression getSourceXPathExpression()
          Get the XPath expression for the source attribute
 java.lang.Object getValue()
          Returns the default value of the property.
 void setFile(java.lang.String file)
          Sets a URI to a file containing the property value.
 void setProperty(Property property)
          Sets the property defined by this component implementation.
 void setSource(java.lang.String source)
          Sets an XPath expression referencing a property of the enclosing composite.
 void setSourceXPathExpression(javax.xml.xpath.XPathExpression sourceXPathExpression)
          Set the XPath expression for the source attribute
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.PropertyImpl
getApplicablePolicySets, getPolicySets, setPolicySets
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.AbstractPropertyImpl
getName, getRequiredIntents, getType, getXSDElement, getXSDType, isMany, isMustSupply, setMany, setMustSupply, setName, setRequiredIntents, setType, setValue, setXSDElement, setXSDType
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
getExtensions
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl
isUnresolved, setUnresolved
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.assembly.AbstractProperty
getName, getXSDElement, getXSDType, isMany, isMustSupply, setMany, setMustSupply, setName, setValue, setXSDElement, setXSDType
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible
getExtensions
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getApplicablePolicySets, getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents, getType, setType
 

Constructor Detail

ComponentPropertyImpl

protected ComponentPropertyImpl()
Constructs a new component property.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Property
Returns a clone of the property.

Specified by:
clone in interface Property
Overrides:
clone in class PropertyImpl
Returns:
a clone of the property
Throws:
java.lang.CloneNotSupportedException

getValue

public java.lang.Object getValue()
Description copied from interface: AbstractProperty
Returns the default value of the property.

Specified by:
getValue in interface AbstractProperty
Overrides:
getValue in class AbstractPropertyImpl
Returns:
the default value of this property

getFile

public java.lang.String getFile()
Description copied from interface: ComponentProperty
Returns a URI to a file containing the property value.

Specified by:
getFile in interface ComponentProperty
Returns:
a URI to a file containing the property value

getProperty

public Property getProperty()
Description copied from interface: ComponentProperty
Returns the property defined by the component implementation.

Specified by:
getProperty in interface ComponentProperty
Returns:
the property defined by the component implementation

getSource

public java.lang.String getSource()
Description copied from interface: ComponentProperty
Returns an XPath expression referencing a property of the enclosing composite.

Specified by:
getSource in interface ComponentProperty
Returns:
an XPath expression referencing a property of the enclosing composite

setFile

public void setFile(java.lang.String file)
Description copied from interface: ComponentProperty
Sets a URI to a file containing the property value.

Specified by:
setFile in interface ComponentProperty
Parameters:
file - a URI to a file containing the property value

setProperty

public void setProperty(Property property)
Description copied from interface: ComponentProperty
Sets the property defined by this component implementation.

Specified by:
setProperty in interface ComponentProperty
Parameters:
property - the property defined by this component implementation

setSource

public void setSource(java.lang.String source)
Description copied from interface: ComponentProperty
Sets an XPath expression referencing a property of the enclosing composite.

Specified by:
setSource in interface ComponentProperty
Parameters:
source - an XPath expression referencing a property of the enclosing composite

getSourceXPathExpression

public javax.xml.xpath.XPathExpression getSourceXPathExpression()
Description copied from interface: ComponentProperty
Get the XPath expression for the source attribute

Specified by:
getSourceXPathExpression in interface ComponentProperty
Returns:
the XPath expression for the source attribute

setSourceXPathExpression

public void setSourceXPathExpression(javax.xml.xpath.XPathExpression sourceXPathExpression)
Description copied from interface: ComponentProperty
Set the XPath expression for the source attribute

Specified by:
setSourceXPathExpression in interface ComponentProperty
Parameters:
sourceXPathExpression - the XPath expression for the source attribute