1 16 package org.jmanage.core.management; 17 18 23 public class ObjectAttributeInfo extends ObjectFeatureInfo { 24 25 private String attributeType; 26 private boolean isWrite; 27 private boolean isRead; 28 private boolean isIs; 29 30 public ObjectAttributeInfo(String name, 31 String description, 32 String attributeType, 33 boolean isWrite, 34 boolean isRead, 35 boolean isIs) { 36 super(name, description); 37 this.attributeType = attributeType; 38 this.isWrite = isWrite; 39 this.isRead = isRead; 40 this.isIs = isIs; 41 } 42 43 public String getType() { 44 return attributeType; 45 } 46 47 public String getDisplayType(){ 48 return getDisplayType(attributeType); 49 } 50 51 public boolean isIs() { 52 return isIs; 53 } 54 55 public boolean isReadable() { 56 return isRead; 57 } 58 59 public boolean isWritable() { 60 return isWrite; 61 } 62 63 public String getReadWrite(){ 64 String readWrite = ""; 65 if(isReadable()){ 66 readWrite += "R"; 67 } 68 if(isWritable()){ 69 readWrite += "W"; 70 } 71 return readWrite; 72 } 73 } | Popular Tags |