Uses of Class
org.apache.juneau.xml.XmlWriter
Packages that use XmlWriter
-
Uses of XmlWriter in org.apache.juneau.html
Subclasses of XmlWriter in org.apache.juneau.htmlModifier and TypeClassDescriptionclass
Specialized writer for serializing HTML.class
Utility class for creating custom HTML.Methods in org.apache.juneau.html with parameters of type XmlWriterModifier and TypeMethodDescriptionprotected XmlSerializerSession.ContentResult
HtmlSerializerSession.serializeAnything
(XmlWriter out, Object o, ClassMeta<?> eType, String keyName, String elementName, Namespace elementNamespace, boolean addNamespaceUris, XmlFormat format, boolean isMixed, boolean preserveWhitespace, BeanPropertyMeta pMeta) protected XmlSerializerSession.ContentResult
HtmlSerializerSession.serializeAnything
(XmlWriter out, Object o, ClassMeta<?> eType, String name, BeanPropertyMeta pMeta, int xIndent, boolean isRoot, boolean nlIfElement) Serialize the specified object to the specified writer. -
Uses of XmlWriter in org.apache.juneau.xml
Methods in org.apache.juneau.xml that return XmlWriterModifier and TypeMethodDescriptionXmlWriter.append
(char c) XmlWriter.append
(int indent, char c) Shortcut forattr(
null , name, value,false );Shortcut forattr(
null , name, value,false );Shortcut forattr(ns, name, value,
false );Writes an attribute to the output:ns:name ='value' Same asattr(String, String, Object)
, except pass in aNamespace
object for the namespace.Append an attribute with a URI value.Writes an attribute with a URI value to the output:ns:name ='uri-value' Writes an attribute with a URI value to the output:ns:name ='uri-value' XmlWriter.ceTag()
Closes an empty tag.XmlWriter.cr
(int depth) XmlWriter.cre
(int depth) XmlWriter.cTag()
Closes a tag.Shortcut fori(indent).eTag(
null , name,false );Shortcut fori(indent).eTag(ns, name,
false );Shortcut fori(indent).eTag(ns, name, needsEncoding); Shortcut foreTag(
null , name,false );Shortcut foreTag(ns, name,
false );Writes an end tag to the output:</ns:name> final XmlWriter
XmlSerializerSession.getXmlWriter
(SerializerPipe out) Converts the specified output target object to anXmlWriter
.XmlWriter.i
(int indent) XmlWriter.ie
(int indent) XmlWriter.nl
(int indent) Writes an open-ended attribute to the output:ns:name =Writes an open-ended attribute to the output:ns:name =Shortcut fori(indent).oTag(
null , name,false );Shortcut fori(indent).oTag(ns, name,
false );Shortcut fori(indent).oTag(ns, name, needsEncoding); Shortcut foroTag(
null , name,false );Shortcut foroTag(ns, name,
false );Writes an opening tag to the output:<ns:name XmlWriter.q()
XmlWriter.s()
Shortcut fori(indent).sTag(
null , name,false );Shortcut fori(indent).sTag(ns, name,
false );Shortcut fori(indent).sTag(ns, name, needsEncoding); Shortcut forsTag(
null , name,false );Shortcut forsTag(ns, name,
false );Writes a start tag to the output:<ns:name> Shortcut fori(indent).tag(
null , name,false );Shortcut fori(indent).tag(ns, name,
false );Shortcut fori(indent).tag(ns, name, needsEncoding); Shortcut fortag(
null , name,false );Shortcut fortag(ns, name,
false );Writes a closed tag to the output:<ns:name/> Shortcut for callingtext(o,
false );Serializes and encodes the specified object as valid XML text.Same astext(Object)
but treats the value as a URL to resolved then serialized.XmlWriter.w
(char c) Methods in org.apache.juneau.xml with parameters of type XmlWriterModifier and TypeMethodDescriptionprotected XmlSerializerSession.ContentResult
XmlSerializerSession.serializeAnything
(XmlWriter out, Object o, ClassMeta<?> eType, String keyName, String elementName, Namespace elementNamespace, boolean addNamespaceUris, XmlFormat format, boolean isMixedOrText, boolean preserveWhitespace, BeanPropertyMeta pMeta) Workhorse method.Constructors in org.apache.juneau.xml with parameters of type XmlWriter