tribble.xml
Interface XmlAttributeI

All Superinterfaces:
XmlItemI

public interface XmlAttributeI
extends XmlItemI

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 &amp; chrome finish
    </item> 

contains the following attributes:

    attribute "Count", "20"
    attribute "SKU", "HG-52814(J)-F"
    attribute "Unit-Cost", "149.95" 

Since:
2003-04-13
Version:
$Revision: 1.2 $ $Date: 2003/07/27 18:30:43 $
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 Also:
XmlElementI

Field Summary
static java.lang.String REV
          Revision information.
 
Fields inherited from interface tribble.xml.XmlItemI
TYPE_ATTRIBUTE, TYPE_COMMENT, TYPE_DIRECTIVE, TYPE_ELEMENT, TYPE_TEXT, TYPE_UNKNOWN
 
Method Summary
 java.lang.String getName()
          Retrieve the name of this XML attribute.
 java.lang.String getNamespace()
          Retrieve the namespace name of this XML attribute.
 java.lang.String getValue()
          Retrieve the value of this XML attribute.
 
Methods inherited from interface tribble.xml.XmlItemI
getColumnNumber, getLineNumber, getParentElement, getType
 

Field Detail

REV

public static final java.lang.String REV
Revision information.

See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
Retrieve the name of this XML attribute.

Returns:
Name of this element attribute.
Since:
1.1, 2003-04-13

getNamespace

public java.lang.String getNamespace()
Retrieve the namespace name of this XML attribute.

Returns:
Namespace prefix of this element attribute, which may be empty ("") if the attribute has no namespace prefix.
Since:
1.2, 2003-07-27

getValue

public java.lang.String getValue()
Retrieve the value of this XML attribute.

Returns:
Text value of this element attribute. This will be an empty string ("") if the attribute has no value.
Since:
1.1, 2003-04-13