Class XrefContainer
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.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 class
XrefContainer.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.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.List<Xref>
getXrefs()
Getter for the fieldxrefs
.protected void
initialiseSecondaryRefs()
initialiseSecondaryRefs.protected void
initialiseSecondaryResWith(XrefContainer.JAXBSecondaryXrefList list)
initialiseSecondaryResWith.protected void
initialiseXrefs()
initialiseXrefs.protected void
initialiseXrefsWith(List<Xref> list)
initialiseXrefsWith.boolean
isEmpty()
isEmpty.protected void
processAddedPrimaryRef(Xref added)
processAddedPrimaryRef.void
setJAXBPrimaryRef(Xref value)
Sets the value of the primaryRef property.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorLocator
sourceLocation()
String
toString()
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
set
method 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
List
object.
-
isEmpty
public boolean isEmpty()
isEmpty.
- Returns:
- a boolean.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in 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
- aList
object.
-
initialiseSecondaryRefs
protected void initialiseSecondaryRefs()
initialiseSecondaryRefs.
-
initialiseSecondaryResWith
protected void initialiseSecondaryResWith(XrefContainer.JAXBSecondaryXrefList list)
initialiseSecondaryResWith.
- Parameters:
list
- aXrefContainer.JAXBSecondaryXrefList
object.
-
-