Tuscany Assembly Model

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

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
      extended by org.apache.tuscany.model.assembly.impl.ConfiguredPropertyImpl
All Implemented Interfaces:
AssemblyObject, ConfiguredProperty

public class ConfiguredPropertyImpl
extends AssemblyObjectImpl
implements ConfiguredProperty

Implementation of ConfiguredProperty


Constructor Summary
protected ConfiguredPropertyImpl()
           
 
Method Summary
 boolean accept(AssemblyVisitor visitor)
          Accept a visitor
 void freeze()
          Freeze this model object preventing any additional changes.
 String getName()
          Returns the name of the property being configured.
 OverrideOption getOverrideOption()
          Returns the override option that determines if any configuration for this property that is contained in this composite can be overridden by configuration supplied from outside.
 Property getProperty()
          Returns the Property whose value is being set.
 Object getValue()
          Returns the value being set for this usage of the Property.
 void initialize(AssemblyContext modelContext)
          Initialize this model object.
 void setName(String name)
          Set the name of the property being configured.
 void setOverrideOption(OverrideOption value)
          Set the override option that determines if any configuration for this property that is contained in this composite can be overridden by configuration supplied from outside.
 void setProperty(Property property)
          Sets the Property whose value is being set.
 void setValue(Object value)
          Sets the value being set for this usage of the Property.
 
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
 

Constructor Detail

ConfiguredPropertyImpl

protected ConfiguredPropertyImpl()
Method Detail

getName

public String getName()
Description copied from interface: ConfiguredProperty
Returns the name of the property being configured.

Specified by:
getName in interface ConfiguredProperty
Returns:
the name of the property being configured

setName

public void setName(String name)
Description copied from interface: ConfiguredProperty
Set the name of the property being configured.

Specified by:
setName in interface ConfiguredProperty
Parameters:
name - the name of the property being configured

getProperty

public Property getProperty()
Description copied from interface: ConfiguredProperty
Returns the Property whose value is being set.

Specified by:
getProperty in interface ConfiguredProperty
Returns:
the Property whose value is being set

setProperty

public void setProperty(Property property)
Description copied from interface: ConfiguredProperty
Sets the Property whose value is being set.

Specified by:
setProperty in interface ConfiguredProperty
Parameters:
property - the Property whose value is being set

getValue

public Object getValue()
Description copied from interface: ConfiguredProperty
Returns the value being set for this usage of the Property.

Specified by:
getValue in interface ConfiguredProperty
Returns:
the value being set for this usage of the Property

setValue

public void setValue(Object value)
Description copied from interface: ConfiguredProperty
Sets the value being set for this usage of the Property.

Specified by:
setValue in interface ConfiguredProperty
Parameters:
value - the value being set for this usage of the Property

getOverrideOption

public OverrideOption getOverrideOption()
Description copied from interface: ConfiguredProperty
Returns the override option that determines if any configuration for this property that is contained in this composite can be overridden by configuration supplied from outside.

Specified by:
getOverrideOption in interface ConfiguredProperty

setOverrideOption

public void setOverrideOption(OverrideOption value)
Description copied from interface: ConfiguredProperty
Set the override option that determines if any configuration for this property that is contained in this composite can be overridden by configuration supplied from outside.

Specified by:
setOverrideOption in interface ConfiguredProperty
Parameters:
value - the option that determines how property configuration can be overriden

initialize

public void initialize(AssemblyContext modelContext)
Description copied from interface: AssemblyObject
Initialize this model object.

Specified by:
initialize in interface AssemblyObject
Overrides:
initialize in class AssemblyObjectImpl
Parameters:
modelContext - context providing access to the environment in which this model is being used

freeze

public void freeze()
Description copied from interface: AssemblyObject
Freeze this model object preventing any additional changes.

Specified by:
freeze in interface AssemblyObject
Overrides:
freeze in class AssemblyObjectImpl

accept

public boolean accept(AssemblyVisitor visitor)
Description copied from interface: AssemblyObject
Accept a visitor

Specified by:
accept in interface AssemblyObject
Overrides:
accept in class AssemblyObjectImpl
Parameters:
visitor - a visitor that is visiting the model
Returns:
true if processing is complete and the visitor should stop traversing the model

Tuscany Assembly Model

-