/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Notations are how the Document Type Description (DTD) records hints
* about the format of an XML "unparsed entity" -- in other words,
* non-XML data bound to this document type, which some applications
* may wish to consult when manipulating the document. A Notation
* represents a name-value pair, with its nodeName being set to the
* declared name of the notation.
* <P>
* Notations are also used to formally declare the "targets" of
* Processing Instructions.
* <P>
* Note that the Notation's data is non-DOM information; the DOM only
* records what and where it is.
* <P>
* See the XML 1.0 spec, sections 4.7 and 2.6, for more info.
* <P>
* Level 1 of the DOM does not support editing Notation contents.
*
* @xerces.internal
*
* @since PR-DOM-Level-1-19980818.
*/
public class NotationImpl
extends NodeImpl
implements Notation {
//
// Constants
//
/** Serialization version. */
//
// Data
//
/** Notation name. */
/** Public identifier. */
/** System identifier. */
/** Base URI*/
//
// Constructors
//
/** Factory constructor. */
super(ownerDoc);
}
//
// Node methods
//
/**
* A short integer indicating what type of node this is. The named
* constants for this value are defined in the org.w3c.dom.Node interface.
*/
public short getNodeType() {
return Node.NOTATION_NODE;
}
/**
* Returns the notation name
*/
if (needsSyncData()) {
}
return name;
}
//
// Notation methods
//
/**
* The Public Identifier for this Notation. If no public identifier
* was specified, this will be null.
*/
if (needsSyncData()) {
}
return publicId;
} // getPublicId():String
/**
* The System Identifier for this Notation. If no system identifier
* was specified, this will be null.
*/
if (needsSyncData()) {
}
return systemId;
} // getSystemId():String
//
// Public methods
//
/**
* NON-DOM: The Public Identifier for this Notation. If no public
* identifier was specified, this will be null.
*/
if (isReadOnly()) {
throw new DOMException(
DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null));
}
if (needsSyncData()) {
}
} // setPublicId(String)
/**
* NON-DOM: The System Identifier for this Notation. If no system
* identifier was specified, this will be null.
*/
if(isReadOnly()) {
throw new DOMException(
DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null));
}
if (needsSyncData()) {
}
} // setSystemId(String)
/**
* Returns the absolute base URI of this node or null if the implementation
* wasn't able to obtain an absolute URI. Note: If the URI is malformed, a
* null is returned.
*
* @return The absolute base URI of this node or null.
* @since DOM Level 3
*/
if (needsSyncData()) {
}
try {
}
// REVISIT: what should happen in this case?
return null;
}
}
return baseURI;
}
/** NON-DOM: set base uri*/
if (needsSyncData()) {
}
}
} // class NotationImpl