Class 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 Detail

      • CasSerializerSupportSerialize

        public CasSerializerSupportSerialize()
    • 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