Interface PropertySet

    • Method Detail

      • getProperties

        Property[] getProperties()
        Gets all properties currently contained in this set.
        Returns:
        The array of properties, which may be empty.
      • isPropertyDefined

        boolean isPropertyDefined​(String name)
        Tests if the named property is defined in this set. For undefined properties, the method getProperty(name) will always return null.
        Parameters:
        name - The property name or the property's alias name (both case sensitive).
        Returns:
        true if the property is defined.
      • addProperty

        void addProperty​(Property property)
        Adds a property to this set.
        Parameters:
        property - The property.
      • addProperties

        void addProperties​(Property... properties)
        Adds the given properties to this set.
        Parameters:
        properties - The properties to be added.
      • removeProperty

        void removeProperty​(Property property)
        Removes a property from this set.
        Parameters:
        property - The property.
      • removeProperties

        void removeProperties​(Property... properties)
        Removes the given properties from this set.
        Parameters:
        properties - The properties to be removed.
      • getValue

        <T> T getValue​(String name)
                throws ClassCastException
        Gets the value of the named property.
        Parameters:
        name - The property name.
        Returns:
        The property value or null if a property with the given name does not exist.
        Throws:
        ClassCastException - if the value is not of the requested type.
      • getDescriptor

        PropertyDescriptor getDescriptor​(String name)
        Gets the descriptor for the named property.
        Parameters:
        name - The property name (case sensitive).
        Returns:
        The descriptor, or null if the property is unknown.