Class HalStructImpl

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,T>, HalMap, HalStruct, org.refcodes.mixin.DelimiterAccessor, org.refcodes.mixin.Dumpable, org.refcodes.mixin.TypeAccessor<java.lang.String>, org.refcodes.structure.CanonicalMap, org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap, org.refcodes.structure.Clearable, org.refcodes.structure.Containable, org.refcodes.structure.Dictionary<java.lang.String,T>, org.refcodes.structure.Dictionary.MutableDictionary<java.lang.String,T>, org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T,org.refcodes.structure.PathMap.PathMapBuilder<T>>, org.refcodes.structure.Keys<java.lang.String,T>, org.refcodes.structure.Keys.MutableKeys<java.lang.String,T>, org.refcodes.structure.Keys.MutableValues<java.lang.String,T>, org.refcodes.structure.PathMap<java.lang.String>, org.refcodes.structure.PathMap.MutablePathMap<java.lang.String>, org.refcodes.structure.PathMap.PathMapBuilder<java.lang.String>, org.refcodes.structure.PropertiesAccessorMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<java.lang.String>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin


    public class HalStructImpl
    extends org.refcodes.structure.CanonicalMapBuilderImpl
    implements HalStruct
    The HalStructImpl implements the HalStruct interface by extending the CanonicalMapBuilderImpl class. The path delimiter as of PathMapBuilderImpl.getDelimiter() is set to be the Delimiter.PATH character.
    See Also:
    Serialized Form
    • Constructor Detail

      • HalStructImpl

        public HalStructImpl​()
        Create an empty HalStruct instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations.
      • HalStructImpl

        public HalStructImpl​(java.lang.Object aObj,
                             java.lang.String aFromPath)
        Creates a HalStruct instance containing the elements as of PathMap.MutablePathMap.insert(Object) using the default path delimiter "/" (Delimiter.PATH) for the path declarations.
        Parameters:
        aObj - The object from which the elements are to be added.
        aFromPath - The path from where to start adding elements of the provided object.
      • HalStructImpl

        public HalStructImpl​(java.lang.Object aObj)
        Create a HalStruct instance containing the elements as of PathMap.MutablePathMap.insert(Object) using the default path delimiter "/" (Delimiter.PATH) for the path declarations.
        Parameters:
        aObj - The object from which the elements are to be added.
      • HalStructImpl

        public HalStructImpl​(java.lang.String aToPath,
                             java.lang.Object aObj,
                             java.lang.String aFromPath)
        Creates a HalStruct instance containing the elements as of PathMap.MutablePathMap.insert(Object) using the default path delimiter "/" (Delimiter.PATH for the path declarations.
        Parameters:
        aToPath - The sub-path where to insert the object's introspected values to.
        aObj - The object from which the elements are to be added.
        aFromPath - The path from where to start adding elements of the provided object.
      • HalStructImpl

        public HalStructImpl​(java.lang.String aToPath,
                             java.lang.Object aObj)
        Create a HalStruct instance containing the elements as of PathMap.MutablePathMap.insert(Object) using the default path delimiter "/" (Delimiter.PATH) for the path declarations.
        Parameters:
        aToPath - The sub-path where to insert the object's introspected values to.
        aObj - The object from which the elements are to be added.
    • Method Detail

      • retrieveFrom

        public HalStructImpl retrieveFrom​(java.lang.String aFromPath)
        Specified by:
        retrieveFrom in interface org.refcodes.structure.CanonicalMap
        Specified by:
        retrieveFrom in interface HalMap
        Specified by:
        retrieveFrom in interface HalStruct
        Specified by:
        retrieveFrom in interface org.refcodes.structure.PathMap<java.lang.String>
        Overrides:
        retrieveFrom in class org.refcodes.structure.CanonicalMapBuilderImpl
      • retrieveTo

        public HalStructImpl retrieveTo​(java.lang.String aToPath)
        Specified by:
        retrieveTo in interface org.refcodes.structure.CanonicalMap
        Specified by:
        retrieveTo in interface HalMap
        Specified by:
        retrieveTo in interface HalStruct
        Specified by:
        retrieveTo in interface org.refcodes.structure.PathMap<java.lang.String>
        Overrides:
        retrieveTo in class org.refcodes.structure.CanonicalMapBuilderImpl
      • retrieveBetween

        public HalStructImpl retrieveBetween​(java.lang.String aFromPath,
                                             java.lang.String aToPath)
        Specified by:
        retrieveBetween in interface org.refcodes.structure.CanonicalMap
        Specified by:
        retrieveBetween in interface HalMap
        Specified by:
        retrieveBetween in interface HalStruct
        Specified by:
        retrieveBetween in interface org.refcodes.structure.PathMap<java.lang.String>