KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > slide > projector > descriptor > ResultDescriptor


1 package org.apache.slide.projector.descriptor;
2
3
4 public class ResultDescriptor {
5     public final static ResultDescriptor OK = new ResultDescriptor(new StateDescriptor[] { StateDescriptor.OK_DESCRIPTOR });
6         
7     protected StateDescriptor[] stateDescriptors;
8     protected ResultEntryDescriptor[] resultEntryDescriptors;
9
10     public ResultDescriptor(StateDescriptor[] stateDescriptors, ResultEntryDescriptor[] resultEntryDescriptors) {
11         this.stateDescriptors = stateDescriptors;
12         this.resultEntryDescriptors = resultEntryDescriptors;
13     }
14
15     public ResultDescriptor(StateDescriptor[] stateDescriptors) {
16         this.stateDescriptors = stateDescriptors;
17         this.resultEntryDescriptors = new ResultEntryDescriptor[0];
18     }
19
20     public StateDescriptor[] getStateDescriptors() {
21         return stateDescriptors;
22     }
23
24     public ResultEntryDescriptor[] getResultEntryDescriptors() {
25         return resultEntryDescriptors;
26     }
27 }
Popular Tags