KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > validate > nrl > AttributeActionSet


1 package com.thaiopensource.validate.nrl;
2
3 import com.thaiopensource.validate.Schema;
4
5 class AttributeActionSet {
6   private boolean attach;
7   private boolean reject;
8   private Schema[] schemas = new Schema[0];
9
10   boolean getAttach() {
11     return attach;
12   }
13
14   void setAttach(boolean attach) {
15     this.attach = attach;
16   }
17
18   boolean getReject() {
19     return reject;
20   }
21
22   void setReject(boolean reject) {
23     this.reject = reject;
24   }
25
26   Schema[] getSchemas() {
27     return schemas;
28   }
29
30   void addSchema(Schema schema) {
31     Schema[] s = new Schema[schemas.length + 1];
32     System.arraycopy(schemas, 0, s, 0, schemas.length);
33     s[schemas.length] = schema;
34     schemas = s;
35   }
36 }
37
Popular Tags