Class HalDataImpl

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,T>, HalData, HalMap, org.refcodes.mixin.AnnotatorAccessor, 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 HalDataImpl
    extends org.refcodes.structure.CanonicalMapBuilderImpl
    implements HalData
    The HalDataImpl implements the HalData 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

      • HalDataImpl

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

        public HalDataImpl​(java.lang.Object aObj,
                           java.lang.String aFromPath)
        Creates a HalData 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.
      • HalDataImpl

        public HalDataImpl​(java.lang.Object aObj)
        Create a HalData 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.
      • HalDataImpl

        public HalDataImpl​(java.lang.String aToPath,
                           java.lang.Object aObj,
                           java.lang.String aFromPath)
        Creates a HalData 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.
      • HalDataImpl

        public HalDataImpl​(java.lang.String aToPath,
                           java.lang.Object aObj)
        Create a HalData 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 HalDataImpl retrieveFrom​(java.lang.String aFromPath)
        Specified by:
        retrieveFrom in interface org.refcodes.structure.CanonicalMap
        Specified by:
        retrieveFrom in interface HalData
        Specified by:
        retrieveFrom in interface HalMap
        Specified by:
        retrieveFrom in interface org.refcodes.structure.PathMap<java.lang.String>
        Overrides:
        retrieveFrom in class org.refcodes.structure.CanonicalMapBuilderImpl
      • retrieveTo

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

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