diff --git a/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/JaxbTool.java b/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/JaxbTool.java index 21f4341be..95639f06e 100644 --- a/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/JaxbTool.java +++ b/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/JaxbTool.java @@ -296,7 +296,7 @@ public String marshalXML(Object obj, String schemaPath) throws BaseException { * path to XSD or catalog to validate on, if null, then validation is not executed * @return XML String * @param additionalClasses - * these classes will be added to the {@link JAXBContext} + * these classes will be added to the {@link JAXBContext}. Typically in case of 'Class not known to this context' errors. * @throws BaseException * if invalid input or cannot be marshalled */ @@ -322,9 +322,11 @@ public String marshalXML(Object obj, String schemaPath, Class... additionalCl * @param marshallerProperties * marshaller properties * @return XML String + * @throws BaseException + * if invalid input or cannot be marshalled */ - public String marshalXML(Object obj, String schemaPath, Map marshallerProperties) { - return marshalXML(obj, schemaPath, marshallerProperties); + public String marshalXML(Object obj, String schemaPath, Map marshallerProperties) throws BaseException { + return marshalXML(obj, schemaPath, marshallerProperties, (Class) null); } /** @@ -338,7 +340,7 @@ public String marshalXML(Object obj, String schemaPath, Map mars * @param marshallerProperties * marshaller properties * @param additionalClasses - * these classes will be added to the {@link JAXBContext} + * these classes will be added to the {@link JAXBContext}. Typically in case of 'Class not known to this context' errors. * @return XML String * @throws BaseException * if invalid input or cannot be marshalled diff --git a/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/utils/XsdHelper.java b/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/utils/XsdHelper.java index f6602c61d..57c3b48d4 100644 --- a/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/utils/XsdHelper.java +++ b/coffee-rest/src/main/java/hu/icellmobilsoft/coffee/rest/validation/xml/utils/XsdHelper.java @@ -72,7 +72,7 @@ public XsdHelper() { /** * {@inheritDoc} * - * Létrehoz egy osztályhoz egy JAXBContext-et, cache-eli a választ. + * Creates and caches JAXBContext for the class */ @Override public JAXBContext getJAXBContext(Class forClass) throws JAXBException, BaseException { @@ -92,7 +92,7 @@ public JAXBContext getJAXBContext(Class forClass) throws JAXBException, BaseE /** * {@inheritDoc} * - * Létrehoz egy osztályhoz egy több classból álló JAXBContext-et, cache-eli a választ. + * Creates and caches JAXBContext for the classes */ @Override public JAXBContext getJAXBContext(Class... forClasses) throws JAXBException, BaseException { @@ -112,7 +112,7 @@ public JAXBContext getJAXBContext(Class... forClasses) throws JAXBException, /** * {@inheritDoc} * - * Létrehoz a megadott XSD-hez egy Schema-t, cache-eli a választ. + * Creates and caches a {@link Schema} for the given XSD */ @Override public Schema getSchema(String xsd, LSResourceResolver lsResourceResolver) throws BaseException, SAXException {