1 17 18 package org.apache.geronimo.gbean; 19 20 import java.io.Serializable ; 21 22 27 public class GAttributeInfo implements Serializable { 28 31 private final String name; 32 33 36 private final String type; 37 38 41 private final boolean persistent; 42 43 46 private final boolean manageable; 47 48 51 private final boolean readable; 52 53 56 private final boolean writable; 57 58 62 private final String getterName; 63 64 68 private final String setterName; 69 70 public GAttributeInfo(String name, String type, boolean persistent, boolean manageable, String getterName, String setterName) { 71 this(name, type, persistent, manageable, getterName != null, setterName != null, getterName, setterName); 72 } 73 74 public GAttributeInfo(String name, String type, boolean persistent, boolean manageable, boolean readable, boolean writable, String getterName, String setterName) { 75 this.name = name; 76 this.type = type; 77 this.persistent = persistent; 78 this.manageable = manageable & persistent; 80 this.readable = readable; 81 this.writable = writable; 82 this.getterName = getterName; 83 this.setterName = setterName; 84 } 85 86 public String getName() { 87 return name; 88 } 89 90 public String getType() { 91 return type; 92 } 93 94 public boolean isPersistent() { 95 return persistent; 96 } 97 98 public boolean isManageable() { 99 return manageable; 100 } 101 102 public boolean isReadable() { 103 return readable; 104 } 105 106 public boolean isWritable() { 107 return writable; 108 } 109 110 public String getGetterName() { 111 return getterName; 112 } 113 114 public String getSetterName() { 115 return setterName; 116 } 117 118 public String toString() { 119 return "[GAttributeInfo: name=" + name + 120 " type=" + type + 121 " persistent=" + persistent + 122 " manageable=" + manageable + 123 " readable=" + readable + 124 " writable=" + writable + 125 " getterName=" + getterName + 126 " setterName=" + setterName + 127 "]"; 128 } 129 } 130 | Popular Tags |