protected void checkIdRefs() throws XMLStreamException { /* 02-Oct-2004, TSa: Now we can also check that all id references * pointed to ids that actually are defined */ if (mIdMap != null) { ElementId ref = mIdMap.getFirstUndefined(); if (ref != null) { // problem! reportValidationProblem("Undefined id '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'", ref.getLocation()); } } }
public void validationCompleted(boolean eod) throws XMLStreamException { /* Ok, so, we should verify that there are no undefined * IDREF/IDREFS references. But only if we hit EOF, not * if validation was cancelled. */ if (eod) { if (mIdDefs != null) { ElementId ref = mIdDefs.getFirstUndefined(); if (ref != null) { // problem! String msg = "Undefined ID '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'"; reportError(msg, ref.getLocation()); } } } }
protected void checkIdRefs() throws XMLStreamException { /* 02-Oct-2004, TSa: Now we can also check that all id references * pointed to ids that actually are defined */ if (mIdMap != null) { ElementId ref = mIdMap.getFirstUndefined(); if (ref != null) { // problem! reportValidationProblem("Undefined id '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'", ref.getLocation()); } } }
protected void checkIdRefs() throws XMLStreamException { /* 02-Oct-2004, TSa: Now we can also check that all id references * pointed to ids that actually are defined */ if (mIdMap != null) { ElementId ref = mIdMap.getFirstUndefined(); if (ref != null) { // problem! reportValidationProblem("Undefined id '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'", ref.getLocation()); } } }
protected void checkIdRefs() throws XMLStreamException { /* 02-Oct-2004, TSa: Now we can also check that all id references * pointed to ids that actually are defined */ if (mIdMap != null) { ElementId ref = mIdMap.getFirstUndefined(); if (ref != null) { // problem! reportValidationProblem("Undefined id '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'", ref.getLocation()); } } }
protected void checkIdRefs() throws XMLStreamException { /* 02-Oct-2004, TSa: Now we can also check that all id references * pointed to ids that actually are defined */ if (mIdMap != null) { ElementId ref = mIdMap.getFirstUndefined(); if (ref != null) { // problem! reportValidationProblem("Undefined id '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'", ref.getLocation()); } } }
@Override public void validationCompleted(boolean eod) throws XMLStreamException { /* Ok, so, we should verify that there are no undefined * IDREF/IDREFS references. But only if we hit EOF, not * if validation was cancelled. */ if (eod) { if (mIdDefs != null) { ElementId ref = mIdDefs.getFirstUndefined(); if (ref != null) { // problem! String msg = "Undefined ID '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'"; reportError(msg, ref.getLocation()); } } } }
@Override public void validationCompleted(boolean eod) throws XMLStreamException { /* Ok, so, we should verify that there are no undefined * IDREF/IDREFS references. But only if we hit EOF, not * if validation was cancelled. */ if (eod) { if (mIdDefs != null) { ElementId ref = mIdDefs.getFirstUndefined(); if (ref != null) { // problem! String msg = "Undefined ID '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'"; reportError(msg, ref.getLocation()); } } } }
public void validationCompleted(boolean eod) throws XMLStreamException { /* Ok, so, we should verify that there are no undefined * IDREF/IDREFS references. But only if we hit EOF, not * if validation was cancelled. */ if (eod) { if (mIdDefs != null) { ElementId ref = mIdDefs.getFirstUndefined(); if (ref != null) { // problem! String msg = "Undefined ID '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'"; reportError(msg, ref.getLocation()); } } } }
@Override public void validationCompleted(boolean eod) throws XMLStreamException { /* Ok, so, we should verify that there are no undefined * IDREF/IDREFS references. But only if we hit EOF, not * if validation was cancelled. */ if (eod) { if (mIdDefs != null) { ElementId ref = mIdDefs.getFirstUndefined(); if (ref != null) { // problem! String msg = "Undefined ID '"+ref.getId() +"': referenced from element <" +ref.getElemName()+">, attribute '" +ref.getAttrName()+"'"; reportError(msg, ref.getLocation()); } } } }