Class DefaultProperty
- java.lang.Object
-
- org.apache.xbean.spring.context.impl.DefaultProperty
-
public class DefaultProperty extends java.lang.ObjectDefaultProperty contains the default value assigned to a property with a specific name and type.- Since:
- 2.0
- Version:
- $Id$
- Author:
- Dain Sundstrom
-
-
Constructor Summary
Constructors Constructor Description DefaultProperty()Creates a new empty default property.DefaultProperty(java.lang.String name, java.lang.Class type, java.lang.Object value)Creates new default property value for a property with the specified name and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Gets the property name.java.lang.ClassgetType()Gets the property type.java.lang.ObjectgetValue()Gets the default value.voidsetName(java.lang.String name)Sets the property name.voidsetType(java.lang.Class type)Sets the property type.voidsetValue(java.lang.Object value)Sets the default value.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultProperty
public DefaultProperty()
Creates a new empty default property. This instance is unusable until the name, type and values are assigned.
-
DefaultProperty
public DefaultProperty(java.lang.String name, java.lang.Class type, java.lang.Object value)Creates new default property value for a property with the specified name and type.- Parameters:
name- the name of the propertytype- the type of the propertyvalue- the default value
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the property name.- Returns:
- the property name
-
setName
public void setName(java.lang.String name)
Sets the property name.- Parameters:
name- the property name
-
getType
public java.lang.Class getType()
Gets the property type.- Returns:
- the property type
-
setType
public void setType(java.lang.Class type)
Sets the property type.- Parameters:
type- the property type
-
getValue
public java.lang.Object getValue()
Gets the default value.- Returns:
- the default value
-
setValue
public void setValue(java.lang.Object value)
Sets the default value.- Parameters:
value- the default value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-