@Override public void error(SAXParseException e) throws SAXException { error(toXMIException(e)); }
@Override public void error(SAXParseException e) throws SAXException { error(toXMIException(e)); }
@Override public void error (SAXParseException e) throws SAXException { XMIException xmi = new XMIException(e.getException() == null ? e : e.getException(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber()); handler.error(xmi); }
@Override public void error (SAXParseException e) throws SAXException { XMIException xmi = new XMIException(e.getException() == null ? e : e.getException(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber()); handler.error(xmi); }
/** * Returns true if the xsi:nil attribute is in the list of attributes. */ protected boolean isNull() { String value = isNamespaceAware ? attribs.getValue(ExtendedMetaData.XSI_URI, XMLResource.NIL) : attribs.getValue(NIL_ATTRIB); if (value != null) { try { return XMLTypeFactory.eINSTANCE.createBoolean(value); } catch (RuntimeException exception) { error(new XMIException(exception)); } } return false; }
/** * Set the values for the given multi-valued forward reference. */ protected void setFeatureValues(ManyReference reference) { List<XMIException> xmiExceptions = helper.setManyReference(reference, getLocation()); if (xmiExceptions != null) { for (XMIException exception : xmiExceptions) { error(exception); } } }
/** * Returns true if the xsi:nil attribute is in the list of attributes. */ protected boolean isNull() { String value = isNamespaceAware ? attribs.getValue(ExtendedMetaData.XSI_URI, XMLResource.NIL) : attribs.getValue(NIL_ATTRIB); if (value != null) { try { return XMLTypeFactory.eINSTANCE.createBoolean(value); } catch (RuntimeException exception) { error(new XMIException(exception)); } } return false; }
/** * Set the values for the given multi-valued forward reference. */ protected void setFeatureValues(ManyReference reference) { List<XMIException> xmiExceptions = helper.setManyReference(reference, getLocation()); if (xmiExceptions != null) { for (XMIException exception : xmiExceptions) { error(exception); } } }
protected void validateCreateObjectFromFactory(EFactory factory, String typeName, EObject newObject) { if (newObject == null) { error (new ClassNotFoundException (typeName, factory, getLocation(), getLineNumber(), getColumnNumber())); } }
protected void validateCreateObjectFromFactory(EFactory factory, String typeName, EObject newObject) { if (newObject == null) { error (new ClassNotFoundException (typeName, factory, getLocation(), getLineNumber(), getColumnNumber())); } }
protected void reportUnknownFeature(String prefix, String name, boolean isElement, EObject peekObject, String value) { if (isElement) { types.push(ERROR_TYPE); } error (new FeatureNotFoundException (name, peekObject, getLocation(), getLineNumber(), getColumnNumber())); }
protected void reportUnknownFeature(String prefix, String name, boolean isElement, EObject peekObject, String value) { if (isElement) { types.push(ERROR_TYPE); } error (new FeatureNotFoundException (name, peekObject, getLocation(), getLineNumber(), getColumnNumber())); }
/** * Set the given feature of the given object to the given value. */ protected void setFeatureValue(EObject object, EStructuralFeature feature, Object value, int position) { try { helper.setValue(object, feature, value, position); } catch (RuntimeException e) { error (new IllegalValueException (object, feature, value, e, getLocation(), getLineNumber(), getColumnNumber())); } }
/** * Set the given feature of the given object to the given value. */ protected void setFeatureValue(EObject object, EStructuralFeature feature, Object value, int position) { try { helper.setValue(object, feature, value, position); } catch (RuntimeException e) { error (new IllegalValueException (object, feature, value, e, getLocation(), getLineNumber(), getColumnNumber())); } }
error (new PackageNotFoundException (uriString,
if (ePackage == null) error(new PackageNotFoundException(null, getLocation(), getLineNumber(), getColumnNumber()));
if (ePackage == null) error(new PackageNotFoundException(null, getLocation(), getLineNumber(), getColumnNumber()));
if (ePackage == null) error (new PackageNotFoundException (null,
if (ePackage == null) error (new PackageNotFoundException (null,
error (new FeatureNotFoundException (name,