org.databene.model.depend
Class AbstractDependent<E extends Dependent<E>>
java.lang.Object
org.databene.model.depend.AbstractDependent<E>
- Type Parameters:
E -
- All Implemented Interfaces:
- Dependent<E>
- Direct Known Subclasses:
- DefaultDependent
public abstract class AbstractDependent<E extends Dependent<E>>
- extends java.lang.Object
- implements Dependent<E>
Abstract class that provides partial featur implementation of the Dependent interface.
- Since:
- 0.3.04
- Author:
- Volker Bergmann
|
Field Summary |
protected java.util.List<org.databene.model.depend.ProviderInfo<E>> |
providers
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
providers
protected java.util.List<org.databene.model.depend.ProviderInfo<E extends Dependent<E>>> providers
AbstractDependent
public AbstractDependent(E... requiredProviders)
addRequiredProvider
public void addRequiredProvider(E provider)
addOptionalProvider
public void addOptionalProvider(E provider)
countProviders
public int countProviders()
- Specified by:
countProviders in interface Dependent<E extends Dependent<E>>
getProvider
public E getProvider(int index)
- Specified by:
getProvider in interface Dependent<E extends Dependent<E>>
requiresProvider
public boolean requiresProvider(int index)
- Specified by:
requiresProvider in interface Dependent<E extends Dependent<E>>
Copyright © 2010. All Rights Reserved.