KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > ecore > xmi > DOMHandler


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: DOMHandler.java,v 1.3 2005/06/08 06:16:07 nickb Exp $
16  */

17 package org.eclipse.emf.ecore.xmi;
18
19
20 import org.eclipse.emf.ecore.EObject;
21 import org.eclipse.emf.ecore.EStructuralFeature;
22 import org.w3c.dom.Node JavaDoc;
23
24
25 /**
26  * This interface is a handler that is called by {@link XMLSave} while converting the contents of an XMLResource to DOM,
27  * to allow application to record EMF values that were used to create a DOM node.
28  * @since 2.1.0
29  */

30 public interface DOMHandler
31 {
32   /**
33    * Record the DOM node and its corresponding EMF values.
34    * @param node the DOM node
35    * @param container the {@link org.eclipse.emf.ecore.EObject} which is the node's container
36    * @param feature the feature for DOM node value
37    * @param object the EMF value which is obtained by querying the value of the specified feature on the container
38    * {@link org.eclipse.emf.ecore.EObject#eGet(EStructuralFeature};
39    * this value is used to create the <emf>node</emf>
40    */

41   void recordValues(Node JavaDoc node, EObject container, EStructuralFeature feature, Object JavaDoc value);
42
43   DOMHelper getDOMHelper();
44 }
45
Popular Tags