package org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmlelement;

import java.io.Serializable;
import java.util.List;

public class Team implements Serializable {
    private List players;
    private String name;

    public Team() {
    }

    public Team(String name, List players) {
        setName(name);
        setPlayers(players);
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPlayers(List players) {
        this.players = players;
    }

    public List getPlayers() {
        return players;
    }

    public void setRosterCount(int n) {
    } // no-op but needed for property

    public int getRosterCount() {
        return (players == null) ? 0 : players.size();
    }
}
