|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.deckbuilder.DeckConstraint
public class DeckConstraint
Constructor Summary | |
---|---|
DeckConstraint(java.lang.String name,
Test constraint)
Create a new instance of this class. |
Method Summary | |
---|---|
int |
compareTo(DeckConstraint o)
|
Test |
getConstraint()
Return the constraint. |
java.lang.String |
getConstraintLocalName()
Return the translated constraint's name. |
java.lang.String |
getName()
Return the constraint name. |
java.lang.String |
toString()
|
java.util.List<java.lang.String> |
validate(Deck deck)
Validate the given deck. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeckConstraint(java.lang.String name, Test constraint)
constraint
- the constraint validation test.name
- the constraint key name.Method Detail |
---|
public java.lang.String getConstraintLocalName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
getConstraintLocalName()
public Test getConstraint()
public java.util.List<java.lang.String> validate(Deck deck)
deck
- the given deck.
public int compareTo(DeckConstraint o)
compareTo
in interface java.lang.Comparable<DeckConstraint>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |