1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import java.util.Vector ; 61 62 import org.w3c.dom.DOMException ; 63 import com.sun.org.apache.xerces.internal.dom3.as.*; 64 import com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar; 65 66 91 public class ASModelImpl implements ASModel { 92 93 boolean fNamespaceAware = true; 97 98 protected Vector fASModels; 101 protected SchemaGrammar fGrammar = null; 102 103 107 public ASModelImpl() { 108 fASModels = new Vector (); 109 } 110 111 public ASModelImpl(boolean isNamespaceAware) { 112 fASModels = new Vector (); 113 fNamespaceAware = isNamespaceAware; 114 } 115 116 120 123 public short getAsNodeType() { 124 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 125 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 126 } 127 128 133 public ASModel getOwnerASModel() { 134 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 135 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 136 } 137 138 143 public void setOwnerASModel(ASModel ownerASModel) { 144 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 145 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 146 } 147 148 152 public String getNodeName() { 153 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 154 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 155 } 156 157 161 public void setNodeName(String nodeName) { 162 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 163 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 164 } 165 166 170 public String getPrefix() { 171 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 172 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 173 } 174 175 179 public void setPrefix(String prefix) { 180 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 181 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 182 } 183 184 188 public String getLocalName() { 189 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 190 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 191 } 192 193 197 public void setLocalName(String localName) { 198 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 199 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 200 } 201 202 207 public String getNamespaceURI() { 208 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 209 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 210 } 211 212 217 public void setNamespaceURI(String namespaceURI) { 218 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 219 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 220 } 221 222 231 public ASObject cloneASObject(boolean deep) { 232 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 233 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 234 } 235 236 240 246 public boolean getIsNamespaceAware() { 247 return fNamespaceAware; 248 } 249 250 255 public short getUsageLocation() { 256 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 257 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 258 } 259 260 263 public String getAsLocation() { 264 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 265 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 266 } 267 268 271 public void setAsLocation(String asLocation) { 272 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 273 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 274 } 275 276 279 public String getAsHint() { 280 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 281 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 282 } 283 284 287 public void setAsHint(String asHint) { 288 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 289 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 290 } 291 292 296 public boolean getContainer() { 297 return (fGrammar != null); 298 } 299 300 307 public ASNamedObjectMap getElementDeclarations() { 308 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 309 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 310 } 311 312 319 public ASNamedObjectMap getAttributeDeclarations() { 320 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 321 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 322 } 323 324 331 public ASNamedObjectMap getNotationDeclarations() { 332 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 333 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 334 } 335 336 343 public ASNamedObjectMap getEntityDeclarations() { 344 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 345 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 346 } 347 348 355 public ASNamedObjectMap getContentModelDeclarations() { 356 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 357 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 358 } 359 360 365 public void addASModel(ASModel abstractSchema) { 366 fASModels.addElement(abstractSchema); 367 } 368 369 373 public ASObjectList getASModels() { 374 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 375 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 376 } 377 378 383 public void removeAS(ASModel as) { 384 fASModels.removeElement(as); 385 } 386 387 393 public boolean validate() { 394 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 395 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 396 } 397 398 402 public void importASObject(ASObject asobject) { 403 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 404 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 405 } 406 407 411 public void insertASObject(ASObject asobject) { 412 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 413 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 414 } 415 416 432 public ASElementDeclaration createASElementDeclaration(String namespaceURI, 433 String name) 434 throws DOMException { 435 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 436 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 437 } 438 439 451 public ASAttributeDeclaration createASAttributeDeclaration(String namespaceURI, 452 String name) 453 throws DOMException { 454 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 455 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 456 } 457 458 474 public ASNotationDeclaration createASNotationDeclaration(String namespaceURI, String name, 475 String systemId, String publicId) 476 throws DOMException { 477 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 478 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 479 } 480 481 490 public ASEntityDeclaration createASEntityDeclaration(String name) 491 throws DOMException { 492 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 493 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 494 } 495 496 510 public ASContentModel createASContentModel(int minOccurs, int maxOccurs, 511 short operator) throws DOMASException { 512 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 513 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 514 } 515 516 517 public SchemaGrammar getGrammar() { 519 return fGrammar; 520 } 521 public void setGrammar(SchemaGrammar grammar) { 522 fGrammar = grammar; 523 } 524 525 public Vector getInternalASModels() { 526 return fASModels; 527 } 528 529 } 530 | Popular Tags |