org.globalse.arena.remote
Class LeagueInfo

java.lang.Object
  extended by org.globalse.arena.remote.LeagueInfo
All Implemented Interfaces:
java.io.Serializable

public class LeagueInfo
extends java.lang.Object
implements java.io.Serializable

This class is a container for transporting information about the league to and from remote methods. Instances are created by the arena server and sent to the match front ends. Once created, the LeagueInfos are not updated as Leagues change.

Author:
Michael Nagel
See Also:
RemoteLeague.getInfo(), Serialized Form

Constructor Summary
LeagueInfo(League league)
          Creates a LeagueInfo object for the specified league.
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the associated league at the time this object was created.
 java.lang.String getGameName()
          Returns the name of the associated game; game objects are only referenced by name and not forwarded to the match front end.
 java.lang.String getId()
          Returns the unique identifier of the associated league.
 RemoteLeague getLeague()
          Returns a remote reference to the associated league.
 java.lang.String getName()
          Returns the name of the associated league at the time this object was created.
 User getOwner()
          Returns the owner of the associated league.
 java.lang.String getTournamentStyleName()
          Returns the name of the associated tournament style; tournament style objects are only referenced by name and not forwarded to the match front end.
 boolean isRestricted()
          Returns true if this league is restricted; a restricted league can only be seen by players registered with the league.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeagueInfo

public LeagueInfo(League league)
Creates a LeagueInfo object for the specified league. This constructor is only invokved by the arena server, right before serializing this object for the match front end.

Parameters:
league - a League
Method Detail

getLeague

public RemoteLeague getLeague()
Returns a remote reference to the associated league.

Returns:
a RemoteLeague

getId

public java.lang.String getId()
Returns the unique identifier of the associated league.

Returns:
a String

getName

public java.lang.String getName()
Returns the name of the associated league at the time this object was created.

Returns:
a String

getDescription

public java.lang.String getDescription()
Returns the description of the associated league at the time this object was created.

Returns:
a String

isRestricted

public boolean isRestricted()
Returns true if this league is restricted; a restricted league can only be seen by players registered with the league.

Returns:
a boolean

getOwner

public User getOwner()
Returns the owner of the associated league.

Returns:
an User

getGameName

public java.lang.String getGameName()
Returns the name of the associated game; game objects are only referenced by name and not forwarded to the match front end.

Returns:
a String

getTournamentStyleName

public java.lang.String getTournamentStyleName()
Returns the name of the associated tournament style; tournament style objects are only referenced by name and not forwarded to the match front end.

Returns:
a String


Copyright © 2004-2007 Bernd Bruegge & Allen H. Dutoit. All Rights Reserved.