1 38 39 package com.sun.xml.fastinfoset.stax.events; 40 41 import javax.xml.stream.events.DTD; 42 import javax.xml.stream.XMLStreamConstants; 43 import java.util.List ; 44 45 48 public class DTDEvent extends EventBase implements DTD{ 49 50 private String _dtd; 51 private List _notations; 52 private List _entities; 53 54 55 public DTDEvent() { 56 setEventType(DTD); 57 } 58 59 public DTDEvent(String dtd){ 60 setEventType(DTD); 61 _dtd = dtd; 62 } 63 64 72 public String getDocumentTypeDeclaration() { 73 return _dtd; 74 } 75 public void setDTD(String dtd){ 76 _dtd = dtd; 77 } 78 79 86 public List getEntities() { 87 return _entities; 88 } 89 90 96 public List getNotations() { 97 return _notations; 98 } 99 100 105 public Object getProcessedDTD() { 106 return null; 107 } 108 109 public void setEntities(List entites){ 110 _entities = entites; 111 } 112 113 public void setNotations(List notations){ 114 _notations = notations; 115 } 116 117 public String toString(){ 118 return _dtd ; 119 } 120 } 121 | Popular Tags |