001 package com.thaiopensource.validate.nrl;
002
003 import com.thaiopensource.validate.Schema;
004
005 class AttributeActionSet {
006 private boolean attach;
007 private boolean reject;
008 private Schema[] schemas = new Schema[0];
009
010 boolean getAttach() {
011 return attach;
012 }
013
014 void setAttach(boolean attach) {
015 this.attach = attach;
016 }
017
018 boolean getReject() {
019 return reject;
020 }
021
022 void setReject(boolean reject) {
023 this.reject = reject;
024 }
025
026 Schema[] getSchemas() {
027 return schemas;
028 }
029
030 void addSchema(Schema schema) {
031 Schema[] s = new Schema[schemas.length + 1];
032 System.arraycopy(schemas, 0, s, 0, schemas.length);
033 s[schemas.length] = schema;
034 schemas = s;
035 }
036 }