2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.sal.restconf.impl;
10 import org.opendaylight.controller.sal.core.api.mount.MountInstance;
11 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
12 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
14 public class StructuredData {
16 private final CompositeNode data;
17 private final DataSchemaNode schema;
18 private final MountInstance mountPoint;
19 private final boolean prettyPrintMode;
21 public StructuredData(final CompositeNode data, final DataSchemaNode schema, final MountInstance mountPoint) {
22 this(data, schema, mountPoint, false);
25 public StructuredData(final CompositeNode data, final DataSchemaNode schema, final MountInstance mountPoint,
26 final boolean preattyPrintMode) {
29 this.mountPoint = mountPoint;
30 this.prettyPrintMode = preattyPrintMode;
33 public CompositeNode getData() {
37 public DataSchemaNode getSchema() {
41 public MountInstance getMountPoint() {
45 public boolean isPrettyPrintMode() {
46 return prettyPrintMode;