Class AbstractNamesContainer
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.AbstractNamesContainer
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext
- Direct Known Subclasses:
NamesContainer,NamesContainer,NamesContainer
public abstract class AbstractNamesContainer extends Object implements FileSourceContext, com.sun.xml.bind.Locatable
A container for aliases, shortname and fullname The JAXB binding is designed to be read-only and is not designed for writing- Since:
19/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractNamesContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Alias>getAliases()Gets the value of the alias property.StringgetFullName()Gets the value of the fullName property.StringgetShortLabel()Gets the value of the shortLabel property.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.protected voidinitialiseAliases()initialiseAliases.protected voidinitialiseAliasesWith(List<Alias> aliases)initialiseAliasesWith.booleanisEmpty()isEmpty.voidsetFullName(String value)Sets the value of the fullName property.voidsetShortLabel(String value)Sets the value of the shortLabel property.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorLocatorsourceLocation()StringtoString()toString
-
-
-
Method Detail
-
getShortLabel
public String getShortLabel()
Gets the value of the shortLabel property.- Returns:
- a
Stringobject.
-
setShortLabel
public void setShortLabel(String value)
Sets the value of the shortLabel property.- Parameters:
value- allowed object isString
-
getFullName
public String getFullName()
Gets the value of the fullName property.- Returns:
- a
Stringobject.
-
setFullName
public void setFullName(String value)
Sets the value of the fullName property.- Parameters:
value- allowed object isString
-
getAliases
public List<Alias> getAliases()
Gets the value of the alias 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 alias property.For example, to add a new item, do as follows:
getAlias().add(newItem);- Returns:
- a
Listobject.
-
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
-
isEmpty
public boolean isEmpty()
isEmpty.
- Returns:
- a boolean.
-
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
-
initialiseAliases
protected void initialiseAliases()
initialiseAliases.
-
-