KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > xml > XMLFragment


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.xml;
17
18 import org.w3c.dom.Node JavaDoc;
19
20 /**
21  * This interface must be implemented by classes willing
22  * to provide an XML representation of their current state.
23  *
24  * <p>This interface exists in both Cocoon 1 and Cocoon 2 and to ensure
25  * a minimal compatibility between the two versions.</p>
26  *
27  * <p>Cocoon 2 only objects can implement the SAX-only <code>XMLizable</code>
28  * interface.</p>
29  *
30  * @author <a HREF="mailto:sylvain.wallez@anyware-tech.com">Sylvain Wallez</a>
31  * @author <a HREF="mailto:ricardo@apache.org">Ricardo Rocha</a> for the original XObject class
32  * @version CVS $Id: XMLFragment.java 53978 2004-10-07 14:25:45Z vgritsenko $
33  */

34 public interface XMLFragment extends org.apache.excalibur.xml.sax.XMLizable {
35
36     /**
37      * Appends children representing the object's state to the given node.
38      */

39     void toDOM(Node JavaDoc node) throws Exception JavaDoc;
40 }
41
Popular Tags