Class XmlInteractorPool
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.AbstractBaseXmlInteractor
-
- psidev.psi.mi.jami.xml.model.extension.xml254.AbstractXmlInteractor
-
- psidev.psi.mi.jami.xml.model.extension.xml254.DefaultXmlInteractor
-
- psidev.psi.mi.jami.xml.model.extension.xml254.XmlInteractorPool
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable
,Iterable<Interactor>
,Collection<Interactor>
,FileSourceContext
,Interactor
,InteractorPool
,ExtendedPsiXmlInteractor
public class XmlInteractorPool extends DefaultXmlInteractor implements InteractorPool
Xml implementation for InteractorSet- Since:
24/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class psidev.psi.mi.jami.xml.model.extension.xml254.AbstractXmlInteractor
AbstractXmlInteractor.JAXBAttributeWrapper
-
Nested classes/interfaces inherited from class psidev.psi.mi.jami.xml.model.extension.AbstractBaseXmlInteractor
AbstractBaseXmlInteractor.AbstractJAXBAttributeWrapper
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.xml.model.extension.AbstractBaseXmlInteractor
locator
-
Fields inherited from interface psidev.psi.mi.jami.model.Interactor
UNKNOWN_INTERACTOR, UNKNOWN_INTERACTOR_MI
-
Fields inherited from interface psidev.psi.mi.jami.model.InteractorPool
CANDIDATE_SET, CANDIDATE_SET_MI, DEFINED_SET, DEFINED_SET_MI, MOLECULE_SET, MOLECULE_SET_MI, OPEN_SET, OPEN_SET_MI
-
-
Constructor Summary
Constructors Constructor Description XmlInteractorPool()
Constructor for XmlInteractorPool.XmlInteractorPool(String name)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName, CvTerm type)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName, CvTerm type, Organism organism)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName, CvTerm type, Xref uniqueId)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName, Organism organism)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName, Organism organism, Xref uniqueId)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, String fullName, Xref uniqueId)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, CvTerm type)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, CvTerm type, Organism organism)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, CvTerm type, Organism organism, Xref uniqueId)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, CvTerm type, Xref uniqueId)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, Organism organism)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, Organism organism, Xref uniqueId)
Constructor for XmlInteractorPool.XmlInteractorPool(String name, Xref uniqueId)
Constructor for XmlInteractorPool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Interactor interactor)
add.boolean
addAll(Collection<? extends Interactor> interactors)
void
clear()
clear.boolean
contains(Object o)
boolean
containsAll(Collection<?> objects)
protected void
createDefaultInteractorType()
createDefaultInteractorType.protected void
initialiseInteractorCandidatesSet()
initialiseInteractorCandidatesSet.protected void
initialiseInteractorCandidatesSetWith(Set<Interactor> interactorCandidates)
initialiseInteractorCandidatesSetWith.boolean
isEmpty()
isEmpty.Iterator<Interactor>
iterator()
iterator.boolean
remove(Object o)
boolean
removeAll(Collection<?> objects)
boolean
retainAll(Collection<?> objects)
int
size()
size.Object[]
toArray()
toArray.<T> T[]
toArray(T[] ts)
toArray.String
toString()
toString-
Methods inherited from class psidev.psi.mi.jami.xml.model.extension.xml254.AbstractXmlInteractor
initialiseAnnotationWrapper, initialiseNamesContainer, initialiseXrefContainer, setJAXBAttributeWrapper, setJAXBId, setJAXBInteractorType, setJAXBNames, setJAXBOrganism, setJAXBXref, setSequence
-
Methods inherited from class psidev.psi.mi.jami.xml.model.extension.AbstractBaseXmlInteractor
getAliases, getAnnotations, getChecksums, getFullName, getId, getIdentifiers, getInteractorType, getNamesContainer, getOrganism, getPreferredIdentifier, getPreferredName, getSequence, getShortName, getSourceLocator, getXrefs, setFullName, setId, setInteractorType, setJAXBAttributeWrapper, setJAXBInteractorType, setJAXBNames, setJAXBOrganism, setNamesContainer, setOrganism, setShortName, setSourceLocation, setSourceLocator, setXrefContainer, sourceLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Methods inherited from interface psidev.psi.mi.jami.model.Interactor
getAliases, getAnnotations, getChecksums, getFullName, getIdentifiers, getInteractorType, getOrganism, getPreferredIdentifier, getPreferredName, getShortName, getXrefs, setFullName, setInteractorType, setOrganism, setShortName
-
-
-
-
Constructor Detail
-
XmlInteractorPool
public XmlInteractorPool()
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, CvTerm type)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, String fullName, CvTerm type)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, CvTerm type, Organism organism)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, String fullName, CvTerm type, Organism organism)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, CvTerm type, Xref uniqueId)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, String fullName, CvTerm type, Xref uniqueId)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, CvTerm type, Organism organism, Xref uniqueId)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, String fullName, CvTerm type, Organism organism, Xref uniqueId)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name)
Constructor for XmlInteractorPool.
- Parameters:
name
- aString
object.
-
XmlInteractorPool
public XmlInteractorPool(String name, String fullName)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, Organism organism)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, String fullName, Organism organism)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, Xref uniqueId)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, String fullName, Xref uniqueId)
Constructor for XmlInteractorPool.
-
XmlInteractorPool
public XmlInteractorPool(String name, Organism organism, Xref uniqueId)
Constructor for XmlInteractorPool.
-
-
Method Detail
-
initialiseInteractorCandidatesSet
protected void initialiseInteractorCandidatesSet()
initialiseInteractorCandidatesSet.
-
initialiseInteractorCandidatesSetWith
protected void initialiseInteractorCandidatesSetWith(Set<Interactor> interactorCandidates)
initialiseInteractorCandidatesSetWith.
- Parameters:
interactorCandidates
- aSet
object.
-
size
public int size()
size.
- Specified by:
size
in interfaceCollection<Interactor>
- Returns:
- a int.
-
isEmpty
public boolean isEmpty()
isEmpty.
- Specified by:
isEmpty
in interfaceCollection<Interactor>
- Returns:
- a boolean.
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<Interactor>
-
iterator
public Iterator<Interactor> iterator()
iterator.
- Specified by:
iterator
in interfaceCollection<Interactor>
- Specified by:
iterator
in interfaceIterable<Interactor>
- Returns:
- a
Iterator
object.
-
toArray
public Object[] toArray()
toArray.
- Specified by:
toArray
in interfaceCollection<Interactor>
- Returns:
- an array of
Object
objects.
-
toArray
public <T> T[] toArray(T[] ts)
toArray.
- Specified by:
toArray
in interfaceCollection<Interactor>
- Type Parameters:
T
- a T object.- Parameters:
ts
- an array of T objects.- Returns:
- an array of T objects.
-
add
public boolean add(Interactor interactor)
add.
- Specified by:
add
in interfaceCollection<Interactor>
- Parameters:
interactor
- aInteractor
object.- Returns:
- a boolean.
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<Interactor>
-
containsAll
public boolean containsAll(Collection<?> objects)
- Specified by:
containsAll
in interfaceCollection<Interactor>
-
addAll
public boolean addAll(Collection<? extends Interactor> interactors)
- Specified by:
addAll
in interfaceCollection<Interactor>
-
retainAll
public boolean retainAll(Collection<?> objects)
- Specified by:
retainAll
in interfaceCollection<Interactor>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAll
in interfaceCollection<Interactor>
-
clear
public void clear()
clear.
- Specified by:
clear
in interfaceCollection<Interactor>
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classAbstractBaseXmlInteractor
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
createDefaultInteractorType
protected void createDefaultInteractorType()
createDefaultInteractorType.
- Overrides:
createDefaultInteractorType
in classAbstractXmlInteractor
-
-