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.ObjectMethods 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 voidaddNameSpace(XmlElementName xmlElementName)protected abstract voidcheckForNameCollision(XmlElementName xmlElementName)protected abstract voidinitializeNamespaces()protected abstract XmlElementNameuimaTypeName2XmiElementName(java.lang.String typeName)protected abstract voidwriteArrays(int addr, int typeCode, int typeClass)protected abstract voidwriteEndOfIndividualFs()protected abstract voidwriteEndOfSerialization()protected abstract voidwriteFeatureStructures(int elementCount)protected abstract voidwriteFs(int addr, int typeCode)protected abstract voidwriteFsRef(int addr)protected abstract booleanwriteFsStart(int addr, int typeCode)protected abstract voidwriteListsAsIndividualFSs(int addr, int typeCode)protected abstract voidwriteView(int sofaAddr, int[] members)protected abstract voidwriteView(int sofaAddr, int[] added, int[] deleted, int[] reindexed)protected abstract voidwriteViews()
-
-
-
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
-
-