01: // Copyright 2004, 2005 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // Unless required by applicable law or agreed to in writing, software
10: // distributed under the License is distributed on an "AS IS" BASIS,
11: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: // See the License for the specific language governing permissions and
13: // limitations under the License.
14:
15: package org.apache.hivemind.order;
16:
17: /**
18: * Used by an {@link org.apache.hivemind.order.Orderer} to organize
19: * a single object and its pre- and post-requisites.
20: *
21: * @author Howard Lewis Ship
22: */
23: class ObjectOrdering {
24: private String _name;
25: private Object _object;
26: private String _prereqs;
27: private String _postreqs;
28:
29: ObjectOrdering(Object object, String name, String prereqs,
30: String postreqs) {
31: _object = object;
32: _name = name;
33: _prereqs = prereqs;
34: _postreqs = postreqs;
35: }
36:
37: public String getName() {
38: return _name;
39: }
40:
41: public Object getObject() {
42: return _object;
43: }
44:
45: public String getPostreqs() {
46: return _postreqs;
47: }
48:
49: public String getPrereqs() {
50: return _prereqs;
51: }
52:
53: }
|