View Javadoc

1   /*
2    * Copyright 2002 - 2006 JEuclid, http://jeuclid.sf.net
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  
17  /* $Id: AbstractContainer.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */
18  
19  package net.sourceforge.jeuclid.elements.presentation;
20  
21  import net.sourceforge.jeuclid.elements.AbstractJEuclidElement;
22  
23  import org.apache.batik.dom.AbstractDocument;
24  import org.w3c.dom.mathml.MathMLDeclareElement;
25  import org.w3c.dom.mathml.MathMLElement;
26  import org.w3c.dom.mathml.MathMLNodeList;
27  import org.w3c.dom.mathml.MathMLPresentationContainer;
28  
29  /**
30   * Abstract implementation for all classes that provide support for the DOM
31   * MathMLContainer interface.
32   * 
33   * @version $Revision: bc1d5fde7b73 $
34   */
35  public abstract class AbstractContainer extends AbstractJEuclidElement
36          implements MathMLPresentationContainer {
37  
38      /**
39       * Default constructor. Sets MathML Namespace.
40       * 
41       * @param qname
42       *            Qualified name.
43       * @param odoc
44       *            Owner Document.
45       */
46      public AbstractContainer(final String qname, final AbstractDocument odoc) {
47          super(qname, odoc);
48      }
49  
50      /** {@inheritDoc} */
51      public int getNArguments() {
52          throw new UnsupportedOperationException();
53      }
54  
55      /** {@inheritDoc} */
56      public MathMLNodeList getArguments() {
57          throw new UnsupportedOperationException();
58      }
59  
60      /** {@inheritDoc} */
61      public MathMLNodeList getDeclarations() {
62          throw new UnsupportedOperationException();
63      }
64  
65      /** {@inheritDoc} */
66      public MathMLElement getArgument(final int index) {
67          throw new UnsupportedOperationException();
68      }
69  
70      /** {@inheritDoc} */
71      public MathMLElement setArgument(final MathMLElement newArgument,
72              final int index) {
73          throw new UnsupportedOperationException();
74      }
75  
76      /** {@inheritDoc} */
77      public MathMLElement insertArgument(final MathMLElement newArgument,
78              final int index) {
79          throw new UnsupportedOperationException();
80      }
81  
82      /** {@inheritDoc} */
83      public void deleteArgument(final int index) {
84          throw new UnsupportedOperationException();
85      }
86  
87      /** {@inheritDoc} */
88      public MathMLElement removeArgument(final int index) {
89          throw new UnsupportedOperationException();
90      }
91  
92      /** {@inheritDoc} */
93      public MathMLDeclareElement getDeclaration(final int index) {
94          throw new UnsupportedOperationException();
95      }
96  
97      /** {@inheritDoc} */
98      public MathMLDeclareElement setDeclaration(
99              final MathMLDeclareElement newDeclaration, final int index) {
100         throw new UnsupportedOperationException();
101     }
102 
103     /** {@inheritDoc} */
104     public MathMLDeclareElement insertDeclaration(
105             final MathMLDeclareElement newDeclaration, final int index) {
106         throw new UnsupportedOperationException();
107     }
108 
109     /** {@inheritDoc} */
110     public MathMLDeclareElement removeDeclaration(final int index) {
111         throw new UnsupportedOperationException();
112     }
113 
114     /** {@inheritDoc} */
115     public void deleteDeclaration(final int index) {
116         throw new UnsupportedOperationException();
117     }
118 }