Class CustomRepresenter


  • public class CustomRepresenter
    extends org.yaml.snakeyaml.representer.Representer
    Custom helper class with dataClay special types representation.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.yaml.snakeyaml.representer.Representer

        org.yaml.snakeyaml.representer.Representer.RepresentJavaBean
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Map<Class<? extends Object>,​org.yaml.snakeyaml.nodes.Tag> classTags  
      static Pattern MULTILINE_PATTERN  
      protected org.yaml.snakeyaml.DumperOptions.NonPrintableStyle nonPrintableStyle  
      protected TimeZone timeZone  
      • Fields inherited from class org.yaml.snakeyaml.representer.Representer

        typeDefinitions
      • Fields inherited from class org.yaml.snakeyaml.representer.BaseRepresenter

        defaultFlowStyle, defaultScalarStyle, multiRepresenters, nullRepresenter, objectToRepresent, representedObjects, representers
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomRepresenter()
      Provide a dataClay specific adapted SnakeYAML Representer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.yaml.snakeyaml.nodes.Tag addClassTag​(Class<? extends Object> arg0, org.yaml.snakeyaml.nodes.Tag arg1)  
      protected org.yaml.snakeyaml.nodes.Tag getTag​(Class<?> arg0, org.yaml.snakeyaml.nodes.Tag arg1)  
      TimeZone getTimeZone()  
      protected org.yaml.snakeyaml.nodes.NodeTuple representJavaBeanProperty​(Object javaBean, org.yaml.snakeyaml.introspector.Property property, Object propertyValue, org.yaml.snakeyaml.nodes.Tag customTag)
      Do *NOT* remove "redundant" global tag for collections --Python needs them.
      void setTimeZone​(TimeZone arg0)  
      • Methods inherited from class org.yaml.snakeyaml.representer.Representer

        addTypeDescription, checkGlobalTag, getProperties, representJavaBean, setPropertyUtils
      • Methods inherited from class org.yaml.snakeyaml.representer.BaseRepresenter

        getDefaultFlowStyle, getDefaultScalarStyle, getPropertyUtils, isExplicitPropertyUtils, represent, representData, representMapping, representScalar, representScalar, representSequence, setDefaultFlowStyle, setDefaultScalarStyle
    • Field Detail

      • classTags

        protected Map<Class<? extends Object>,​org.yaml.snakeyaml.nodes.Tag> classTags
      • nonPrintableStyle

        protected org.yaml.snakeyaml.DumperOptions.NonPrintableStyle nonPrintableStyle
      • MULTILINE_PATTERN

        public static Pattern MULTILINE_PATTERN
    • Constructor Detail

      • CustomRepresenter

        public CustomRepresenter()
        Provide a dataClay specific adapted SnakeYAML Representer.
    • Method Detail

      • representJavaBeanProperty

        protected org.yaml.snakeyaml.nodes.NodeTuple representJavaBeanProperty​(Object javaBean,
                                                                               org.yaml.snakeyaml.introspector.Property property,
                                                                               Object propertyValue,
                                                                               org.yaml.snakeyaml.nodes.Tag customTag)
        Do *NOT* remove "redundant" global tag for collections --Python needs them.
        Overrides:
        representJavaBeanProperty in class org.yaml.snakeyaml.representer.Representer
        Parameters:
        property - - JavaBean property
        node - - representation of the property
        object - - instance represented by the node
      • getTag

        protected org.yaml.snakeyaml.nodes.Tag getTag​(Class<?> arg0,
                                                      org.yaml.snakeyaml.nodes.Tag arg1)
      • addClassTag

        public org.yaml.snakeyaml.nodes.Tag addClassTag​(Class<? extends Object> arg0,
                                                        org.yaml.snakeyaml.nodes.Tag arg1)
      • getTimeZone

        public TimeZone getTimeZone()
      • setTimeZone

        public void setTimeZone​(TimeZone arg0)