@Deprecated public class MemoryDataView extends Object implements DataView
DataView being used in memory.DataView.SafetyMode| Modifier and Type | Field and Description | 
|---|---|
| protected Map<String,Object> | mapDeprecated.  | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | MemoryDataView(DataView.SafetyMode safety)Deprecated.  | 
| protected  | MemoryDataView(DataView parent,
              DataQuery path,
              DataView.SafetyMode safety)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | contains(DataQuery path)Deprecated.  Returns whether this  DataViewcontains the given path. | 
| boolean | contains(DataQuery path,
        DataQuery... paths)Deprecated.  | 
| DataContainer | copy()Deprecated.  Copies this  DataViewand all of it's contents into a newDataContainer. | 
| DataContainer | copy(DataView.SafetyMode safety)Deprecated.  Copies this  DataViewand all of it's contents into a newDataContainerwith the given safety mode. | 
| DataView | createView(DataQuery path)Deprecated.  Creates a new  DataViewat the desired path. | 
| DataView | createView(DataQuery path,
          Map<?,?> map)Deprecated.  Creates a new  DataViewwith the given data at the desired
 path. | 
| boolean | equals(Object obj)Deprecated.  | 
| Optional<Object> | get(DataQuery path)Deprecated.  Gets an object from the desired path. | 
| Optional<Boolean> | getBoolean(DataQuery path)Deprecated.  Gets the  Booleanby path, if available. | 
| Optional<List<Boolean>> | getBooleanList(DataQuery path)Deprecated.  | 
| Optional<Byte> | getByte(DataQuery path)Deprecated.  Gets the  Byteby path, if available. | 
| Optional<List<Byte>> | getByteList(DataQuery path)Deprecated.  | 
| <T extends CatalogType> | getCatalogType(DataQuery path,
              Class<T> catalogType)Deprecated.  Gets the  CatalogTypeobject by path, if available. | 
| <T extends CatalogType> | getCatalogTypeList(DataQuery path,
                  Class<T> catalogType)Deprecated.  Gets the  ListofCatalogTypes by path, if available. | 
| Optional<List<Character>> | getCharacterList(DataQuery path)Deprecated.  | 
| DataContainer | getContainer()Deprecated.  Gets the parent container of this DataView. | 
| DataQuery | getCurrentPath()Deprecated.  Gets the current path of this  DataViewfrom its rootDataContainer. | 
| Optional<Double> | getDouble(DataQuery path)Deprecated.  Gets the  Doubleby path, if available. | 
| Optional<List<Double>> | getDoubleList(DataQuery path)Deprecated.  | 
| Optional<Float> | getFloat(DataQuery path)Deprecated.  Gets the  Floatby path, if available. | 
| Optional<List<Float>> | getFloatList(DataQuery path)Deprecated.  | 
| Optional<Integer> | getInt(DataQuery path)Deprecated.  Gets the  Integerby path, if available. | 
| Optional<List<Integer>> | getIntegerList(DataQuery path)Deprecated.  | 
| Set<DataQuery> | getKeys(boolean deep)Deprecated.  Gets a collection containing all keys in this  DataView. | 
| Optional<List<?>> | getList(DataQuery path)Deprecated.  Gets the  Listof something by path, if available. | 
| Optional<Long> | getLong(DataQuery path)Deprecated.  Gets the  Longby path, if available. | 
| Optional<List<Long>> | getLongList(DataQuery path)Deprecated.  | 
| Optional<? extends Map<?,?>> | getMap(DataQuery path)Deprecated.  Gets the underlying  Mapby path, if available. | 
| Optional<List<Map<?,?>>> | getMapList(DataQuery path)Deprecated.  | 
| String | getName()Deprecated.  Gets the name of this individual  DataViewin the path. | 
| <T> Optional<T> | getObject(DataQuery path,
         Class<T> objectClass)Deprecated.  Gets the  Objectobject by path, if available. | 
