com.xenonsoft.bridgetown.soa.config
Class PropertyConfig

java.lang.Object
  extended bycom.xenonsoft.bridgetown.soa.config.PropertyConfig
All Implemented Interfaces:
IAnonymousCollectionMutator, IAnonymousMapMutator, IValueReferenceMutator, java.io.Serializable
Direct Known Subclasses:
ParameterConfig

public class PropertyConfig
extends java.lang.Object
implements java.io.Serializable, IAnonymousMapMutator, IAnonymousCollectionMutator, IValueReferenceMutator

Property descriptor configuration for the individual service configuration. A property generally consists of name and value. For the purpose of inverse of control and framework wiring a property describes a name and reference to another bean service.

Version:
$Id: PropertyConfig.java,v 1.4 2005/02/23 01:31:11 peter_pilgrim Exp $
Author:
Peter Pilgrim, Jul 26, 2004 11:50:00 AM
See Also:
Serialized Form

Field Summary
protected  java.lang.String name
           
protected  ValueReferenceConfig valueRef
          the value configuration
 
Constructor Summary
PropertyConfig()
          Default constructor
 
Method Summary
 void addValueReference(ValueReferenceConfig ref)
          Adds a reference to the property configuration.
 java.lang.String getName()
          Gets the name
 java.lang.String getReference()
          Convenience method to retrieve the reference segment of the value-reference configuration
 java.lang.Object getValue()
          Convenience method to retrieve the value segment of the value-reference configuration
 ValueReferenceConfig getValueRef()
          Gets the valueRef configuration
 void setName(java.lang.String name)
          Sets the name
 void setReference(java.lang.String value)
          Convenience method to set the reference segment of the value-reference configuration
 void setValue(java.lang.Object value)
          Convenience method to set the value segment of the value-reference configuration
 void setValueFromCollectionConfig(ICollectionConfig collectionConfig)
          Sets the value of the property from a collection configuration
 void setValueFromMapConfig(MapConfig mapConfig)
          Sets the value of the property from a map configuration
 void setValueRef(ValueReferenceConfig ref)
          Sets the valueRef configuration
 java.lang.String toString()
          Gets debuggable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

valueRef

protected ValueReferenceConfig valueRef
the value configuration

Constructor Detail

PropertyConfig

public PropertyConfig()
Default constructor

Method Detail

getName

public java.lang.String getName()
Gets the name

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Sets the name

Parameters:
name - The name to set.

getValue

public java.lang.Object getValue()
Convenience method to retrieve the value segment of the value-reference configuration

Returns:
the value object

setValue

public void setValue(java.lang.Object value)
Convenience method to set the value segment of the value-reference configuration

Parameters:
value - the new value object

getReference

public java.lang.String getReference()
Convenience method to retrieve the reference segment of the value-reference configuration

Returns:
the value object

setReference

public void setReference(java.lang.String value)
Convenience method to set the reference segment of the value-reference configuration

Parameters:
value - the new value object

getValueRef

public ValueReferenceConfig getValueRef()
Gets the valueRef configuration

Specified by:
getValueRef in interface IValueReferenceMutator
Returns:
Returns the valueRef.

setValueRef

public void setValueRef(ValueReferenceConfig ref)
Sets the valueRef configuration

Specified by:
setValueRef in interface IValueReferenceMutator

addValueReference

public void addValueReference(ValueReferenceConfig ref)
Adds a reference to the property configuration. An alias to setRef, because a property can also be wired by reference to another JavaBean.

Specified by:
addValueReference in interface IValueReferenceMutator

setValueFromCollectionConfig

public void setValueFromCollectionConfig(ICollectionConfig collectionConfig)
Sets the value of the property from a collection configuration

Specified by:
setValueFromCollectionConfig in interface IAnonymousCollectionMutator
Parameters:
collectionConfig - the collection configuration

setValueFromMapConfig

public void setValueFromMapConfig(MapConfig mapConfig)
Sets the value of the property from a map configuration

Specified by:
setValueFromMapConfig in interface IAnonymousMapMutator
Parameters:
mapConfig -

toString

public java.lang.String toString()
Gets debuggable string



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.