1 28 29 package org.jibx.binding.model; 30 31 37 38 public class TemplateElement extends TemplateElementBase 39 { 40 41 private String m_label; 42 43 44 private boolean m_isDefault; 45 46 47 private NameAttributes m_typeNameAttrs; 48 49 50 private NameAttributes m_baseNameAttrs; 51 52 53 private TemplateElement m_extendsMapping; 54 55 58 public TemplateElement() { 59 super(TEMPLATE_ELEMENT); 60 m_typeNameAttrs = new NameAttributes(); 61 } 62 63 68 public String getLabel() { 69 return m_label; 70 } 71 72 77 public void setLabel(String label) { 78 m_label = label; 79 } 80 81 86 public boolean isDefaultTemplate() { 87 return m_isDefault; 88 } 89 90 96 public void setDefaultTemplate(boolean dflt) { 97 m_isDefault = dflt; 98 } 99 100 103 108 public String getTypeName() { 109 return m_typeNameAttrs.getName(); 110 } 111 112 117 public void setTypeName(String name) { 118 m_typeNameAttrs.setName(name); 119 } 120 121 126 public String getTypeUri() { 127 return m_typeNameAttrs.getUri(); 128 } 129 130 135 public void setTypeUri(String uri) { 136 m_typeNameAttrs.setUri(uri); 137 } 138 139 144 public String getTypePrefix() { 145 return m_typeNameAttrs.getPrefix(); 146 } 147 148 153 public void setTypePrefix(String prefix) { 154 m_typeNameAttrs.setPrefix(prefix); 155 } 156 157 163 public NamespaceElement getTypeNamespace() { 164 return m_typeNameAttrs.getNamespace(); 165 } 166 167 172 public TemplateElement getExtendsMapping() { 173 return m_extendsMapping; 174 } 175 176 179 184 public String getBaseName() { 185 return m_baseNameAttrs.getName(); 186 } 187 188 193 public void setBaseName(String name) { 194 m_baseNameAttrs.setName(name); 195 } 196 197 202 public String getBaseUri() { 203 return m_baseNameAttrs.getUri(); 204 } 205 206 211 public void setBaseUri(String uri) { 212 m_baseNameAttrs.setUri(uri); 213 } 214 215 220 public String getBasePrefix() { 221 return m_baseNameAttrs.getPrefix(); 222 } 223 224 229 public void setBasePrefix(String prefix) { 230 m_baseNameAttrs.setPrefix(prefix); 231 } 232 233 239 public NamespaceElement getBaseNamespace() { 240 return m_typeNameAttrs.getNamespace(); 241 } 242 243 246 251 public void prevalidate(ValidationContext vctx) { 252 m_typeNameAttrs.prevalidate(vctx); 253 super.prevalidate(vctx); 254 } 255 } | Popular Tags |