public class DtdMarshaller extends AbstractMarshaller
AbstractMarshaller.ClassMapping, AbstractMarshaller.ContentHandlerAdaptor, AbstractMarshaller.FieldToWildcardMapping, AbstractMarshaller.Stack, AbstractMarshaller.StackImplMarshaller.FACTORYcls2TypeMap, encoding, field2WildcardMap, nsRegistry, rootQNames, versionENCODING, PROP_MARSHALLER, PROP_OUTPUT_INDENTATION, PROP_OUTPUT_XML_VERSION, VERSION| Constructor and Description |
|---|
DtdMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String prefix,
String localName,
String type,
String value) |
void |
addBinding(String elementName,
TypeBinding binding) |
void |
declareNamespace(String prefix,
String uri)
Defines a namespace.
|
protected static com.wutka.dtd.DTDElement[] |
getRootList(com.wutka.dtd.DTD dtd) |
void |
mapPublicIdToSystemId(String publicId,
String systemId) |
void |
marshal(Reader dtdReader,
ObjectModelProvider provider,
Object document,
Writer writer) |
void |
marshal(String schemaUri,
ObjectModelProvider provider,
Object root,
Writer writer) |
protected static void |
removeElements(Hashtable<String,com.wutka.dtd.DTDElement> h,
com.wutka.dtd.DTD dtd,
com.wutka.dtd.DTDItem item) |
addRootElement, addRootElement, declareNs, declareNs, declareXsiType, getClassMapping, getPrefix, getProperty, mapClassToGlobalElement, mapClassToGlobalType, mapClassToXsiType, mapFieldToWildcard, prefixLocalName, propertyIsTrueOrNotSet, removePrefixMapping, setEncoding, setProperty, setVersion, writeXmlVersionpublic void addBinding(String elementName, TypeBinding binding)
public void mapPublicIdToSystemId(String publicId, String systemId)
mapPublicIdToSystemId in interface MarshallermapPublicIdToSystemId in class AbstractMarshallerpublic void declareNamespace(String prefix, String uri)
AbstractMarshallerIf prefix argument is null or is an empty string then
the passed in URI will be used for the default namespace, i.e. xmlns.
Otherwise, the declaration will follow the format xmlns:prefix=uri.
If the namespace with the given prefix was already declared, its value is overwritten.
declareNamespace in class AbstractMarshallerprefix - the prefix for the namespace to declare (can be null or empty string)uri - the URI of the namespace.public void addAttribute(String prefix, String localName, String type, String value)
addAttribute in class AbstractMarshallerpublic void marshal(String schemaUri, ObjectModelProvider provider, Object root, Writer writer) throws IOException, ParserConfigurationException, SAXException
public void marshal(Reader dtdReader, ObjectModelProvider provider, Object document, Writer writer) throws IOException, SAXException
IOExceptionSAXExceptionprotected static com.wutka.dtd.DTDElement[] getRootList(com.wutka.dtd.DTD dtd)
dtd - the DTD object modelCopyright © 2016 JBoss by Red Hat. All rights reserved.