Class XmlAlias

  • All Implemented Interfaces:
    com.sun.xml.bind.Locatable, FileSourceContext, Alias

    public class XmlAlias
    extends Object
    implements Alias, FileSourceContext, com.sun.xml.bind.Locatable
    Xml implementation of an Alias. 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)
    • Constructor Detail

      • XmlAlias

        public XmlAlias()

        Constructor for XmlAlias.

      • XmlAlias

        public XmlAlias​(String name,
                        CvTerm type)

        Constructor for XmlAlias.

        Parameters:
        name - a String object.
        type - a CvTerm object.
      • XmlAlias

        public XmlAlias​(String name)

        Constructor for XmlAlias.

        Parameters:
        name - a String object.
    • Method Detail

      • getType

        public CvTerm getType()

        Getter for the field type.

        Specified by:
        getType in interface Alias
        Returns:
        a CvTerm object.
      • getName

        public String getName()

        Getter for the field name.

        Specified by:
        getName in interface Alias
        Returns:
        a String object.
      • setJAXBName

        public void setJAXBName​(String name)

        setJAXBName.

        Parameters:
        name - a String object.
      • setJAXBTypeAc

        public void setJAXBTypeAc​(String value)
        Sets the value of the typeAc property.
        Parameters:
        value - allowed object is String
      • setJAXBTypeName

        public void setJAXBTypeName​(String value)
        Sets the value of the type property.
        Parameters:
        value - allowed object is String
      • sourceLocation

        public Locator sourceLocation()
        Specified by:
        sourceLocation in interface com.sun.xml.bind.Locatable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()

        toString

        Specified by:
        toString in interface FileSourceContext
        Overrides:
        toString in class Object
        Returns:
        the file source context as a String. If the source locator is not null, it should give the source locator properties