|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.threerings.antidote.Violation
public class Violation
Holds validation violation information, suitable for displaying user feedback.
RequiresValidation
Constructor Summary | |
---|---|
Violation(String reason,
Location location)
Construct a new Violation, with the supplied String being a user readable reason
that the validation occurred. |
Method Summary | |
---|---|
Location |
getLocation()
Returns the location of this violation. |
String |
getReason()
Returns the user readable reason for this violation. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Violation(String reason, Location location)
String
being a user readable reason
that the validation occurred.
reason
- The violation reason, as a user readable string.location
- The Location
where the violation occurred.Method Detail |
---|
public String getReason()
public Location getLocation()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |