|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.siemens.ct.exi.helpers.DefaultEXIFactory
public class DefaultEXIFactory
This is the default implementation of an EXIFactory
class.
EXIFactory
Method Summary | |
---|---|
EXIFactory |
clone()
Returns a shallow copy of this EXI factory. |
EXIDecoder |
createEXIDecoder()
Returns an EXIDecoder |
EXIEncoder |
createEXIEncoder()
Returns an EXIEncoder |
org.xml.sax.XMLReader |
createEXIReader()
Returns an EXIReader |
EXIWriter |
createEXIWriter()
Returns an EXIWriter |
TypeDecoder |
createTypeDecoder()
Returns an EXI TypeDecoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues |
TypeEncoder |
createTypeEncoder()
Returns an EXI TypeEncoder according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues |
CodingMode |
getCodingMode()
Returns the currently used CodingMode . |
FidelityOptions |
getFidelityOptions()
Returns the fidelity options used by the EXI factory (e.g. preserving XML comments or DTDs). |
Grammar |
getGrammar()
Returns the currently used EXI Grammar . |
boolean |
isEXIBodyOnly()
|
boolean |
isFragment()
Returns whether we deal with a fragment |
boolean |
isSelfContainedElement(javax.xml.namespace.QName element)
Returns boolean value telling whether a certain element is encoded as selfContained fragment. |
static EXIFactory |
newInstance()
|
void |
setCodingMode(CodingMode codingMode)
Re-sets the coding mode used by the factory. |
void |
setDatatypeRepresentationMap(DatatypeRepresentation[] datatypeRepresentations)
By default, each typed value in an EXI stream is represented by the associated built-in EXI datatype representation. |
void |
setEXIBodyOnly(boolean exiBodyOnly)
Sets whether an EXI Body is preceded by an EXI Header. |
void |
setFidelityOptions(FidelityOptions fidelityOptions)
Sets the fidelity options used by the EXI factory (e.g. preserving XML comments or DTDs). |
void |
setFragment(boolean isFragment)
Informs the factory that we are dealing with an XML fragment instead of an XML document |
void |
setGrammar(Grammar grammar)
Sets the EXI Grammar used for coding. |
void |
setSelfContainedElements(javax.xml.namespace.QName[] scElements)
Self-contained elements may be read independently from the rest of the EXI body, allowing them to be indexed for random access. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static EXIFactory newInstance()
public void setFidelityOptions(FidelityOptions fidelityOptions)
EXIFactory
setFidelityOptions
in interface EXIFactory
fidelityOptions
- new fidelity optionsFidelityOptions
public FidelityOptions getFidelityOptions()
EXIFactory
getFidelityOptions
in interface EXIFactory
FidelityOptions
public void setDatatypeRepresentationMap(DatatypeRepresentation[] datatypeRepresentations)
EXIFactory
setDatatypeRepresentationMap
in interface EXIFactory
public void setSelfContainedElements(javax.xml.namespace.QName[] scElements)
EXIFactory
setSelfContainedElements
in interface EXIFactory
public boolean isSelfContainedElement(javax.xml.namespace.QName element)
EXIFactory
isSelfContainedElement
in interface EXIFactory
public void setGrammar(Grammar grammar)
EXIFactory
Grammar
used for coding.
setGrammar
in interface EXIFactory
public Grammar getGrammar()
EXIFactory
Grammar
. By default a
SchemaLessGrammar
is used.
getGrammar
in interface EXIFactory
public void setFragment(boolean isFragment)
EXIFactory
setFragment
in interface EXIFactory
public boolean isFragment()
EXIFactory
isFragment
in interface EXIFactory
public void setCodingMode(CodingMode codingMode)
EXIFactory
setCodingMode
in interface EXIFactory
public CodingMode getCodingMode()
EXIFactory
CodingMode
. By default BIT_PACKED
is used.
getCodingMode
in interface EXIFactory
public void setEXIBodyOnly(boolean exiBodyOnly)
EXIFactory
setEXIBodyOnly
in interface EXIFactory
public boolean isEXIBodyOnly()
isEXIBodyOnly
in interface EXIFactory
public EXIEncoder createEXIEncoder()
EXIFactory
EXIEncoder
createEXIEncoder
in interface EXIFactory
public EXIWriter createEXIWriter()
EXIFactory
EXIWriter
createEXIWriter
in interface EXIFactory
public EXIDecoder createEXIDecoder()
EXIFactory
EXIDecoder
createEXIDecoder
in interface EXIFactory
public org.xml.sax.XMLReader createEXIReader()
EXIFactory
EXIReader
createEXIReader
in interface EXIFactory
public TypeEncoder createTypeEncoder()
EXIFactory
TypeEncoder
according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
createTypeEncoder
in interface EXIFactory
TypeEncoder
public TypeDecoder createTypeDecoder()
EXIFactory
TypeDecoder
according coding options such as
schema-informed or schema-less grammar and options like
Preserve.LexicalValues
createTypeDecoder
in interface EXIFactory
TypeDecoder
public EXIFactory clone()
EXIFactory
clone
in interface EXIFactory
clone
in class java.lang.Object
|
EXIficient | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |