Class TomlCanonicalMapFactory

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


    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

      • fromMarshaled

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

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

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

        public java.lang.String 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 CanonicalMapFactory
        Specified by:
        toMarshaled in interface org.refcodes.factory.MarshalTypeFactory<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.lang.String>
        Throws:
        org.refcodes.exception.MarshalException
      • fromUnmarshaled

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

        public java.io.InputStream 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 org.refcodes.factory.MarshalTypeFactory.MarshalTypeFactoryComplement<org.refcodes.structure.CanonicalMap.CanonicalMapBuilder,java.lang.String>
        Throws:
        org.refcodes.exception.MarshalException