/******************************************************************************* * Copyright (c) 2008-2010 Sonatype, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Sonatype, Inc. - initial API and implementation *******************************************************************************/ package com.liferay.ide.portal.ui.templates; import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument; import org.w3c.dom.Node; /** * A non-editing operation on top of the DOM document, to be used with XmlUtils.performOnRootElement and * XmlUtils.performOnCurrentElement * * @author mkleint * @param <T> */ @SuppressWarnings( "restriction" ) public interface NodeOperation<T extends Node> { void process( T node, IStructuredDocument structuredDocument ); }