mil.dod.th.ose.utils/src/mil/dod/th/ose/utils/ConfigurationUtils.java
public static boolean configPropertiesSet(final Map<String, Object> properties) throws IllegalArgumentException
    {
        if (properties.containsKey(ComponentConstants.COMPONENT_NAME) 
                && properties.containsKey(ComponentConstants.COMPONENT_ID))
        {
            //if there are only two properties then no config properties are also in the map
            if (properties.size() == 2)
            {
                return false;
            }
            //the map contains component properties and additional properties
            return true;
        }
        else
        {
            throw new IllegalArgumentException(
                "Property map is not from a component or the map is otherwise invalid");
        }
    }
/**
     * Utility method for realizing whether a property map contains configuration properties or only default 
     * component properties. This method is intended to check property maps for service components ONLY.
     * @param properties
     *     the property map to check for configuration values
     * @return
     *     true if the property map contains configuration values in addition to default component properties
     * @throws IllegalArgumentException
     *     thrown in the event the map evaluated does not contain the expected component name and id keys
     */
Utility method for realizing whether a property map contains configuration properties or only default
component properties. This method is intended to check property maps for service components ONLY.
@param properties
the property map to check for configuration values
@return
true if the property map contains configuration values in addition to default component properties
@throws IllegalArgumentException
thrown in the event the map evaluated does not contain the expected component name and id keys
Utility method for realizing whether a property map contains configuration properties or only default component properties . This method is intended to check property maps for service components ONLY . @param properties the property map to check for configuration values @return true if the property map contains configuration values in addition to default component properties @throws IllegalArgumentException thrown in the event the map evaluated does not contain the expected component name and id keys
public static boolean configPropertiesSet(final Map<String, Object> properties) throws IllegalArgumentException
    {
        if (properties.containsKey(ComponentConstants.COMPONENT_NAME) 
                && properties.containsKey(ComponentConstants.COMPONENT_ID))
        {
            if (properties.size() == 2)
            {
                return false;
            }
            return true;
        }
        else
        {
            throw new IllegalArgumentException(
                "Property map is not from a component or the map is otherwise invalid");
        }
    }
public static boolean configPropertiesSet ( final Map < String , Object > properties ) throws IllegalArgumentException { if ( properties . containsKey ( ComponentConstants . COMPONENT_NAME ) && properties . containsKey ( ComponentConstants . COMPONENT_ID ) ) { if ( properties . size ( ) == 2 ) { return false ; } return true ; } else { throw new IllegalArgumentException ( "Property map is not from a component or the map is otherwise invalid" ) ; } }
Utility method for realizing whether a property map contains configuration properties or only default
 component properties.
Utility method for realizing whether a property map contains configuration properties or only default component properties .
//if there are only two properties then no config properties are also in the map //the map contains component properties and additional properties