Class OutOfTypeSystemData


  • public class OutOfTypeSystemData
    extends java.lang.Object
    This class is used by the XCASDeserializer to store feature structures that do not fit into the type system of the CAS it is deserializing into. This data can then be passed to the XCASSerializer, which will include it in the XCAS it produces. In this way consumers of an XCAS can safely ignore out-of-typesystem data without destroying it.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Map<TOP,​java.util.List<ArrayElement>> arrayElements
      Map from FSArray instances to List of ArrayElement objects, each of which holds an array index and value (as a string).
      (package private) java.util.Map<TOP,​java.util.List<Pair<java.lang.String,​java.lang.Object>>> extraFeatureValues
      Map from Feature Structure to List of String arrays holding feature names and values for out-of-typesystem features on in-typesystem FSs.
      (package private) java.util.List<FSData> fsList
      List of FSData objects for out-of-typesystem FSs.
      (package private) java.util.Map<java.lang.String,​java.lang.String> idMap
      Map used during re-serialization.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      For debugging purposes only.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • fsList

        final java.util.List<FSData> fsList
        List of FSData objects for out-of-typesystem FSs.
      • extraFeatureValues

        final java.util.Map<TOP,​java.util.List<Pair<java.lang.String,​java.lang.Object>>> extraFeatureValues
        Map from Feature Structure to List of String arrays holding feature names and values for out-of-typesystem features on in-typesystem FSs.
      • arrayElements

        final java.util.Map<TOP,​java.util.List<ArrayElement>> arrayElements
        Map from FSArray instances to List of ArrayElement objects, each of which holds an array index and value (as a string). key: FSArray instance represented as an xmiId
      • idMap

        final java.util.Map<java.lang.String,​java.lang.String> idMap
        Map used during re-serialization. Stores mapping from out-of-typesystem FS IDs to the actual IDs used in the generated XCAS.
    • Constructor Detail

      • OutOfTypeSystemData

        public OutOfTypeSystemData()
    • Method Detail

      • toString

        public java.lang.String toString()
        For debugging purposes only.
        Overrides:
        toString in class java.lang.Object