{
}
public void error(SAXParseException e)
{
throw new JBossXBRuntimeException("Error", e);
}
public void fatalError(SAXParseException e)
{
throw new JBossXBRuntimeException("Fatal error", e);
}
public InputSource resolveEntity(String publicId, String systemId)
{
if(resolver != null)
{
try
{
return resolver.resolveEntity(publicId, systemId);
}
catch(Exception e)
{
throw new IllegalStateException("Failed to resolveEntity " + systemId + ": " + systemId);
}
}
else
{
return new InputSource(new StringReader(xsd));
}
}
}
);
}
catch(Exception e)
{
throw new JBossXBRuntimeException("Parsing failed.", e);
}
}