Implement edit-config operations for NormalizedNode yang-data-api 70/5670/19
authorMaros Marsalek <mmarsale@cisco.com>
Wed, 19 Mar 2014 08:54:15 +0000 (09:54 +0100)
committerMaros Marsalek <mmarsale@cisco.com>
Fri, 28 Mar 2014 08:18:55 +0000 (08:18 +0000)
commitbf52c94b046030ef2affaa615b4af2862e42fb5f
treeb15e8c7b3dfc3db4063e523592c54445e2c154a6
parenta8e6502ba9309a17cc292d0aafe1c61ad471ab35
Implement edit-config operations for NormalizedNode yang-data-api

Placed in a new module yang-data-operations

Supported operations: all defined in http://tools.ietf.org/html/rfc6241
Multiple positive and negative test cases added. Testing yang schema can be found under src/test/resources

Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Change-Id: I897c6479cf14e7073a6fb954565cfe2b376a6c40
88 files changed:
yang/pom.xml
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/builder/impl/AbstractImmutableDataContainerNodeBuilder.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/builder/impl/ImmutableContainerNodeBuilder.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/nodes/AbstractImmutableDataContainerNode.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/transform/base/SchemaUtils.java
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/transform/dom/DomUtils.java
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/transform/dom/serializer/NormalizedNodeXmlTranslationTest.java
yang/yang-data-json/src/test/java/org/opendaylight/yangtools/yang/data/json/schema/cnsn/serializer/SerializeNormalizedStructToCnSnStructTest.java
yang/yang-data-operations/pom.xml [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/AbstractContainerNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/AugmentationNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/ChoiceNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/ContainerNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/DataModificationException.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/DataOperations.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/LeafNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/LeafSetNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/MapEntryNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/MapNodeModification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/Modification.java [new file with mode: 0644]
yang/yang-data-operations/src/main/java/org/opendaylight/yangtools/yang/data/operations/OperationStack.java [new file with mode: 0644]
yang/yang-data-operations/src/test/java/org/opendaylight/yangtools/yang/data/operations/YangDataOperationsNegativeTest.java [new file with mode: 0644]
yang/yang-data-operations/src/test/java/org/opendaylight/yangtools/yang/data/operations/YangDataOperationsTest.java [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/schemas/test.yang [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/containerTest_choiceModificationMultipleCasesReferenced/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/containerTest_choiceModificationMultipleCasesReferenced/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/containerTest_createContainerActualPresent/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/containerTest_createContainerActualPresent/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/containerTest_deleteContainerActualMissing/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/containerTest_noneContainerActualMissing/defaultOperation.txt [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/containerTest_noneContainerActualMissing/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafListTest_createLeafActualPresent/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafListTest_createLeafActualPresent/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafListTest_deleteLeafActualMissing/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafListTest_deleteLeafActualMissing/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafTest_createLeafActualPresent/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafTest_createLeafActualPresent/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafTest_deleteLeafActualMissing/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/leafTest_deleteLeafActualMissing/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/listTest_createListActualPresent/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/listTest_createListActualPresent/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/listTest_deleteListActualMissing/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/listTest_deleteListActualMissing/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/listTest_noneListActualMissing/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/listTest_noneListActualMissing/defaultOperation.txt [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls-negative/listTest_noneListActualMissing/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualModificationDifferentCases/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualModificationDifferentCases/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualModificationDifferentCases/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualModificationSameCase/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualModificationSameCase/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualModificationSameCase/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualOneCaseModificationOtherCase/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualOneCaseModificationOtherCase/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_choiceActualOneCaseModificationOtherCase/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_createContainer/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_createContainer/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_deleteContainer/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_deleteContainer/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_innerContainerContainer/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_innerContainerContainer/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_innerContainerContainer/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_innerLeavesBaseOperationsContainer/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_innerLeavesBaseOperationsContainer/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_innerLeavesBaseOperationsContainer/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_noneContainer/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_noneContainer/defaultOperation.txt [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_noneContainer/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_noneContainer/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_removeContainer/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_removeContainer/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_replaceContainer/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_replaceContainer/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/containerTest_replaceContainer/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/leafListTest/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/leafListTest/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/leafListTest/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/listTest/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/listTest/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/listTest/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/listTest_alterInnerValue/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/listTest_alterInnerValue/defaultOperation.txt [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/listTest_alterInnerValue/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/listTest_alterInnerValue/result.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/none_NoChange/current.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/none_NoChange/defaultOperation.txt [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/none_NoChange/merge.xml [new file with mode: 0644]
yang/yang-data-operations/src/test/resources/xmls/none_NoChange/result.xml [new file with mode: 0644]