| <T> Optional<List<T>> | getObjectList(DataQuery path,
             Class<T> objectClass)Deprecated.  Gets the  ListofDataSerializableby path, if available. | 
| Optional<DataView> | getParent()Deprecated.  Gets the parent  DataViewof this view. | 
| DataView.SafetyMode | getSafetyMode()Deprecated.  Gets the  DataView.SafetyModeof this data view. | 
| <T extends DataSerializable> | getSerializable(DataQuery path,
               Class<T> clazz)Deprecated.  Gets the  DataSerializableobject by path, if available. | 
| <T extends DataSerializable> | getSerializableList(DataQuery path,
                   Class<T> clazz)Deprecated.  Gets the  ListofDataSerializableby path, if available. | 
| Optional<Short> | getShort(DataQuery path)Deprecated.  Gets the  Shortby path, if available. | 
| Optional<List<Short>> | getShortList(DataQuery path)Deprecated.  | 
| Optional<String> | getString(DataQuery path)Deprecated.  Gets the  Stringby path, if available. | 
| Optional<List<String>> | getStringList(DataQuery path)Deprecated.  | 
| Map<DataQuery,Object> | getValues(boolean deep)Deprecated.  Gets a Map containing all keys and their values for this  DataView. | 
| Optional<DataView> | getView(DataQuery path)Deprecated.  Gets the  DataViewby path, if available. | 
| Optional<List<DataView>> | getViewList(DataQuery path)Deprecated.  | 
| int | hashCode()Deprecated.  | 
| boolean | isEmpty()Deprecated.  Gets if this view contains no data. | 
| DataView | remove(DataQuery path)Deprecated.  Removes the data associated to the given path relative to this
  DataView's path. | 
| DataView | set(DataQuery path,
   Object value)Deprecated.  Sets the given Object value according to the given path relative to
 this  DataView's path. | 
| <E> DataView | set(Key<? extends BaseValue<E>> key,
   E value)Deprecated.  | 
| String | toString()Deprecated.  | 
protected MemoryDataView(DataView.SafetyMode safety)
protected MemoryDataView(DataView parent, DataQuery path, DataView.SafetyMode safety)
public DataContainer getContainer()
DataViewEvery DataView will always have a DataContainer.
For any DataContainer, this will return itself.
getContainer in interface DataViewpublic DataQuery getCurrentPath()
DataViewDataView from its root
 DataContainer.
 For any DataContainer itself, this will return an
 empty string as it is the root of the path.
The full path will always include this DataViews name
 at the end of the path.
getCurrentPath in interface DataViewpublic String getName()
DataViewDataView in the path.
 This will always be the final substring of the full path
 from DataView.getCurrentPath().
public Optional<DataView> getParent()
DataViewDataView of this view. The parent directly
 contains this view according to the DataView.getCurrentPath().
 For any DataContainer, this will return an absent parent.
public Set<DataQuery> getKeys(boolean deep)
DataViewDataView.
 If deep is set to true, then this will contain all the keys
 within any child DataViews (and their children, etc).
 These will be in a valid path notation for you to use.
If deep is set to false, then this will contain only the keys of any direct children, and not their own children.
public Map<DataQuery,Object> getValues(boolean deep)
DataViewDataView.
 If deep is set to true, then this will contain all the keys and
 values within any child DataViews (and their children,
 etc). These keys will be in a valid path notation for you to use.
If deep is set to false, then this will contain only the keys and values of any direct children, and not their own children.
public final boolean contains(DataQuery path)
DataViewDataView contains the given path.public boolean contains(DataQuery path, DataQuery... paths)
DataViewpublic Optional<Object> get(DataQuery path)
DataViewpublic DataView set(DataQuery path, Object value)
DataViewDataView's path.public <E> DataView set(Key<? extends BaseValue<E>> key, E value)
DataViewpublic DataView remove(DataQuery path)
DataViewpublic DataView createView(DataQuery path)
DataViewDataView at the desired path.
 If any data existed at the given path, that data will be
 overwritten with the newly constructed DataView.
