public class FOMDocument<T extends Element> extends org.apache.axiom.om.impl.llom.OMDocumentImpl implements Document<T>
| Constructor and Description |
|---|
FOMDocument() |
| Modifier and Type | Method and Description |
|---|---|
<X extends Base> |
addComment(java.lang.String value)
Add an XML comment to this Base
|
Document<T> |
addProcessingInstruction(java.lang.String target,
java.lang.String value)
Add a processing instruction to the document
|
Document<T> |
addStylesheet(java.lang.String href,
java.lang.String media)
Add a xml-stylesheet processing instruction to the document
|
java.lang.Object |
clone()
Clone this Base
|
<X extends Base> |
complete()
Ensure that the underlying streams are fully parsed.
|
IRI |
getBaseUri()
Returns the Base URI of the document.
|
java.lang.String |
getCharset()
Gets the charset used for this document
|
javax.activation.MimeType |
getContentType()
Returns the content type of this document
|
WriterOptions |
getDefaultWriterOptions()
Get the default WriterOptions for this object
|
EntityTag |
getEntityTag()
Return the entity tag for this document
|
Factory |
getFactory()
Get the Factory used to create this Base
|
java.lang.String |
getLanguage()
Get the language
|
Lang |
getLanguageTag()
Returns the value of the xml:lang attribute as a Lang object
|
java.util.Date |
getLastModified()
Returns the last modified date for this document
|
boolean |
getMustPreserveWhitespace()
Return true if insignificant whitespace must be preserved
|
java.lang.String[] |
getProcessingInstruction(java.lang.String target)
Get the values for the given processing instruction
|
T |
getRoot()
Returns the root element of the document (equivalent to DOM's getDocumentElement)
|
java.lang.String |
getSlug()
Get the slug for this document
|
XmlUtil.XMLVersion |
getXmlVersion()
Get the XMLVersion used by this document
|
Document<T> |
setBaseUri(java.lang.String base)
Sets the Base URI of the document.
|
Document<T> |
setCharset(java.lang.String charset)
Sets the charset used for this document
|
Document<T> |
setContentType(java.lang.String contentType)
Sets the content type for this document
|
Document<T> |
setEntityTag(EntityTag tag)
Set the entity tag for this document
|
Document<T> |
setEntityTag(java.lang.String tag)
Set the entity tag for this document
|
Document<T> |
setLanguage(java.lang.String lang)
set the base language
|
Document<T> |
setLastModified(java.util.Date lastModified)
Sets the last modified date for this document
|
Document<T> |
setMustPreserveWhitespace(boolean preserve)
Set to true to preserve insignificant whitespace
|
Document<T> |
setRoot(T root)
Sets the root element of the document
|
Document<T> |
setSlug(java.lang.String slug)
Set the slug for this document
|
java.lang.String |
toFormattedString() |
void |
writeTo(java.io.OutputStream out)
Serializes the model component out to the specified stream
|
void |
writeTo(java.io.OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream
|
void |
writeTo(java.lang.String writer,
java.io.OutputStream out)
Serializes the model component out to the specified stream using the given Abdera writer
|
void |
writeTo(java.lang.String writer,
java.io.OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream using the
given abdera writer
|
void |
writeTo(java.lang.String writer,
java.io.Writer out)
Serializes the model component out to the specified java.io.Writer using the
given Abdera writer
|
void |
writeTo(java.lang.String writer,
java.io.Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer using the
given abdera writer
|
void |
writeTo(java.io.Writer writer)
Serializes the model component out to the specified writer
|
void |
writeTo(Writer writer,
java.io.OutputStream out)
Serializes the model component out to the specified stream using the given Abdera writer
|
void |
writeTo(Writer writer,
java.io.OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream using the
given abdera writer
|
void |
writeTo(Writer writer,
java.io.Writer out)
Serializes the model component out to the specified java.io.Writer using the
given Abdera writer
|
void |
writeTo(java.io.Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer
|
void |
writeTo(Writer writer,
java.io.Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer using the
given abdera writer
|
addChild, buildNext, getCharsetEncoding, getChildren, getChildrenWithName, getFirstChildWithName, getFirstOMChild, getOMDocumentElement, getOMFactory, getXMLVersion, internalSerialize, internalSerialize, internalSerializeAndConsume, internalSerializeAndConsume, isComplete, isStandalone, serialize, serialize, serializeAndConsume, serializeAndConsume, setCharsetEncoding, setComplete, setFirstChild, setOMDocumentElement, setStandalone, setXMLVersionpublic T getRoot()
Documentpublic Document<T> setRoot(T root)
Documentpublic IRI getBaseUri()
DocumentgetBaseUri in interface Document<T extends Element>public Document<T> setBaseUri(java.lang.String base)
DocumentsetBaseUri in interface Document<T extends Element>base - The Base URIpublic void writeTo(java.io.OutputStream out,
WriterOptions options)
throws java.io.IOException
Basepublic void writeTo(java.io.Writer out,
WriterOptions options)
throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.OutputStream out) throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.Writer out) throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.OutputStream out, WriterOptions options) throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.Writer out, WriterOptions options) throws java.io.IOException
Basepublic void writeTo(java.io.OutputStream out)
throws java.io.IOException
Basepublic void writeTo(java.io.Writer writer)
throws java.io.IOException
Basepublic javax.activation.MimeType getContentType()
DocumentgetContentType in interface Document<T extends Element>public Document<T> setContentType(java.lang.String contentType)
DocumentsetContentType in interface Document<T extends Element>contentType - The content type of documentpublic java.util.Date getLastModified()
DocumentgetLastModified in interface Document<T extends Element>public Document<T> setLastModified(java.util.Date lastModified)
DocumentsetLastModified in interface Document<T extends Element>lastModified - the last-modified datepublic java.lang.Object clone()
Basepublic java.lang.String getCharset()
DocumentgetCharset in interface Document<T extends Element>public Document<T> setCharset(java.lang.String charset)
DocumentsetCharset in interface Document<T extends Element>charset - The character encoding to usepublic Factory getFactory()
BasegetFactory in interface Basepublic java.lang.String[] getProcessingInstruction(java.lang.String target)
DocumentgetProcessingInstruction in interface Document<T extends Element>public Document<T> addProcessingInstruction(java.lang.String target, java.lang.String value)
DocumentaddProcessingInstruction in interface Document<T extends Element>target - The processing instruction targetvalue - The processing instruction valuepublic Document<T> addStylesheet(java.lang.String href, java.lang.String media)
DocumentaddStylesheet in interface Document<T extends Element>href - The href of the stylesheetmedia - The media target for this stylesheet or null if nonepublic <X extends Base> X addComment(java.lang.String value)
BaseaddComment in interface Basevalue - The text value of the commentpublic EntityTag getEntityTag()
DocumentgetEntityTag in interface Document<T extends Element>public Document<T> setEntityTag(EntityTag tag)
DocumentsetEntityTag in interface Document<T extends Element>public Document<T> setEntityTag(java.lang.String tag)
DocumentsetEntityTag in interface Document<T extends Element>public java.lang.String getLanguage()
DocumentgetLanguage in interface Document<T extends Element>public Lang getLanguageTag()
DocumentgetLanguageTag in interface Document<T extends Element>public Document<T> setLanguage(java.lang.String lang)
DocumentsetLanguage in interface Document<T extends Element>public java.lang.String getSlug()
Documentpublic Document<T> setSlug(java.lang.String slug)
Documentpublic boolean getMustPreserveWhitespace()
DocumentgetMustPreserveWhitespace in interface Document<T extends Element>public Document<T> setMustPreserveWhitespace(boolean preserve)
DocumentsetMustPreserveWhitespace in interface Document<T extends Element>public XmlUtil.XMLVersion getXmlVersion()
DocumentgetXmlVersion in interface Document<T extends Element>public WriterOptions getDefaultWriterOptions()
BasegetDefaultWriterOptions in interface Basepublic <X extends Base> X complete()
public void writeTo(java.lang.String writer,
java.io.OutputStream out)
throws java.io.IOException
Basepublic void writeTo(java.lang.String writer,
java.io.Writer out)
throws java.io.IOException
Basepublic void writeTo(java.lang.String writer,
java.io.OutputStream out,
WriterOptions options)
throws java.io.IOException
Basepublic void writeTo(java.lang.String writer,
java.io.Writer out,
WriterOptions options)
throws java.io.IOException
Basepublic java.lang.String toFormattedString()
Copyright © 2010 - 2020 Adobe. All Rights Reserved