Class PropertyType

java.lang.Object
org.oddjob.values.types.PropertyType
All Implemented Interfaces:
Serializable, org.apache.commons.beanutils.DynaBean

public class PropertyType extends Object implements org.apache.commons.beanutils.DynaBean, Serializable
See Also:

Description

This is an internal type used to allow nested properties in a PropertiesJob.
  • Constructor Details

    • PropertyType

      public PropertyType()
      Only public constructor. Used to create the root of a property hierarchy.
  • Method Details

    • toProperties

      public Properties toProperties()
      Converts this PropertyType into Properties.
      Returns:
    • size

      public int size()
      Get the size, which is the number of children, for this property.
      Returns:
      The number of children.
    • contains

      public boolean contains(String name, String key)
      Specified by:
      contains in interface org.apache.commons.beanutils.DynaBean
    • get

      public Object get(String name)
      Specified by:
      get in interface org.apache.commons.beanutils.DynaBean
    • get

      public Object get(String name, int index)
      Specified by:
      get in interface org.apache.commons.beanutils.DynaBean
    • get

      public Object get(String name, String key)
      Specified by:
      get in interface org.apache.commons.beanutils.DynaBean
    • getDynaClass

      public org.apache.commons.beanutils.DynaClass getDynaClass()
      Specified by:
      getDynaClass in interface org.apache.commons.beanutils.DynaBean
    • remove

      public void remove(String name, String key)
      Specified by:
      remove in interface org.apache.commons.beanutils.DynaBean
    • set

      public void set(String name, int index, Object value)
      Specified by:
      set in interface org.apache.commons.beanutils.DynaBean
    • set

      public void set(String name, Object value)
      Specified by:
      set in interface org.apache.commons.beanutils.DynaBean
    • set

      public void set(String name, String key, Object value)
      Specified by:
      set in interface org.apache.commons.beanutils.DynaBean
    • toString

      public String toString()
      Override toString().
      Overrides:
      toString in class Object
      Returns:
      a String or null if the resolved value is null.