Class ConfigProperty

  • All Implemented Interfaces:
    Serializable

    public final class ConfigProperty
    extends Object
    implements Serializable

    A configuration property with a name, type, and value.

    This class differs from the SLEE-defined ConfigProperties.Property class in that the configuration property’s value in this class is represented as a string rather than required to be of the specified type. This allows the passing of variable references in property values which may be resolved at some later time.

    Since:
    Rhino 2.5.0
    See Also:
    Serialized Form
    • Constructor Detail

      • ConfigProperty

        public ConfigProperty​(String name,
                              String type,
                              String value)

        Create a new configuration property with a name, type, and value.

        Parameters:
        name - the configuration property’s name.
        type - the configuration property’s Java type.
        value - the configuration property’s value.
    • Method Detail

      • getName

        public String getName()

        Get the configuration property’s name.

        Returns:
        the name.
      • getType

        public String getType()

        Get the configuration property’s Java type.

        Returns:
        the type.
      • getValue

        public String getValue()

        Get the configuration property’s value.

        Returns:
        the value.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object