Class DefaultProperty

java.lang.Object
org.apache.xbean.spring.context.impl.DefaultProperty

public class DefaultProperty extends Object
DefaultProperty contains the default value assigned to a property with a specific name and type.
Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom
  • Constructor Details

    • DefaultProperty

      public DefaultProperty()
      Creates a new empty default property. This instance is unusable until the name, type and values are assigned.
    • DefaultProperty

      public DefaultProperty(String name, Class type, Object value)
      Creates new default property value for a property with the specified name and type.
      Parameters:
      name - the name of the property
      type - the type of the property
      value - the default value
  • Method Details

    • getName

      public String getName()
      Gets the property name.
      Returns:
      the property name
    • setName

      public void setName(String name)
      Sets the property name.
      Parameters:
      name - the property name
    • getType

      public Class getType()
      Gets the property type.
      Returns:
      the property type
    • setType

      public void setType(Class type)
      Sets the property type.
      Parameters:
      type - the property type
    • getValue

      public Object getValue()
      Gets the default value.
      Returns:
      the default value
    • setValue

      public void setValue(Object value)
      Sets the default value.
      Parameters:
      value - the default value
    • toString

      public String toString()
      Overrides:
      toString in class Object