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

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
All Implemented Interfaces:
java.lang.Cloneable, AbstractProperty, Base, Extensible, Property, IntentAttachPoint, PolicySetAttachPoint
Direct Known Subclasses:
ComponentPropertyImpl

public class PropertyImpl
extends AbstractPropertyImpl
implements Property, java.lang.Cloneable

Represents a property.


Constructor Summary
protected PropertyImpl()
          Constructs a new property.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of the property.
 java.util.List<PolicySet> getApplicablePolicySets()
          Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint.
 java.util.List<PolicySet> getPolicySets()
          Returns a list of policy sets.
 void setPolicySets(java.util.List<PolicySet> policySets)
           
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.AbstractPropertyImpl
getName, getRequiredIntents, getType, getValue, 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, getValue, 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.IntentAttachPoint
getRequiredIntents, getType, setType
 

Constructor Detail

PropertyImpl

protected PropertyImpl()
Constructs a new 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 java.lang.Object
Returns:
a clone of the property
Throws:
java.lang.CloneNotSupportedException

getPolicySets

public java.util.List<PolicySet> getPolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets. See the Policy Framework specification for a description of this attribute.

Specified by:
getPolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets.

setPolicySets

public void setPolicySets(java.util.List<PolicySet> policySets)

getApplicablePolicySets

public java.util.List<PolicySet> getApplicablePolicySets()
Description copied from interface: PolicySetAttachPoint
Returns a list of policy sets defined in the domain, that are applicable to this PolicySetAttachPoint. An applicable PolicySet is one that include this PolicySetAttachPoint as part of its 'appliesTo' XPath attribute.

Specified by:
getApplicablePolicySets in interface PolicySetAttachPoint
Returns:
a list of policy sets applicable to this PolicySetAttachPoint