com.h3c.of.lib.dt

## Class DataPathUtils

- java.lang.Object
- - com.h3c.of.lib.dt.DataPathUtils

-     public abstract class DataPathUtils
      extends Object

  Base class for handling datapath mementos.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DataPathUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `attachMemento(DataPathId dpid, Object dpi)` Attaches the specified datapath info (memento) to the given datapath ID instance.
    `protected void` | `detachMemento(DataPathId dpid)` Removes the reference to the datapath info (memento) from the given datapath ID instance.
    `protected Object` | `getMemento(DataPathId dpid)` Returns the datapath info (memento) associated with this datapath ID.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DataPathUtils

          public DataPathUtils()

  - ### Method Detail

    - #### attachMemento

          protected void attachMemento(DataPathId dpid,
                           Object dpi)

      Attaches the specified datapath info (memento) to the given datapath ID instance.
      Parameters:
        `dpid` - the datapath ID
        `dpi` - the datapath info to attach

    - #### detachMemento

          protected void detachMemento(DataPathId dpid)

      Removes the reference to the datapath info (memento) from the given datapath ID instance.
      Parameters:
        `dpid` - the datapath ID

    - #### getMemento

          protected Object getMemento(DataPathId dpid)

      Returns the datapath info (memento) associated with this datapath ID.
      Parameters:
        `dpid` - the datapath ID
      Returns:
        the associated datapath info (if any)

Copyright © 2014. All Rights Reserved.