|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.mxquery.xdmio.XDMSerializerSettings
public class XDMSerializerSettings
Serializer Setting, following the specification in http://www.w3.org/TR/xslt-xquery-serialization/
Field Summary | |
---|---|
static int |
NORMALIZATION_FORM_FULL
|
static int |
NORMALIZATION_FORM_NFC
|
static int |
NORMALIZATION_FORM_NFD
|
static int |
NORMALIZATION_FORM_NFKC
|
static int |
NORMALIZATION_FORM_NFKD
|
static int |
NORMALIZATION_FORM_NONE
|
static int |
OUTPUT_METHOD_HMTL
|
static int |
OUTPUT_METHOD_TEXT
|
static int |
OUTPUT_METHOD_XHMTL
|
static int |
OUTPUT_METHOD_XML
|
static int |
STANDALONE_NO
|
static int |
STANDALONE_OMIT
|
static int |
STANDALONE_YES
|
Constructor Summary | |
---|---|
XDMSerializerSettings()
Creates a serializer settings object with a default XML Output model |
|
XDMSerializerSettings(int outputMethod)
Creates a serializer settings object with the default setting for the given output method |
Method Summary | |
---|---|
Set |
getCdataSectionElements()
Get the set of element names whose text contents should be serialized as CDATA, not as regular strings |
java.util.Hashtable |
getCharacterMaps()
Get the list of character substitutions |
java.lang.String |
getDoctypePublic()
Get the public id of a doctype declaration |
java.lang.String |
getDoctypeRootElem()
Get the root element name of a doctype declaration |
java.lang.String |
getDoctypeSystem()
Get the system id of a doctype declaration |
java.lang.String |
getEncoding()
Get the encoding for the serialization |
java.lang.String |
getMediaType()
Get the media type setting |
int |
getNormalizationForm()
Get the unicode normalization format that should be used |
int |
getOutputMethod()
Get the output method |
int |
getStandalone()
Set the standalone parameter |
java.lang.String |
getVersion()
Gets the version parameter |
boolean |
isByteOrderMark()
Shall a byte order mark be generated |
boolean |
isEscapeURIAttributes()
Shall URI Attributes be escaped? |
boolean |
isIncludeContentType()
Shall the content type be included |
boolean |
isIndent()
Shall the output be indented? |
boolean |
isOmitXMLDeclaration()
Shall the XML declaration be omitted? |
boolean |
isSerializeStandaloneAttributes()
Can standalone/top-level attributes be serialized? |
boolean |
isUndeclarePrefixes()
Is it allowed to undeclare prefixes? |
void |
setByteOrderMark(boolean byteOrderMark)
Set the generation of a byte order mark |
void |
setCdataSectionElements(Set cdataSectionElements)
Provide the set of element names whose text contents should be serialized as CDATA, not as regular strings |
void |
setCharacterMaps(java.util.Hashtable characterMaps)
Set the list of character substitutions |
void |
setDoctypePublic(java.lang.String doctypePublic)
Set the public id of a doctype declaration |
void |
setDoctypeRootElem(java.lang.String rootElem)
Set the root element name of a doctype declaration This is not part of the official specification, but might simplify certain tasks |
void |
setDoctypeSystem(java.lang.String doctypeSystem)
Set the system id of a doctype declaration |
void |
setEncoding(java.lang.String encoding)
Set the encoding for the serialization |
void |
setEscapeURIAttributes(boolean escapeURIAttributes)
Set if URI Attributes will be escaped |
void |
setIncludeContentType(boolean includeContentType)
Set if the content type shall be included |
void |
setIndent(boolean indent)
Set if the output should be indented (= pretty-printed) |
void |
setMediaType(java.lang.String mediaType)
Set the media type setting |
void |
setNormalizationForm(int normalizationForm)
Set the unicode normalization format that should be used |
void |
setOmitXMLDeclaration(boolean omitXMLDeclaration)
Set if the XML declaration be omitted |
void |
setOutputMethod(int om)
Set the output method |
void |
setSerializeStandaloneAttributes(boolean serAttr)
Allow serializing standalone/top-level attributes This is not part of the spec, but might be useful for debugging/trace cases |
void |
setStandAlone(int standAlone)
Set the standalone parameter |
void |
setUndeclarePrefixes(boolean undeclarePrefixes)
Set if prefixes may be undeclared |
void |
setVersion(java.lang.String version)
Set the version parameter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OUTPUT_METHOD_XML
public static final int OUTPUT_METHOD_XHMTL
public static final int OUTPUT_METHOD_HMTL
public static final int OUTPUT_METHOD_TEXT
public static final int STANDALONE_OMIT
public static final int STANDALONE_YES
public static final int STANDALONE_NO
public static final int NORMALIZATION_FORM_NONE
public static final int NORMALIZATION_FORM_NFC
public static final int NORMALIZATION_FORM_NFD
public static final int NORMALIZATION_FORM_NFKC
public static final int NORMALIZATION_FORM_NFKD
public static final int NORMALIZATION_FORM_FULL
Constructor Detail |
---|
public XDMSerializerSettings()
public XDMSerializerSettings(int outputMethod) throws MXQueryException
outputMethod
-
MXQueryException
Method Detail |
---|
public boolean isByteOrderMark()
public void setByteOrderMark(boolean byteOrderMark)
byteOrderMark
- public Set getCdataSectionElements()
public void setCdataSectionElements(Set cdataSectionElements)
cdataSectionElements
- a Set of element namespublic java.lang.String getDoctypeSystem()
public void setDoctypeSystem(java.lang.String doctypeSystem)
doctypeSystem
- the System ID of a doctype declarationpublic java.lang.String getDoctypePublic()
public void setDoctypePublic(java.lang.String doctypePublic)
doctypePublic
- the Public ID of a doctype declarationpublic java.lang.String getDoctypeRootElem()
public void setDoctypeRootElem(java.lang.String rootElem)
rootElem
- the root element name of a doctype declarationpublic boolean isSerializeStandaloneAttributes()
public void setSerializeStandaloneAttributes(boolean serAttr)
serAttr
- true yes, false nopublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- a string values expressing the desired encodingpublic boolean isEscapeURIAttributes()
public void setEscapeURIAttributes(boolean escapeURIAttributes)
escapeURIAttributes
- true yes, false nopublic boolean isIncludeContentType()
public void setIncludeContentType(boolean includeContentType)
includeContentType
- true yes, false nopublic boolean isIndent()
public void setIndent(boolean indent)
indent
- true yes, false nopublic java.lang.String getMediaType()
public void setMediaType(java.lang.String mediaType)
mediaType
- a string specifying the MIME media typepublic int getOutputMethod()
public void setOutputMethod(int om)
om
- one of OUTPUT_METHOD_XML, OUTPUT_METHOD_XHTML, OUTPUT_METHOD_HTML, OUTPUT_METHOD_TEXTpublic int getNormalizationForm()
public void setNormalizationForm(int normalizationForm) throws MXQueryException
normalizationForm
- NORMALIZATION_FORM_NONE, NORMALIZATION_FORM_NFC, NORMALIZATION_FORM_NFD, NORMALIZATION_FORM_NFKC, NORMALIZATION_FORM_NFKD, NORMALIZATION_FORM_FULL
MXQueryException
public boolean isOmitXMLDeclaration()
public void setOmitXMLDeclaration(boolean omitXMLDeclaration)
omitXMLDeclaration
- true yes, false nopublic int getStandalone()
public void setStandAlone(int standAlone)
standAlone
- one of STANDALONE_OMIT, STANDALONE_YES, STANDALONE_NOpublic boolean isUndeclarePrefixes()
public void setUndeclarePrefixes(boolean undeclarePrefixes)
undeclarePrefixes
- true yes, false nopublic java.util.Hashtable getCharacterMaps()
public void setCharacterMaps(java.util.Hashtable characterMaps)
characterMaps
- a Hashtable containing (character -> replacement) mappingspublic java.lang.String getVersion()
public void setVersion(java.lang.String version) throws MXQueryException
version
-
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |