This class is an implementation of the XMLEntityDescription interface which describes the properties of an entity.
532533534535536537538539540541542
break; } } } Entity entity = new ExternalEntity(name, new XMLEntityDescriptionImpl(name, publicId, literalSystemId, baseSystemId, expandSystemId(literalSystemId, baseSystemId, false)), null, fInExternalSubset); fEntities.put(name, entity); } else{ if(fWarnDuplicateEntityDef){
601602603604605606607608609610611
public void addUnparsedEntity(String name, String publicId, String systemId, String baseSystemId, String notation) { if (!fEntities.containsKey(name)) { Entity entity = new ExternalEntity(name, new XMLEntityDescriptionImpl(name, publicId, systemId, baseSystemId, null), notation, fInExternalSubset); fEntities.put(name, entity); } else{ if(fWarnDuplicateEntityDef){
496497498499500501502503504505506
565566567568569570571572573574575
180181182183184185186187188189190
continue; paramString4 = localScannedEntity.entityLocation.getExpandedSystemId(); break; } } ExternalEntity localExternalEntity = new ExternalEntity(paramString1, new XMLEntityDescriptionImpl(paramString1, paramString2, paramString3, paramString4, expandSystemId(paramString3, paramString4, false)), null, this.fInExternalSubset); this.fEntities.put(paramString1, localExternalEntity); } else if (this.fWarnDuplicateEntityDef) { this.fErrorReporter.reportError("http://www.w3.org/TR/1998/REC-xml-19980210", "MSG_DUPLICATE_ENTITY_DEFINITION", new Object[] { paramString1 }, 0);
209210211212213214215216217218219
public void addUnparsedEntity(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5) { if (!this.fEntities.containsKey(paramString1)) { ExternalEntity localExternalEntity = new ExternalEntity(paramString1, new XMLEntityDescriptionImpl(paramString1, paramString2, paramString3, paramString4, null), paramString5, this.fInExternalSubset); this.fEntities.put(paramString1, localExternalEntity); } else if (this.fWarnDuplicateEntityDef) { this.fErrorReporter.reportError("http://www.w3.org/TR/1998/REC-xml-19980210", "MSG_DUPLICATE_ENTITY_DEFINITION", new Object[] { paramString1 }, 0);