Package org.apache.uima.cas.impl
Class CasSerializerSupport.CasSerializerSupportSerialize
- java.lang.Object
-
- org.apache.uima.cas.impl.CasSerializerSupport.CasSerializerSupportSerialize
-
- Enclosing class:
- CasSerializerSupport
public abstract static class CasSerializerSupport.CasSerializerSupportSerialize extends java.lang.Object
Methods used to serialize items Separate implementations for JSON and Xmi
-
-
Constructor Summary
Constructors Constructor Description CasSerializerSupportSerialize()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract void
addNameSpace(XmlElementName xmlElementName)
protected abstract void
checkForNameCollision(XmlElementName xmlElementName)
protected abstract void
initializeNamespaces()
protected abstract XmlElementName
uimaTypeName2XmiElementName(java.lang.String typeName)
protected abstract void
writeArrays(int addr, int typeCode, int typeClass)
protected abstract void
writeEndOfIndividualFs()
protected abstract void
writeEndOfSerialization()
protected abstract void
writeFeatureStructures(int elementCount)
protected abstract void
writeFs(int addr, int typeCode)
protected abstract void
writeFsRef(int addr)
protected abstract boolean
writeFsStart(int addr, int typeCode)
protected abstract void
writeListsAsIndividualFSs(int addr, int typeCode)
protected abstract void
writeView(int sofaAddr, int[] members)
protected abstract void
writeView(int sofaAddr, int[] added, int[] deleted, int[] reindexed)
protected abstract void
writeViews()
-
-
-
Method Detail
-
initializeNamespaces
protected abstract void initializeNamespaces()
-
checkForNameCollision
protected abstract void checkForNameCollision(XmlElementName xmlElementName)
-
addNameSpace
protected abstract void addNameSpace(XmlElementName xmlElementName)
-
uimaTypeName2XmiElementName
protected abstract XmlElementName uimaTypeName2XmiElementName(java.lang.String typeName)
-
writeFeatureStructures
protected abstract void writeFeatureStructures(int elementCount) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeViews
protected abstract void writeViews() throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeView
protected abstract void writeView(int sofaAddr, int[] members) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeView
protected abstract void writeView(int sofaAddr, int[] added, int[] deleted, int[] reindexed) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeFsStart
protected abstract boolean writeFsStart(int addr, int typeCode) throws java.lang.Exception
- Parameters:
addr
- -typeCode
- -- Returns:
- true if writing out referenced items (JSON)
- Throws:
java.lang.Exception
- -
-
writeFs
protected abstract void writeFs(int addr, int typeCode) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeListsAsIndividualFSs
protected abstract void writeListsAsIndividualFSs(int addr, int typeCode) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeArrays
protected abstract void writeArrays(int addr, int typeCode, int typeClass) throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeEndOfIndividualFs
protected abstract void writeEndOfIndividualFs() throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeEndOfSerialization
protected abstract void writeEndOfSerialization() throws java.lang.Exception
- Throws:
java.lang.Exception
-
writeFsRef
protected abstract void writeFsRef(int addr) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-