1 38 39 package com.sun.xml.fastinfoset.stax.events; 40 41 import javax.xml.stream.events.EntityDeclaration; 42 import javax.xml.stream.XMLStreamConstants; 43 44 45 public class EntityDeclarationImpl extends EventBase implements EntityDeclaration { 46 private String _publicId; 47 private String _systemId; 48 private String _baseURI; 49 private String _entityName; 50 private String _replacement; 51 private String _notationName; 52 53 54 public EntityDeclarationImpl() { 55 init(); 56 } 57 58 public EntityDeclarationImpl(String entityName , String replacement){ 59 init(); 60 _entityName = entityName; 61 _replacement = replacement; 62 } 63 64 68 public String getPublicId(){ 69 return _publicId; 70 } 71 72 76 public String getSystemId(){ 77 return _systemId; 78 } 79 80 84 public String getName(){ 85 return _entityName; 86 } 87 88 92 public String getNotationName() { 93 return _notationName; 94 } 95 96 102 public String getReplacementText() { 103 return _replacement; 104 } 105 106 111 public String getBaseURI() { 112 return _baseURI; 113 } 114 115 public void setName(String entityName){ 116 _entityName = entityName; 117 } 118 119 public void setReplacementText(String replacement){ 120 _replacement = replacement; 121 } 122 123 public void setNotationName(String notationName){ 124 _notationName = notationName; 125 } 126 127 protected void init(){ 128 setEventType(ENTITY_DECLARATION); 129 } 130 } 131 | Popular Tags |