Skip to content

Commit

Permalink
#663 pr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cserhatit committed May 15, 2024
1 parent df19172 commit 19547d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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<String, Object> marshallerProperties) {
return marshalXML(obj, schemaPath, marshallerProperties);
public String marshalXML(Object obj, String schemaPath, Map<String, Object> marshallerProperties) throws BaseException {
return marshalXML(obj, schemaPath, marshallerProperties, (Class<?>) null);
}

/**
Expand All @@ -338,7 +340,7 @@ public String marshalXML(Object obj, String schemaPath, Map<String, Object> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 19547d3

Please sign in to comment.