org.tinygroup.weblayer.webcontext.parser.util
类 PropertyValue

java.lang.Object
  继承者 org.springframework.core.AttributeAccessorSupport
      继承者 org.springframework.beans.BeanMetadataAttributeAccessor
          继承者 org.springframework.beans.PropertyValue
              继承者 org.tinygroup.weblayer.webcontext.parser.util.PropertyValue
所有已实现的接口:
Serializable, org.springframework.beans.BeanMetadataElement, org.springframework.core.AttributeAccessor

public class PropertyValue
extends org.springframework.beans.PropertyValue

Object to hold information and value for an individual bean property. Using an object here, rather than just storing all properties in a map keyed by property name, allows for more flexibility, and the ability to handle indexed properties etc in an optimized way.

Note that the value doesn't need to be the final required type: A BeanWrapper implementation should handle any necessary conversion, as this object doesn't know anything about the objects it will be applied to.

从以下版本开始:
13 May 2001
作者:
Rod Johnson, Rob Harrop, Juergen Hoeller
另请参见:
PropertyValues, BeanWrapper, 序列化表格

构造方法摘要
PropertyValue(PropertyValue original)
          Copy constructor.
PropertyValue(PropertyValue original, Object newValue)
          Constructor that exposes a new value for an original value holder.
PropertyValue(String name, Object value)
          Create a new PropertyValue instance.
 
方法摘要
 PropertyValue getOriginalPropertyValue()
          Return the original PropertyValue instance for this value holder.
 
从类 org.springframework.beans.PropertyValue 继承的方法
equals, getConvertedValue, getName, getValue, hashCode, isConverted, setConvertedValue, toString
 
从类 org.springframework.beans.BeanMetadataAttributeAccessor 继承的方法
addMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSource
 
从类 org.springframework.core.AttributeAccessorSupport 继承的方法
attributeNames, copyAttributesFrom, hasAttribute
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

PropertyValue

public PropertyValue(String name,
                     Object value)
Create a new PropertyValue instance.

参数:
name - the name of the property (never null)
value - the value of the property (possibly before type conversion)

PropertyValue

public PropertyValue(PropertyValue original)
Copy constructor.

参数:
original - the PropertyValue to copy (never null)

PropertyValue

public PropertyValue(PropertyValue original,
                     Object newValue)
Constructor that exposes a new value for an original value holder. The original holder will be exposed as source of the new holder.

参数:
original - the PropertyValue to link to (never null)
newValue - the new value to apply
方法详细信息

getOriginalPropertyValue

public PropertyValue getOriginalPropertyValue()
Return the original PropertyValue instance for this value holder.

覆盖:
org.springframework.beans.PropertyValue 中的 getOriginalPropertyValue
返回:
the original PropertyValue (either a source of this value holder or this value holder itself).


Copyright © 2006–2014 开源组织. All rights reserved.