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

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
All Implemented Interfaces:
AbstractProperty, Base, Extensible, IntentAttachPoint
Direct Known Subclasses:
PropertyImpl

public class AbstractPropertyImpl
extends ExtensibleImpl
implements AbstractProperty

Represents an abstract property.


Constructor Summary
protected AbstractPropertyImpl()
          Constructs a new abstract property.
 
Method Summary
 java.lang.String getName()
          Returns the property name.
 java.util.List<Intent> getRequiredIntents()
          Returns a list of policy intents.
 IntentAttachPointType getType()
          Returns the type of the attach point such as a BindingType or an ImplementationType and so on
 java.lang.Object getValue()
          Returns the default value of the property.
 javax.xml.namespace.QName getXSDElement()
          Returns the element defining the data type of this property.
 javax.xml.namespace.QName getXSDType()
          Returns the data type of this property.
 boolean isMany()
          Returns true if the property allows multiple values.
 boolean isMustSupply()
          Returns true if a value must be supplied for the property.
 void setMany(boolean many)
          Sets whether or not the property allows multiple values.
 void setMustSupply(boolean mustSupply)
          Sets whether a value must be supplied for the property.
 void setName(java.lang.String name)
          Sets the property name.
 void setRequiredIntents(java.util.List<Intent> intents)
           
 void setType(IntentAttachPointType type)
          Sets the type of the attach point such as a BindingType or an ImplementationType and so on
 void setValue(java.lang.Object defaultValue)
          Sets the default value of the property.
 void setXSDElement(javax.xml.namespace.QName element)
          Sets the element defining the data type of this property.
 void setXSDType(javax.xml.namespace.QName type)
          Sets the data type of this property.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible
getExtensions
 

Constructor Detail

AbstractPropertyImpl

protected AbstractPropertyImpl()
Constructs a new abstract property.

Method Detail

getRequiredIntents

public java.util.List<Intent> getRequiredIntents()
Description copied from interface: IntentAttachPoint
Returns a list of policy intents. See the Policy Framework specification for a description of this attribute.

Specified by:
getRequiredIntents in interface IntentAttachPoint
Returns:
a list of policy intents.

getValue

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

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

getName

public java.lang.String getName()
Description copied from interface: AbstractProperty
Returns the property name.

Specified by:
getName in interface AbstractProperty
Returns:
the property name

getXSDElement

public javax.xml.namespace.QName getXSDElement()
Description copied from interface: AbstractProperty
Returns the element defining the data type of this property. This is the qualified name of an XML schema element.

Specified by:
getXSDElement in interface AbstractProperty
Returns:
the element defining the type of this property

getXSDType

public javax.xml.namespace.QName getXSDType()
Description copied from interface: AbstractProperty
Returns the data type of this property. This is the qualified name of an XML schema type.

Specified by:
getXSDType in interface AbstractProperty
Returns:
the type of this property

isMany

public boolean isMany()
Description copied from interface: AbstractProperty
Returns true if the property allows multiple values.

Specified by:
isMany in interface AbstractProperty
Returns:
true if the property allows multiple values

isMustSupply

public boolean isMustSupply()
Description copied from interface: AbstractProperty
Returns true if a value must be supplied for the property.

Specified by:
isMustSupply in interface AbstractProperty
Returns:
true is a value must be supplied for the property

setValue

public void setValue(java.lang.Object defaultValue)
Description copied from interface: AbstractProperty
Sets the default value of the property.

Specified by:
setValue in interface AbstractProperty
Parameters:
defaultValue - the default value of this property

setMany

public void setMany(boolean many)
Description copied from interface: AbstractProperty
Sets whether or not the property allows multiple values.

Specified by:
setMany in interface AbstractProperty
Parameters:
many - true if the property should allow multiple values

setMustSupply

public void setMustSupply(boolean mustSupply)
Description copied from interface: AbstractProperty
Sets whether a value must be supplied for the property.

Specified by:
setMustSupply in interface AbstractProperty
Parameters:
mustSupply - set to true to require that a value be supplied for uses of this property

setName

public void setName(java.lang.String name)
Description copied from interface: AbstractProperty
Sets the property name.

Specified by:
setName in interface AbstractProperty
Parameters:
name - the property name

setXSDElement

public void setXSDElement(javax.xml.namespace.QName element)
Description copied from interface: AbstractProperty
Sets the element defining the data type of this property. This is the qualified name of an XML schema element.

Specified by:
setXSDElement in interface AbstractProperty
Parameters:
element - the element defining the type of this property

setXSDType

public void setXSDType(javax.xml.namespace.QName type)
Description copied from interface: AbstractProperty
Sets the data type of this property. This is the qualified name of an XML schema type.

Specified by:
setXSDType in interface AbstractProperty
Parameters:
type - the type of this property

getType

public IntentAttachPointType getType()
Description copied from interface: IntentAttachPoint
Returns the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
getType in interface IntentAttachPoint
Returns:

setType

public void setType(IntentAttachPointType type)
Description copied from interface: IntentAttachPoint
Sets the type of the attach point such as a BindingType or an ImplementationType and so on

Specified by:
setType in interface IntentAttachPoint

setRequiredIntents

public void setRequiredIntents(java.util.List<Intent> intents)