/* Ok, event needs to know its exact starting point (opening '<'
* char), let's get that info now (note: data has been preserved
* earlier)
*/
Location evtLoc = getStartLocation();
NotationDeclaration nd = new WNotationDeclaration(evtLoc, id, pubId, sysId, baseURL);
// Any definitions from the internal subset?
if (mPredefdNotations != null) {
NotationDeclaration oldDecl = (NotationDeclaration) mPredefdNotations.get(id);
if (oldDecl != null) { // oops, a problem!
DTDSubsetImpl.throwNotationException(oldDecl, nd);
}
}
HashMap m = mNotations;
if (m == null) {
/* Let's try to get insert-ordered Map, to be able to
* report redefinition problems in proper order when validating
* subset compatibility
*/
mNotations = m = new LinkedHashMap();
} else {
NotationDeclaration oldDecl = (NotationDeclaration) m.get(id);
if (oldDecl != null) { // oops, a problem!
DTDSubsetImpl.throwNotationException(oldDecl, nd);
}
}
// Does this resolve a dangling reference?