net.sf.magicproject.deckbuilder
Class DeckConstraints

java.lang.Object
  extended by net.sf.magicproject.deckbuilder.DeckConstraints

public class DeckConstraints
extends java.lang.Object

Since:
0.94
Author:
Fabrice Daugan

Field Summary
static java.lang.String DECK_CONSTRAINT_NAME_NONE
          The null deck constraint key name.
 
Method Summary
static DeckConstraint getDeckConstraint(java.lang.String deckConstraint)
          Return the constraint associated to the given name.
static java.util.Collection<DeckConstraint> getDeckConstraints()
          Return the available constraints.
static void init(java.io.FileInputStream dbStream)
          Initialize the deck constraints.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECK_CONSTRAINT_NAME_NONE

public static final java.lang.String DECK_CONSTRAINT_NAME_NONE
The null deck constraint key name.

See Also:
Constant Field Values
Method Detail

getDeckConstraint

public static DeckConstraint getDeckConstraint(java.lang.String deckConstraint)
Return the constraint associated to the given name.

Parameters:
deckConstraint - the constraint name.
Returns:
the constraint associated to the given name.

getDeckConstraints

public static java.util.Collection<DeckConstraint> getDeckConstraints()
Return the available constraints.

Returns:
the available constraints.

init

public static void init(java.io.FileInputStream dbStream)
                 throws java.io.IOException
Initialize the deck constraints.

Parameters:
dbStream -
Throws:
java.io.IOException - If some other I/O error occurs


Copyright © 2003-2007 Magic-Project. All Rights Reserved.