Class AbstractMultipartWriter<T extends org.opendaylight.yangtools.yang.binding.DataContainer>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> getInstanceIdentifier()
      Get instance identifier.
      protected abstract Class<T> getType()
      Get type of writer.
      protected abstract void storeStatistics​(T statistics, boolean withParents)
      Write statistics.
      boolean write​(org.opendaylight.yangtools.yang.binding.DataContainer dataContainer, boolean withParents)
      Write dataContainer.
      protected <O extends org.opendaylight.yangtools.yang.binding.DataObject>
      void
      writeToTransaction​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<O> path, O data, boolean withParents)
      Creates put operation using provided data in underlying transaction chain.
    • Method Detail

      • writeToTransaction

        protected <O extends org.opendaylight.yangtools.yang.binding.DataObject> void writeToTransaction​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<O> path,
                                                                                                         O data,
                                                                                                         boolean withParents)
        Creates put operation using provided data in underlying transaction chain.
        Type Parameters:
        O - data type
        Parameters:
        path - path
        data - data
      • getInstanceIdentifier

        protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> getInstanceIdentifier()
        Get instance identifier.
        Returns:
        instance identifier
      • write

        public boolean write​(org.opendaylight.yangtools.yang.binding.DataContainer dataContainer,
                             boolean withParents)
        Write dataContainer.
        Parameters:
        dataContainer - dataContainer
        withParents - write missing parents if needed (slower)
        Returns:
        true if we have correct dataContainer type
      • getType

        protected abstract Class<T> getType()
        Get type of writer.
        Returns:
        type of writer
      • storeStatistics

        protected abstract void storeStatistics​(T statistics,
                                                boolean withParents)
        Write statistics.
        Parameters:
        statistics - statistics
        withParents - write missing parents if needed (slower)