Class XrefContainer
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.XrefContainer
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext
- Direct Known Subclasses:
CvTermXrefContainer,ExperimentXrefContainer,FeatureXrefContainer,InteractionXrefContainer,InteractorXrefContainer,PublicationXrefContainer
public class XrefContainer extends Object implements FileSourceContext, com.sun.xml.bind.Locatable
Xref container in XML implementation The JAXB binding is designed to be read-only and is not designed for writing- Since:
18/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXrefContainer.JAXBSecondaryXrefList
-
Constructor Summary
Constructors Constructor Description XrefContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Xref>getJAXBSecondaryRefs()Gets the value of the secondaryReves property.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.List<Xref>getXrefs()Getter for the fieldxrefs.protected voidinitialiseSecondaryRefs()initialiseSecondaryRefs.protected voidinitialiseSecondaryResWith(XrefContainer.JAXBSecondaryXrefList list)initialiseSecondaryResWith.protected voidinitialiseXrefs()initialiseXrefs.protected voidinitialiseXrefsWith(List<Xref> list)initialiseXrefsWith.booleanisEmpty()isEmpty.protected voidprocessAddedPrimaryRef(Xref added)processAddedPrimaryRef.voidsetJAXBPrimaryRef(Xref value)Sets the value of the primaryRef property.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorLocatorsourceLocation()StringtoString()toString
-
-
-
Method Detail
-
setJAXBPrimaryRef
public void setJAXBPrimaryRef(Xref value)
Sets the value of the primaryRef property.- Parameters:
value- allowed object isXmlXref
-
getJAXBSecondaryRefs
public List<Xref> getJAXBSecondaryRefs()
Gets the value of the secondaryReves property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the secondaryReves property.For example, to add a new item, do as follows:
getSecondaryReves().add(newItem);Objects of the following type(s) are allowed in the list
XmlXref- Returns:
- a
Listobject.
-
isEmpty
public boolean isEmpty()
isEmpty.
- Returns:
- a boolean.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classObject- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
initialiseXrefs
protected void initialiseXrefs()
initialiseXrefs.
-
initialiseXrefsWith
protected void initialiseXrefsWith(List<Xref> list)
initialiseXrefsWith.
- Parameters:
list- aListobject.
-
initialiseSecondaryRefs
protected void initialiseSecondaryRefs()
initialiseSecondaryRefs.
-
initialiseSecondaryResWith
protected void initialiseSecondaryResWith(XrefContainer.JAXBSecondaryXrefList list)
initialiseSecondaryResWith.
- Parameters:
list- aXrefContainer.JAXBSecondaryXrefListobject.
-
-