createView in interface DataViewpath - The path of the new viewpublic DataView createView(DataQuery path, Map<?,?> map)
DataViewDataView with the given data at the desired
 path.
 If any data existed at the given path, that data will be overwritten
 with the newly constructed DataView.
createView in interface DataViewpath - The path of the new viewmap - The data to store in the new viewpublic Optional<DataView> getView(DataQuery path)
DataViewpublic Optional<? extends Map<?,?>> getMap(DataQuery path)
DataViewpublic Optional<Boolean> getBoolean(DataQuery path)
DataViewBoolean by path, if available.
 If a Boolean does not exist, or the data residing at
 the path is not an instance of a Boolean, an absent is
 returned.
getBoolean in interface DataViewpath - The path of the value to getpublic Optional<Byte> getByte(DataQuery path)
DataViewpublic Optional<Short> getShort(DataQuery path)
DataViewpublic Optional<Integer> getInt(DataQuery path)
DataViewpublic Optional<Long> getLong(DataQuery path)
DataViewpublic Optional<Float> getFloat(DataQuery path)
DataViewpublic Optional<Double> getDouble(DataQuery path)
DataViewpublic Optional<String> getString(DataQuery path)
DataViewpublic Optional<List<?>> getList(DataQuery path)
DataViewpublic Optional<List<String>> getStringList(DataQuery path)
DataViewList of String by path, if available.
 If a List of String does not exist, or the data
 residing at the path is not an instance of a List of
 String, an absent is returned.
getStringList in interface DataViewpath - The path of the value to getpublic Optional<List<Character>> getCharacterList(DataQuery path)
DataViewList of Character by path, if available.
 If a List of Character does not exist, or the data
 residing at the path is not an instance of a List of
 Character, an absent is returned.
getCharacterList in interface DataViewpath - The path of the value to getpublic Optional<List<Boolean>> getBooleanList(DataQuery path)
DataViewList of Boolean by path, if available.
 If a List of Boolean does not exist, or the data
 residing at the path is not an instance of a List of
 Boolean, an absent is returned.
getBooleanList in interface DataViewpath - The path of the value to getpublic Optional<List<Byte>> getByteList(DataQuery path)
DataViewList of Byte by path, if available.
 If a List of Byte does not exist, or the data
 residing at the path is not an instance of a List of
 Byte, an absent is returned.
getByteList in interface DataViewpath - The path of the value to getpublic Optional<List<Short>> getShortList(DataQuery path)
DataViewList of Short by path, if available.
 If a List of Short does not exist, or the data
 residing at the path is not an instance of a List of
 Short, an absent is returned.
getShortList in interface DataViewpath - The path of the value to getpublic Optional<List<Integer>> getIntegerList(DataQuery path)
DataViewList of Integer by path, if available.
 If a List of Integer does not exist, or the data
 residing at the path is not an instance of a List of
 Integer, an absent is returned.
getIntegerList in interface DataViewpath - The path of the value to getpublic Optional<List<Long>> getLongList(DataQuery path)
DataViewList of Long by path, if available.
 If a List of Long does not exist, or the data
 residing at the path is not an instance of a List of
 Long, an absent is returned.
getLongList in interface DataViewpath - The path of the value to getpublic Optional<List<Float>> getFloatList(DataQuery path)
DataViewList of Float by path, if available.
 If a List of Float does not exist, or the data
 residing at the path is not an instance of a List of
 Float, an absent is returned.
getFloatList in interface DataViewpath - The path of the value to getpublic Optional<List<Double>> getDoubleList(DataQuery path)
DataViewList of Double by path, if available.
 If a List of Double does not exist, or the data
 residing at the path is not an instance of a List of
 Double, an absent is returned.
