1 11 package org.eclipse.ant.internal.ui.dtd.schema; 12 13 import org.eclipse.ant.internal.ui.dtd.*; 14 15 19 public class Attribute extends Atom implements IAttribute { 20 private String fType; 21 private String [] fEnum; 22 private IElement fElement; 23 private String fDefault; 24 private boolean fFixed; 25 private boolean fRequired; 26 27 32 public Attribute(String name, IElement element) { 33 super(ATTRIBUTE, name); 34 fElement = element; 35 } 36 37 40 public String getType() { 41 return fType; 42 } 43 44 47 public String [] getEnum() { 48 return fEnum; 49 } 50 51 54 public IElement getElement() { 55 return fElement; 56 } 57 58 61 public String getDefault() { 62 return fDefault; 63 } 64 65 68 public boolean isFixed() { 69 return fFixed; 70 } 71 72 75 public boolean isRequired() { 76 return fRequired; 77 } 78 79 public void setType(String type) { 80 fType = type; 81 } 82 83 87 public void setDefault(String defaultValue) { 88 fDefault = defaultValue; 89 } 90 91 95 public void setEnum(String [] enumeration) { 96 fEnum = enumeration; 97 } 98 99 103 public void setFixed(boolean fixed) { 104 fFixed = fixed; 105 } 106 107 111 public void setRequired(boolean required) { 112 fRequired = required; 113 } 114 } 115 | Popular Tags |