1 15 package org.apache.hivemind.schema.impl; 16 17 import org.apache.hivemind.parse.BaseAnnotationHolder; 18 import org.apache.hivemind.schema.AttributeModel; 19 20 25 public final class AttributeModelImpl extends BaseAnnotationHolder implements AttributeModel 26 { 27 private String _name; 28 29 private String _default; 30 31 private boolean _required; 32 33 private boolean _unique; 34 35 private String _translator; 36 37 public String getName() 38 { 39 return _name; 40 } 41 42 public String getDefault() 43 { 44 return _default; 45 } 46 47 public boolean isRequired() 48 { 49 return _required; 50 } 51 52 public void setName(String string) 53 { 54 _name = string; 55 } 56 57 public void setDefault(String string) 58 { 59 _default = string; 60 } 61 62 public void setRequired(boolean b) 63 { 64 _required = b; 65 } 66 67 public void setUnique(boolean b) 68 { 69 _unique = b; 70 } 71 72 public boolean isUnique() 73 { 74 return _unique; 75 } 76 77 public String getTranslator() 78 { 79 return _translator; 80 } 81 82 public void setTranslator(String string) 83 { 84 _translator = string; 85 } 86 87 } 88 | Popular Tags |