Class ManualMappingInfo


  • public class ManualMappingInfo
    extends java.lang.Object
    The manual mapping describes, how a certain class is handled in the parser. This defines the read and write handler implementations to be used to handle the instantiation or serialisation of the described type.

    Manual mappings will not be created by the generator, they have to be defined manually. The parser will print warnings, if the definitions are invalid.

    Manual mappings will always override automatic mappings.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class baseClass
      The base class.
      private Comments comments
      The comments.
      private java.lang.Class readHandler
      The read handler.
      private java.lang.String source
      The source.
      private java.lang.Class writeHandler
      The write handler.
    • Constructor Summary

      Constructors 
      Constructor Description
      ManualMappingInfo​(java.lang.Class baseClass, java.lang.Class readHandler, java.lang.Class writeHandler)
      Creates a new manual mapping instance.
    • Field Detail

      • baseClass

        private java.lang.Class baseClass
        The base class.
      • readHandler

        private java.lang.Class readHandler
        The read handler.
      • writeHandler

        private java.lang.Class writeHandler
        The write handler.
      • comments

        private Comments comments
        The comments.
      • source

        private java.lang.String source
        The source.
    • Constructor Detail

      • ManualMappingInfo

        public ManualMappingInfo​(java.lang.Class baseClass,
                                 java.lang.Class readHandler,
                                 java.lang.Class writeHandler)
        Creates a new manual mapping instance.
        Parameters:
        baseClass - the base class.
        readHandler - the read handler class.
        writeHandler - the write handler class.
    • Method Detail

      • getBaseClass

        public java.lang.Class getBaseClass()
        Returns the base class.
        Returns:
        The base class.
      • getReadHandler

        public java.lang.Class getReadHandler()
        Returns the read handler class.
        Returns:
        The read handler class.
      • getWriteHandler

        public java.lang.Class getWriteHandler()
        Returns the write handler class.
        Returns:
        The write handler class.
      • getComments

        public Comments getComments()
        Returns the comments.
        Returns:
        The comments.
      • setComments

        public void setComments​(Comments comments)
        Sets the comments.
        Parameters:
        comments - the comments.
      • getSource

        public java.lang.String getSource()
        Returns the source.
        Returns:
        The source.
      • setSource

        public void setSource​(java.lang.String source)
        Sets the source.
        Parameters:
        source - the source.