01: /*
02:
03: Licensed to the Apache Software Foundation (ASF) under one or more
04: contributor license agreements. See the NOTICE file distributed with
05: this work for additional information regarding copyright ownership.
06: The ASF licenses this file to You under the Apache License, Version 2.0
07: (the "License"); you may not use this file except in compliance with
08: the License. You may obtain a copy of the License at
09:
10: http://www.apache.org/licenses/LICENSE-2.0
11:
12: Unless required by applicable law or agreed to in writing, software
13: distributed under the License is distributed on an "AS IS" BASIS,
14: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: See the License for the specific language governing permissions and
16: limitations under the License.
17:
18: */
19: package org.apache.batik.dom.svg;
20:
21: import org.apache.batik.dom.AbstractDocument;
22:
23: import org.w3c.dom.Node;
24: import org.w3c.dom.svg.SVGVKernElement;
25:
26: /**
27: * This class implements {@link SVGVKernElement}.
28: *
29: * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
30: * @version $Id: SVGOMVKernElement.java 489964 2006-12-24 01:30:23Z cam $
31: */
32: public class SVGOMVKernElement extends SVGOMElement implements
33: SVGVKernElement {
34:
35: // /**
36: // * Table mapping XML attribute names to TraitInformation objects.
37: // */
38: // protected static DoublyIndexedTable xmlTraitInformation;
39: // static {
40: // DoublyIndexedTable t =
41: // new DoublyIndexedTable(SVGOMElement.xmlTraitInformation);
42: // t.put(null, SVG_U1_ATTRIBUTE,
43: // new TraitInformation(false, SVGTypes.TYPE_CDATA));
44: // t.put(null, SVG_G1_ATTRIBUTE,
45: // new TraitInformation(false, SVGTypes.TYPE_CDATA));
46: // t.put(null, SVG_U2_ATTRIBUTE,
47: // new TraitInformation(false, SVGTypes.TYPE_CDATA));
48: // t.put(null, SVG_G2_ATTRIBUTE,
49: // new TraitInformation(false, SVGTypes.TYPE_CDATA));
50: // t.put(null, SVG_K_ATTRIBUTE,
51: // new TraitInformation(false, SVGTypes.TYPE_NUMBER));
52: // xmlTraitInformation = t;
53: // }
54:
55: /**
56: * Creates a new SVGOMVKernElement object.
57: */
58: protected SVGOMVKernElement() {
59: }
60:
61: /**
62: * Creates a new SVGOMVKernElement object.
63: * @param prefix The namespace prefix.
64: * @param owner The owner document.
65: */
66: public SVGOMVKernElement(String prefix, AbstractDocument owner) {
67: super (prefix, owner);
68: }
69:
70: /**
71: * <b>DOM</b>: Implements {@link Node#getLocalName()}.
72: */
73: public String getLocalName() {
74: return SVG_VKERN_TAG;
75: }
76:
77: /**
78: * Returns a new uninitialized instance of this object's class.
79: */
80: protected Node newNode() {
81: return new SVGOMVKernElement();
82: }
83:
84: // /**
85: // * Returns the table of TraitInformation objects for this element.
86: // */
87: // protected DoublyIndexedTable getTraitInformationTable() {
88: // return xmlTraitInformation;
89: // }
90: }
|