Package org.codehaus.plexus.collections
Class AbstractActiveList
- java.lang.Object
-
- org.codehaus.plexus.collections.AbstractActiveList
-
- All Implemented Interfaces:
java.lang.Iterable,java.util.Collection,java.util.List,ActiveCollection,ActiveList
- Direct Known Subclasses:
DefaultActiveList
public abstract class AbstractActiveList extends java.lang.Object implements ActiveList
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.PlexusContainercontainerprivate org.codehaus.plexus.logging.Loggerloggerprivate java.lang.Stringrole-
Fields inherited from interface org.codehaus.plexus.collections.ActiveList
ROLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractActiveList()protectedAbstractActiveList(org.codehaus.plexus.PlexusContainer container, java.lang.String role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int arg0, java.lang.Object arg1)booleanadd(java.lang.Object arg0)booleanaddAll(int arg0, java.util.Collection arg1)booleanaddAll(java.util.Collection arg0)protected java.util.ListcheckedGetList()voidclear()voidcontextualize(org.codehaus.plexus.context.Context context)voidenableLogging(org.codehaus.plexus.logging.Logger logger)protected java.util.ListgetList()protected org.codehaus.plexus.logging.LoggergetLogger()java.lang.StringgetRole()Retrive the role, or type of component, which is collected in the current instance.java.lang.Objectremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection arg0)booleanretainAll(java.util.Collection arg0)java.lang.Objectset(int arg0, java.lang.Object arg1)protected voidsetRole(java.lang.String role)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.collections.ActiveCollection
checkedIsEmpty, checkedSize, isEmpty, size
-
Methods inherited from interface org.codehaus.plexus.collections.ActiveList
checkedContains, checkedContainsAll, checkedGet, checkedIndexOf, checkedIterator, checkedLastIndexOf, checkedListIterator, checkedListIterator, checkedSubList, checkedToArray, checkedToArray
-
-
-
-
Method Detail
-
add
public boolean add(java.lang.Object arg0)
- Specified by:
addin interfacejava.util.Collection- Specified by:
addin interfacejava.util.List
-
add
public void add(int arg0, java.lang.Object arg1)- Specified by:
addin interfacejava.util.List
-
addAll
public boolean addAll(java.util.Collection arg0)
- Specified by:
addAllin interfacejava.util.Collection- Specified by:
addAllin interfacejava.util.List
-
addAll
public boolean addAll(int arg0, java.util.Collection arg1)- Specified by:
addAllin interfacejava.util.List
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection- Specified by:
clearin interfacejava.util.List
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection- Specified by:
removein interfacejava.util.List
-
remove
public java.lang.Object remove(int index)
- Specified by:
removein interfacejava.util.List
-
removeAll
public boolean removeAll(java.util.Collection arg0)
- Specified by:
removeAllin interfacejava.util.Collection- Specified by:
removeAllin interfacejava.util.List
-
retainAll
public boolean retainAll(java.util.Collection arg0)
- Specified by:
retainAllin interfacejava.util.Collection- Specified by:
retainAllin interfacejava.util.List
-
set
public java.lang.Object set(int arg0, java.lang.Object arg1)- Specified by:
setin interfacejava.util.List
-
checkedGetList
protected final java.util.List checkedGetList() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
getList
protected final java.util.List getList()
-
getRole
public final java.lang.String getRole()
Description copied from interface:ActiveCollectionRetrive the role, or type of component, which is collected in the current instance. The current collection will only "contain" elements that specify this role in their component definitions.- Specified by:
getRolein interfaceActiveCollection
-
setRole
protected final void setRole(java.lang.String role)
-
contextualize
public final void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException- Throws:
org.codehaus.plexus.context.ContextException
-
getLogger
protected final org.codehaus.plexus.logging.Logger getLogger()
-
enableLogging
public final void enableLogging(org.codehaus.plexus.logging.Logger logger)
-
-