com.sun.xml.rpc.sp.AttributesEx Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.sun.xml.rpc.sp;
import org.xml.sax.Attributes;
/**
* This interface extends the SAX Attributes interface to expose
* information needed to support DOM Level 1 features used in document
* editing, and detection of ID attributes which are declared for
* an element.
*
* @author David Brownell
* @author JAX-RPC RI Development Team
*/
public interface AttributesEx extends Attributes {
/**
* Returns true if the attribute was specified in the document.
* This method only relates to document editing; there is no
* difference in semantics between explicitly specifying values
* of attributes in a DTD vs another part of the document.
*
* @param i the index of the attribute in the list.
*/
public boolean isSpecified(int i);
/**
* Returns the default value of the specified attribute, or null
* if no default value is known. Default values may be explicitly
* specified in documents; in fact, for standalone documents, they
* must be so specified. If isSpecified is false, the
* value returned by this method will be what getValue
* returns.
*
* @param i the index of the attribute in the list.
*/
public String getDefault(int i);
/**
* Returns the name of the ID attribute for the associated element,
* if one was declared. If such an ID value was provided, this
* name can be inferred from methods in the base class; but if none
* was provided, this will be the only way this name can be determined.
*/
public String getIdAttributeName();
}