001 /*
002 * Copyright 2002 - 2006 JEuclid, http://jeuclid.sf.net
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 /* $Id: AbstractContainer.java,v bc1d5fde7b73 2009/06/01 14:40:54 maxberger $ */
018
019 package net.sourceforge.jeuclid.elements.presentation;
020
021 import net.sourceforge.jeuclid.elements.AbstractJEuclidElement;
022
023 import org.apache.batik.dom.AbstractDocument;
024 import org.w3c.dom.mathml.MathMLDeclareElement;
025 import org.w3c.dom.mathml.MathMLElement;
026 import org.w3c.dom.mathml.MathMLNodeList;
027 import org.w3c.dom.mathml.MathMLPresentationContainer;
028
029 /**
030 * Abstract implementation for all classes that provide support for the DOM
031 * MathMLContainer interface.
032 *
033 * @version $Revision: bc1d5fde7b73 $
034 */
035 public abstract class AbstractContainer extends AbstractJEuclidElement
036 implements MathMLPresentationContainer {
037
038 /**
039 * Default constructor. Sets MathML Namespace.
040 *
041 * @param qname
042 * Qualified name.
043 * @param odoc
044 * Owner Document.
045 */
046 public AbstractContainer(final String qname, final AbstractDocument odoc) {
047 super(qname, odoc);
048 }
049
050 /** {@inheritDoc} */
051 public int getNArguments() {
052 throw new UnsupportedOperationException();
053 }
054
055 /** {@inheritDoc} */
056 public MathMLNodeList getArguments() {
057 throw new UnsupportedOperationException();
058 }
059
060 /** {@inheritDoc} */
061 public MathMLNodeList getDeclarations() {
062 throw new UnsupportedOperationException();
063 }
064
065 /** {@inheritDoc} */
066 public MathMLElement getArgument(final int index) {
067 throw new UnsupportedOperationException();
068 }
069
070 /** {@inheritDoc} */
071 public MathMLElement setArgument(final MathMLElement newArgument,
072 final int index) {
073 throw new UnsupportedOperationException();
074 }
075
076 /** {@inheritDoc} */
077 public MathMLElement insertArgument(final MathMLElement newArgument,
078 final int index) {
079 throw new UnsupportedOperationException();
080 }
081
082 /** {@inheritDoc} */
083 public void deleteArgument(final int index) {
084 throw new UnsupportedOperationException();
085 }
086
087 /** {@inheritDoc} */
088 public MathMLElement removeArgument(final int index) {
089 throw new UnsupportedOperationException();
090 }
091
092 /** {@inheritDoc} */
093 public MathMLDeclareElement getDeclaration(final int index) {
094 throw new UnsupportedOperationException();
095 }
096
097 /** {@inheritDoc} */
098 public MathMLDeclareElement setDeclaration(
099 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 }