/**
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 *
 * Copyright (C)
 * <a href="http://www.inab.org">Spanish National Institute of Bioinformatics (INB)</a>
 * <a href="http://www.bsc.es">Barcelona Supercomputing Center (BSC)</a>
 * <a href="http://inb.bsc.es">Computational Node 6</a>
 */

package org.inb.biomoby.shared.message;

import java.io.Serializable;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Dmitry Repchevsky
 */

@XmlRootElement(name="CrossReference")
public class CrossReference implements Serializable
{
    private ArrayList<MobyObject> objects;

    @XmlElementRef(type=org.inb.biomoby.shared.message.MobyObject.class)
    public ArrayList<MobyObject> getObjects()
    {
        if (objects == null)
        {
            objects = new ArrayList<MobyObject>();
        }

        return objects;
    }
}
