Exemplo n.º 1
0
        public void TestToString()
        {
            PropertyValue one = new PropertyValue("Age", 12);

            Assert.AreEqual("PropertyValue: name='Age'; value=[12].", one.ToString());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Modify a <see cref="Oragon.Spring.Objects.PropertyValue"/> object held in this object. Indexed from 0.
 /// </summary>
 public void SetPropertyValueAt(PropertyValue pv, int i)
 {
     propertyValuesList [i] = pv;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets a property value.
 /// </summary>
 /// <remarks>
 /// <p>
 /// <b>This is the preferred way to update an individual property.</b>
 /// </p>
 /// </remarks>
 /// <param name="pv">
 /// The object containing new property value.
 /// </param>
 public virtual void SetPropertyValue(PropertyValue pv)
 {
     SetPropertyValue(pv.Expression, pv.Value);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Remove the given <see cref="Oragon.Spring.Objects.PropertyValue"/>, if contained.
 /// </summary>
 /// <param name="pv">
 /// The <see cref="Oragon.Spring.Objects.PropertyValue"/> to remove.
 /// </param>
 public void Remove(PropertyValue pv)
 {
     propertyValuesList.Remove(pv);
 }