mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/api/FactoryRegistry.java
public DependencyState isSatisfied(final UUID uuid, final Dictionary<String, Object> properties)
    {
        for (RegistryDependency dep : m_Dependencies)
        {
            final String objectName = (String)properties.get(dep.getObjectNameProperty());
            if (Strings.isNullOrEmpty(objectName))
            {
                if (dep.isRequired()) // no prop value is only problem if dep is required
                {
                    m_Logging.debug("[%s] property is required and not set so ignoring dependency for [%s] {%s}.", 
                        dep.getObjectNameProperty(), m_BaseType, uuid);
                    return DependencyState.INVALID;
                }
            }
            else
            {
                final Object object = dep.findDependency(objectName);
                if (object == null)
                {
                    m_Logging.info("Missing dependency [%s] for %s", objectName, m_BaseType);
                    return DependencyState.UNSATISFIED;
                }
            }
        }
        // if we get here all deps have been check and are available
        return DependencyState.SATISFIED;
    }
/**
     * Check if all dependencies are satisfied for a given property set.
     * 
     * @param uuid
     *      UUID of the object to check its dependencies
     * @param properties
     *      properties for the object containing all standard properties
     * @return
     *      <code>true</code> if dependencies are satisfied, otherwise <code>false</code>
     */
Check if all dependencies are satisfied for a given property set.

@param uuid
UUID of the object to check its dependencies
@param properties
properties for the object containing all standard properties
@return
true if dependencies are satisfied, otherwise false
Check if all dependencies are satisfied for a given property set . @param uuid UUID of the object to check its dependencies @param properties properties for the object containing all standard properties @return true if dependencies are satisfied otherwise false
public DependencyState isSatisfied(final UUID uuid, final Dictionary<String, Object> properties)
    {
        for (RegistryDependency dep : m_Dependencies)
        {
            final String objectName = (String)properties.get(dep.getObjectNameProperty());
            if (Strings.isNullOrEmpty(objectName))
            {
                if (dep.isRequired()) 
                {
                    m_Logging.debug("[%s] property is required and not set so ignoring dependency for [%s] {%s}.", 
                        dep.getObjectNameProperty(), m_BaseType, uuid);
                    return DependencyState.INVALID;
                }
            }
            else
            {
                final Object object = dep.findDependency(objectName);
                if (object == null)
                {
                    m_Logging.info("Missing dependency [%s] for %s", objectName, m_BaseType);
                    return DependencyState.UNSATISFIED;
                }
            }
        }
        return DependencyState.SATISFIED;
    }
public DependencyState isSatisfied ( final UUID uuid , final Dictionary < String , Object > properties ) { for ( RegistryDependency dep : m_Dependencies ) { final String objectName = ( String ) properties . get ( dep . getObjectNameProperty ( ) ) ; if ( Strings . isNullOrEmpty ( objectName ) ) { if ( dep . isRequired ( ) ) { m_Logging . debug ( "[%s] property is required and not set so ignoring dependency for [%s] {%s}." , dep . getObjectNameProperty ( ) , m_BaseType , uuid ) ; return DependencyState . INVALID ; } } else { final Object object = dep . findDependency ( objectName ) ; if ( object == null ) { m_Logging . info ( "Missing dependency [%s] for %s" , objectName , m_BaseType ) ; return DependencyState . UNSATISFIED ; } } } return DependencyState . SATISFIED ; }
Check if all dependencies are satisfied for a given property set.
Check if all dependencies are satisfied for a given property set .
// no prop value is only problem if dep is required // if we get here all deps have been check and are available