CommentImpl.java revision 286
0N/A/*
2362N/A * reserved comment block
0N/A * DO NOT REMOVE OR ALTER!
0N/A */
0N/A/*
0N/A * Copyright 1999-2002,2004 The Apache Software Foundation.
0N/A *
0N/A * Licensed under the Apache License, Version 2.0 (the "License");
0N/A * you may not use this file except in compliance with the License.
0N/A * You may obtain a copy of the License at
0N/A *
0N/A * http://www.apache.org/licenses/LICENSE-2.0
0N/A *
0N/A * Unless required by applicable law or agreed to in writing, software
0N/A * distributed under the License is distributed on an "AS IS" BASIS,
0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0N/A * See the License for the specific language governing permissions and
0N/A * limitations under the License.
2362N/A */
2362N/A
2362N/Apackage com.sun.org.apache.xerces.internal.dom;
0N/A
0N/Aimport org.w3c.dom.CharacterData;
0N/Aimport org.w3c.dom.Comment;
0N/Aimport org.w3c.dom.Node;
0N/A
0N/A/**
0N/A * Represents an XML (or HTML) comment.
0N/A *
0N/A * @xerces.internal
0N/A *
0N/A * @since PR-DOM-Level-1-19980818.
0N/A */
0N/Apublic class CommentImpl
0N/A extends CharacterDataImpl
0N/A implements CharacterData, Comment {
0N/A
0N/A //
0N/A // Constants
0N/A //
0N/A
0N/A /** Serialization version. */
0N/A static final long serialVersionUID = -2685736833408134044L;
0N/A
0N/A //
0N/A // Constructors
0N/A //
0N/A
0N/A /** Factory constructor. */
0N/A public CommentImpl(CoreDocumentImpl ownerDoc, String data) {
0N/A super(ownerDoc, data);
0N/A }
0N/A
0N/A //
0N/A // Node methods
0N/A //
0N/A
0N/A /**
0N/A * A short integer indicating what type of node this is. The named
0N/A * constants for this value are defined in the org.w3c.dom.Node interface.
0N/A */
0N/A public short getNodeType() {
0N/A return Node.COMMENT_NODE;
0N/A }
0N/A
0N/A /** Returns the node name. */
0N/A public String getNodeName() {
0N/A return "#comment";
0N/A }
0N/A
0N/A} // class CommentImpl
0N/A