/*
* Copyright 1990-2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 only, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License version 2 for more details (a copy is
* included at /legal/license.txt).
*
* You should have received a copy of the GNU General Public License
* version 2 along with this work; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 or visit www.sun.com if you need additional
* information or have any questions.
*/
package com.sun.ukit.dom;
import org.w3c.dom.Notation;
import org.w3c.dom.DOMException;
/**
* DOM notation node implementation.
*
* @see org.w3c.dom.Notation
*/
/* pkg */ final class NotImp
extends XNode
implements Notation
{
private String pubid;
private String sysid;
/**
* Constructs notation object from other notation.
*/
/* pkg */ NotImp(NotImp node, boolean deep)
{
super(node, deep);
pubid = node.pubid;
sysid = node.sysid;
}
/**
* Constructs notation node object from its name and owner document.
*/
/* pkg */ NotImp(String name,
String pubid, String sysid, XDoc ownerDocument)
{
super(null, name, ownerDocument);
this.pubid = pubid;
this.sysid = sysid;
}
/**
* A code representing the type of the underlying object, as defined above.
*/
public short getNodeType()
{
return NOTATION_NODE;
}
/**
* The public identifier of this notation. If the public identifier was
* not specified, this is <code>null</code>.
* @return The public identifier of this notation, or <code>null</code>
*/
public String getPublicId()
{
return pubid;
}
/**
* The system identifier of this notation. If the system identifier was
* not specified, this is <code>null</code>.
* @return The system identifier of this notation, or <code>null</code>
*/
public String getSystemId()
{
return sysid;
}
/**
* Return true if node or one of its parents is read only.
*/
protected boolean _isRO()
{
return true;
}
}