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