/*******************************************************************************
 *  Copyright (c) 2000, 2008 IBM Corporation and others.
 *
 *  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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.pde.internal.core.text;

import java.io.Serializable;

public interface IDocumentTextNode extends IDocumentRange, Serializable, IDocumentXMLNode {

	String F_PROPERTY_CHANGE_TYPE_PCDATA = "type_pcdata"; //$NON-NLS-1$

	IDocumentElementNode getEnclosingElement();

	void setText(String text);

	String getText();

	void setOffset(int offset);

	void setLength(int length);

	// Not used by text edit operations
	void reconnect(IDocumentElementNode parent);

	// Not used by text edit operations
	String write();

}
