blob: 4333b8b341ac73f423c9e4a01824c12ff0edb1d0 [file] [log] [blame]
/**
* Copyright (c) 2013-2015 Angelo ZERR.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
*/
package org.eclipse.wst.json.core.document;
/**
* JSON Document API.
*
*/
public interface IJSONDocument extends IJSONNode {
/**
* Returns the SSE JSON model.
*
* @return the SSE JSON model.
*/
IJSONModel getModel();
/**
* Create an instance of {@link IJSONObject}.
*
* @return an instance of {@link IJSONObject}.
*/
IJSONObject createJSONObject();
/**
* Create an instance of {@link IJSONArray}.
*
* @return an instance of {@link IJSONArray}.
*/
IJSONArray createJSONArray();
/**
* Create JSON pair name/value
*
* @param name
* @return an instance JSON pair name/value
*/
IJSONPair createJSONPair(String name);
IJSONBooleanValue createBooleanValue();
IJSONNumberValue createNumberValue();
IJSONNullValue createNullValue();
IJSONStringValue createStringValue();
}