getDoubleList in interface DataViewpath - The path of the value to getpublic Optional<List<Map<?,?>>> getMapList(DataQuery path)
DataViewList of Map by path, if available.
 If a List of Map does not exist, or the data
 residing at the path is not an instance of a List of
 Map, an absent is returned.
getMapList in interface DataViewpath - The path of the value to getpublic Optional<List<DataView>> getViewList(DataQuery path)
DataViewList of DataView by path, if available.
 If a List of DataView does not exist, or the data
 residing at the path is not an instance of a List of
 DataView, an absent is returned.
getViewList in interface DataViewpath - The path of the value to getpublic <T extends DataSerializable> Optional<T> getSerializable(DataQuery path, Class<T> clazz)
DataViewDataSerializable object by path, if available.
 If a DataSerializable exists, but is not the proper class
 type, or there is no data at the path given, an absent is returned.
It is important that the DataManager provided is
 the same one that has registered many of the
 DataBuilders to ensure the DataSerializable
 requested can be returned.
getSerializable in interface DataViewT - The type of DataSerializable objectpath - The path of the value to getclazz - The class of the DataSerializablepublic <T extends DataSerializable> Optional<List<T>> getSerializableList(DataQuery path, Class<T> clazz)
DataViewList of DataSerializable by path, if available.
 If a List exists, but the contents of the list are not
 considered DataSerializable or are not of the proper type of
 DataSerializable, an absent is returned.
It is important that the DataManager provided is
 the same one that has registered many of the
 DataBuilders to ensure the DataSerializable
 requested can be returned.
getSerializableList in interface DataViewT - The type of DataSerializable objectpath - The path of the list value to getclazz - The class of the DataSerializablepublic <T extends CatalogType> Optional<T> getCatalogType(DataQuery path, Class<T> catalogType)
DataViewCatalogType object by path, if available.
 If a CatalogType exists, but is not named properly, not
 existing in a registry, or simply an invalid value will return
 an empty value.
getCatalogType in interface DataViewT - The type of dummypath - The path of the value to getcatalogType - The class of the dummy typepublic <T extends CatalogType> Optional<List<T>> getCatalogTypeList(DataQuery path, Class<T> catalogType)
DataViewList of CatalogTypes by path, if available.
 If a List exists, but contents of the list are not
 considered CatalogTypes or are not of the proper type
 of CatalogType, an absent is returned.
getCatalogTypeList in interface DataViewT - The type of dummy typepath - The path of the list value to getcatalogType - The class of the dummy typepublic <T> Optional<T> getObject(DataQuery path, Class<T> objectClass)
DataViewObject object by path, if available.
 If a Object exists, but is not the proper class
 type, or there is no data at the path given, an absent is returned.
It is important that the DataManager provided is
 the same one that has registered many of the
 DataTranslators to ensure the DataSerializable
 requested can be returned.
public <T> Optional<List<T>> getObjectList(DataQuery path, Class<T> objectClass)
DataViewList of DataSerializable by path, if available.
 If a List exists, but the contents of the list are not
 considered DataTranslator"able" or are not of the proper type of
 DataTranslator, an absent is returned.
It is important that the DataManager provided is
 the same one that has registered many of the
 DataTranslators to ensure the Object
 requested can be returned.
getObjectList in interface DataViewT - The type of Object objectpath - The path of the value to getobjectClass - The class of the Objectpublic DataContainer copy()
DataViewDataView and all of it's contents into a new
 DataContainer.
 Note that the copy will not have the same path as this
 DataView since it will be constructed with the top level path
 being itself.
public DataContainer copy(DataView.SafetyMode safety)
DataViewDataView and all of it's contents into a new
 DataContainer with the given safety mode.
 Note that the copy will not have the same path as this
 DataView since it will be constructed with the top level path
 being itself.
public boolean isEmpty()
DataViewpublic DataView.SafetyMode getSafetyMode()
DataViewDataView.SafetyMode of this data view.getSafetyMode in interface DataView