Merge "Removing { } from NormalizedNodeJsonBodyWriter"
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / main / java / org / opendaylight / controller / sal / restconf / impl / StructuredData.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.sal.restconf.impl;
9
10 import org.opendaylight.controller.md.sal.dom.api.DOMMountPoint;
11 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
12 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
13
14 /**
15  * @deprecated class will be removed in Lithium release
16  */
17 @Deprecated
18 public class StructuredData {
19
20     private final CompositeNode data;
21     private final DataSchemaNode schema;
22     private final DOMMountPoint mountPoint;
23     private final boolean prettyPrintMode;
24
25     public StructuredData(final CompositeNode data, final DataSchemaNode schema, final DOMMountPoint mountPoint) {
26         this(data, schema, mountPoint, false);
27     }
28
29     public StructuredData(final CompositeNode data, final DataSchemaNode schema, final DOMMountPoint mountPoint,
30             final boolean preattyPrintMode) {
31         this.data = data;
32         this.schema = schema;
33         this.mountPoint = mountPoint;
34         prettyPrintMode = preattyPrintMode;
35     }
36
37     public CompositeNode getData() {
38         return data;
39     }
40
41     public DataSchemaNode getSchema() {
42         return schema;
43     }
44
45     public DOMMountPoint getMountPoint() {
46         return mountPoint;
47     }
48
49     public boolean isPrettyPrintMode() {
50         return prettyPrintMode;
51     }
52 }