public class MutableCompositeModification extends VersionedExternalizableMessage implements CompositeModification
COMPOSITE, DELETE, MERGE, WRITE
Constructor and Description |
---|
MutableCompositeModification() |
MutableCompositeModification(short version) |
Modifier and Type | Method and Description |
---|---|
void |
addModification(Modification modification)
Add a new Modification to the list of Modifications represented by this composite.
|
void |
addModifications(Iterable<Modification> newMods) |
void |
apply(org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification transaction)
Apply the modification to the specified transaction.
|
void |
apply(org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction transaction)
Apply the modification to the specified transaction.
|
static MutableCompositeModification |
fromSerializable(Object serializable) |
List<Modification> |
getModifications()
Get a list of modifications contained by this composite.
|
byte |
getType() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
getVersion, toSerializable, toString
public MutableCompositeModification()
public MutableCompositeModification(short version)
public void apply(org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction transaction)
Modification
apply
in interface Modification
transaction
- the transactionpublic void apply(org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification transaction)
Modification
apply
in interface Modification
transaction
- the transactionpublic byte getType()
getType
in interface Modification
public void addModification(Modification modification)
modification
- the modification to add.public void addModifications(Iterable<Modification> newMods)
public List<Modification> getModifications()
CompositeModification
getModifications
in interface CompositeModification
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class VersionedExternalizableMessage
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class VersionedExternalizableMessage
IOException
public static MutableCompositeModification fromSerializable(Object serializable)
Copyright © 2019 OpenDaylight. All rights reserved.