private boolean dependencyMustBeAddedToGraph(ComponentDependencyDeclaration cdd) { if(m_dependencyState == DependencyState.ALL) { return true; } else if(m_dependencyState == DependencyState.ALL_UNAVAILABLE) { return (cdd.getState() == ComponentDependencyDeclaration.STATE_UNAVAILABLE_REQUIRED) || (cdd.getState() == ComponentDependencyDeclaration.STATE_UNAVAILABLE_OPTIONAL); } else if(m_dependencyState == DependencyState.REQUIRED_UNAVAILABLE) { return cdd.getState() == ComponentDependencyDeclaration.STATE_UNAVAILABLE_REQUIRED; } return false; }
public boolean isUnavailableRequired() { return m_dependencyDeclaration.getState() == ComponentDependencyDeclaration.STATE_UNAVAILABLE_REQUIRED; }
public boolean isUnavailableOptional() { return m_dependencyDeclaration.getState() == ComponentDependencyDeclaration.STATE_UNAVAILABLE_OPTIONAL; }
int depState = dep.getState();