Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StateDescriptor |
|
| 1.0;1 |
1 | package org.apache.commons.contract.descriptor; | |
2 | ||
3 | import org.apache.commons.i18n.bundles.MessageBundle; | |
4 | ||
5 | public class StateDescriptor extends Descriptor { | |
6 | public final static String OK = "ok"; | |
7 | 0 | public final static StateDescriptor OK_DESCRIPTOR = new StateDescriptor(OK, new MessageBundle("state/ok")); |
8 | ||
9 | public StateDescriptor(String state, MessageBundle description) { | |
10 | 0 | super(state, description); |
11 | 0 | } |
12 | ||
13 | public String getState() { | |
14 | 0 | return getName(); |
15 | } | |
16 | } |