Class SafeRepresenter

    • Field Detail

      • classTags

        protected java.util.Map<java.lang.Class<? extends java.lang.Object>,​Tag> classTags
      • timeZone

        protected java.util.TimeZone timeZone
      • MULTILINE_PATTERN

        private static final java.util.regex.Pattern MULTILINE_PATTERN
    • Constructor Detail

      • SafeRepresenter

        public SafeRepresenter​(DumperOptions options)
    • Method Detail

      • getTag

        protected Tag getTag​(java.lang.Class<?> clazz,
                             Tag defaultTag)
      • addClassTag

        public Tag addClassTag​(java.lang.Class<? extends java.lang.Object> clazz,
                               Tag tag)
        Define a tag for the Class to serialize.
        Parameters:
        clazz - Class which tag is changed
        tag - new tag to be used for every instance of the specified Class
        Returns:
        the previous tag associated with the Class
      • getTimeZone

        public java.util.TimeZone getTimeZone()
      • setTimeZone

        public void setTimeZone​(java.util.TimeZone timeZone)