1 /**
2 * JSpiff
3 * -----------------
4 * Copyright (c) 2005-2006 Emil A. Lefkof III
5 *
6 * I always give it my best shot to make a program useful and solid, but
7 * remeber that there is absolutely no warranty for using this program as
8 * stated in the following terms:
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22 package com.melloware.jspiff.jaxp;
23
24 import java.io.IOException;
25 import java.io.PrintWriter;
26 import java.io.Writer;
27
28 import org.w3c.dom.Node;
29
30 /**
31 * <b>IXspfAnythingMixed</b> is generated from xspf.rng by Relaxer.
32 * Concrete classes of the interface are RString, XspfAnythingAnyAttr
33 * and XspfAnythingAnyElement.
34 * <p>
35 * @version xspf.rng (Wed Sep 27 17:36:25 EDT 2006)
36 * @author Relaxer 1.1b (http://www.relaxer.org)
37 * @author Emil A. Lefkof III <info@melloware.com>
38 */
39 public interface IXspfAnythingMixed {
40
41 /**
42 * @return Object
43 */
44 Object clone();
45
46 /**
47 * Creates a DOM representation of the object.
48 * Result is appended to the Node <code>parent</code>.
49 *
50 * @param parent
51 */
52 void makeElement(Node parent);
53
54 /**
55 * Makes an XML text representation.
56 *
57 * @param buffer
58 */
59 void makeTextAttribute(StringBuffer buffer);
60
61 /**
62 * Makes an XML text representation.
63 *
64 * @param buffer
65 * @exception IOException
66 */
67 void makeTextAttribute(Writer buffer)
68 throws IOException;
69
70 /**
71 * Makes an XML text representation.
72 *
73 * @param buffer
74 */
75 void makeTextAttribute(PrintWriter buffer);
76
77 /**
78 * Makes an XML text representation.
79 *
80 * @param buffer
81 */
82 void makeTextElement(StringBuffer buffer);
83
84 /**
85 * Makes an XML text representation.
86 *
87 * @param buffer
88 * @exception IOException
89 */
90 void makeTextElement(Writer buffer)
91 throws IOException;
92
93 /**
94 * Makes an XML text representation.
95 *
96 * @param buffer
97 */
98 void makeTextElement(PrintWriter buffer);
99
100 /**
101 * @param stack
102 */
103 void setup(RStack stack);
104
105 /**
106 * @return String
107 */
108 String toString();
109 }