Package google.registry.xml
Class XmlFragmentMarshaller
java.lang.Object
google.registry.xml.XmlFragmentMarshaller
JAXB marshaller for building pieces of XML documents in a single thread.
-
Method Summary
Modifier and TypeMethodDescriptionmarshal
(jakarta.xml.bind.JAXBElement<?> element) Turns an individual JAXB element into an XML fragment string.marshal
(jakarta.xml.bind.JAXBElement<?> element, ValidationMode validationMode) Turns an individual JAXB element into an XML fragment string using the given validation mode.marshalLenient
(jakarta.xml.bind.JAXBElement<?> element) Turns an individual JAXB element into an XML fragment string.
-
Method Details
-
marshal
public String marshal(jakarta.xml.bind.JAXBElement<?> element) throws jakarta.xml.bind.MarshalException Turns an individual JAXB element into an XML fragment string.- Throws:
jakarta.xml.bind.MarshalException
- if schema validation failed
-
marshalLenient
Turns an individual JAXB element into an XML fragment string. -
marshal
public String marshal(jakarta.xml.bind.JAXBElement<?> element, ValidationMode validationMode) throws jakarta.xml.bind.MarshalException Turns an individual JAXB element into an XML fragment string using the given validation mode.- Throws:
jakarta.xml.bind.MarshalException
- if schema validation failed
-