//==============================================================================
// XmlAttributeI.java
//------------------------------------------------------------------------------
package tribble.xml;
// System imports
import java.lang.Exception;
import java.lang.String;
// Local imports
// (None)
/*******************************************************************************
* XML element attribute.
*
*
* Contains the name and value of an attribute of an XML element.
*
*
*
* Example
*
*
* The following XML element:
*
* <item
* Count="20" SKU="HG-52814(J)-F" Unit-Cost="149.95">
* Oak business desk with cherry & chrome finish
* </item>
*
*
* contains the following attributes:
*
* attribute "Count", "20"
* attribute "SKU", "HG-52814(J)-F"
* attribute "Unit-Cost", "149.95"
*
*
* @version $Revision: 1.2 $ $Date: 2003/07/27 18:30:43 $
* @since 2003-04-13
* @author
* David R. Tribble
* (david@tribble.com).
*
* Copyright ©2003 by David R. Tribble, all rights reserved.
*
* Permission is granted to freely use and distribute this source code
* provided that the original copyright and authorship notices remain
* intact.
*
* @see XmlElementI
*/
public interface XmlAttributeI
extends XmlItemI
{
// Identification
/** Revision information. */
static final String REV =
"@(#)tribble/xml/XmlAttributeI.java $Revision: 1.2 $ $Date: 2003/07/27 18:30:43 $\n";
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Public constants
// (None)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Public methods
/***************************************************************************
* Retrieve the name of this XML attribute.
*
* @return
* Name of this element attribute.
*
* @since 1.1, 2003-04-13
*/
public String getName();
/*const*/
/***************************************************************************
* Retrieve the namespace name of this XML attribute.
*
* @return
* Namespace prefix of this element attribute, which may be empty
* ("") if the attribute has no namespace prefix.
*
* @since 1.2, 2003-07-27
*/
public String getNamespace();
/*const*/
/***************************************************************************
* Retrieve the value of this XML attribute.
*
* @return
* Text value of this element attribute.
* This will be an empty string ("") if the attribute has no value.
*
* @since 1.1, 2003-04-13
*/
public String getValue();
/*const*/
}
// End XmlAttributeI.java