Tuscany Assembly Model

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

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
      extended by org.apache.tuscany.model.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.model.assembly.impl.PropertyImpl
All Implemented Interfaces:
AssemblyObject, Extensible, Property

public class PropertyImpl
extends ExtensibleImpl
implements Property

An implementation of Property.


Constructor Summary
protected PropertyImpl()
           
 
Method Summary
 java.lang.Object getDefaultValue()
          Returns the default value of the property.
 java.lang.String getName()
          Returns the property name.
 java.lang.Class<?> getType()
          Returns the type of this property as used by the runtime.
 boolean isMany()
          Returns true if the property allows multiple values.
 boolean isRequired()
          Returns true if a value must be supplied for the property.
 void setDefaultValue(java.lang.Object value)
          Sets the default value of the property.
 void setMany(boolean value)
          Sets whether or not the property allows multiple values.
 void setName(java.lang.String value)
          Sets the property name.
 void setRequired(boolean value)
          Sets whether a value must be supplied for the property.
 void setType(java.lang.Class<?> value)
          Sets the type of this property as used by the runtime
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.ExtensibleImpl
accept, freeze, getExtensibilityAttributes, getExtensibilityElements, initialize
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
accept, checkInitialized, checkNotFrozen, freeze, initialize, isFrozen, isInitialized
 
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.model.assembly.Extensible
getExtensibilityAttributes, getExtensibilityElements
 
Methods inherited from interface org.apache.tuscany.model.assembly.AssemblyObject
accept, freeze, initialize
 

Constructor Detail

PropertyImpl

protected PropertyImpl()
Method Detail

getDefaultValue

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

Specified by:
getDefaultValue in interface Property
Returns:
the default value of ths property

getName

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

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

getType

public java.lang.Class<?> getType()
Description copied from interface: Property
Returns the type of this property as used by the runtime.

Specified by:
getType in interface Property
Returns:
the type of this property as used by the runtime

isMany

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

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

isRequired

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

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

setDefaultValue

public void setDefaultValue(java.lang.Object value)
Description copied from interface: Property
Sets the default value of the property.

Specified by:
setDefaultValue in interface Property
Parameters:
value - the default value of ths property

setMany

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

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

setName

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

Specified by:
setName in interface Property
Parameters:
value - the property name

setRequired

public void setRequired(boolean value)
Description copied from interface: Property
Sets whether a value must be supplied for the property. For ease of use, it is recommended that a meaningful default value should be supplied for all properties; users should only be required to specify a value if there is no reasonable default.

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

setType

public void setType(java.lang.Class<?> value)
Description copied from interface: Property
Sets the type of this property as used by the runtime

Specified by:
setType in interface Property
Parameters:
value - the type of this property as used by the runtime

Tuscany Assembly Model

-