Class TomlCanonicalMapFactory

  • All Implemented Interfaces:
    org.refcodes.factory.MarshalTypeFactory<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>, org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>, org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComposite<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream,java.lang.String>, org.refcodes.factory.UnmarshalTypeFactory<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>, org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>, org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream,java.lang.String>, CanonicalMapFactory


    public class TomlCanonicalMapFactory
    extends AbstractCanonicalMapFactory
    implements CanonicalMapFactory
    Implementation of the CanonicalMapFactory interface with support of so called "TOML properties". In addition, nested sections are supported: A section represents the first portion of a path and looks like such: [SectionA] ValueA=A This results in key/value property of: SectionA/ValueA=A [SectionA] ValueA=A [[SectionB]] ValueB=B SectionA/ValueA=A SectionA/SectionB/ValueB=B For TOML properties, see "https://en.wikipedia.org/wiki/TOML"
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.factory.MarshalTypeFactory

        org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<T extends java.lang.Object,C extends java.lang.Object>, org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComposite<T extends java.lang.Object,SRC extends java.lang.Object,C extends java.lang.Object>
      • Nested classes/interfaces inherited from interface org.refcodes.factory.UnmarshalTypeFactory

        org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComplement<T extends java.lang.Object,C extends java.lang.Object>, org.refcodes.factory.UnmarshalTypeFactory.UnmarshalTypeFactoryComposite<T extends java.lang.Object,SRC extends java.lang.Object,C extends java.lang.Object>
    • Field Detail

      • COMMENTS

        public static final char[] COMMENTS
      • DELIMITERS

        public static final char[] DELIMITERS
    • Constructor Detail

      • TomlCanonicalMapFactory

        public TomlCanonicalMapFactory​()
    • Method Detail

      • toUnmarshaled

        public org.refcodes.structure.CanonicalMap.CanonicalMapBuilder toUnmarshaled​(java.io.InputStream aExternalRepresentation)
                                                                              throws org.refcodes.exception.UnmarshalException
        Specified by:
        toUnmarshaled in interface org.refcodes.factory.UnmarshalTypeFactory<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>
        Throws:
        org.refcodes.exception.UnmarshalException
      • toUnmarshaled

        public org.refcodes.structure.CanonicalMap.CanonicalMapBuilder toUnmarshaled​(java.io.InputStream aExternalRepresentation,
                                                                                     java.util.Map<java.lang.String,java.lang.String> aProperties)
                                                                              throws org.refcodes.exception.UnmarshalException
        Specified by:
        toUnmarshaled in interface org.refcodes.factory.UnmarshalTypeFactory<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>
        Throws:
        org.refcodes.exception.UnmarshalException
      • fromUnmarshaled

        public java.lang.String fromUnmarshaled​(org.refcodes.structure.CanonicalMap aDataStructure)
                                         throws org.refcodes.exception.MarshalException
        Specified by:
        fromUnmarshaled in interface CanonicalMapFactory
        Specified by:
        fromUnmarshaled in interface org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>
        Throws:
        org.refcodes.exception.MarshalException
      • fromUnmarshaled

        public java.lang.String fromUnmarshaled​(org.refcodes.structure.CanonicalMap aDataStructure,
                                                java.util.Map<java.lang.String,java.lang.String> aProperties)
                                         throws org.refcodes.exception.MarshalException
        Specified by:
        fromUnmarshaled in interface CanonicalMapFactory
        Specified by:
        fromUnmarshaled in interface org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>
        Throws:
        org.refcodes.exception.MarshalException
      • toMarshaled

        public java.io.InputStream toMarshaled​(org.refcodes.structure.CanonicalMap aDataStructure)
                                        throws org.refcodes.exception.MarshalException
        Specified by:
        toMarshaled in interface org.refcodes.factory.MarshalTypeFactory<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>
        Throws:
        org.refcodes.exception.MarshalException
      • toMarshaled

        public java.io.InputStream toMarshaled​(org.refcodes.structure.CanonicalMap aDataStructure,
                                               java.util.Map<java.lang.String,java.lang.String> aProperties)
                                        throws org.refcodes.exception.MarshalException
        Specified by:
        toMarshaled in interface org.refcodes.factory.MarshalTypeFactory<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.io.InputStream>
        Throws:
        org.refcodes.exception.MarshalException