All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.xml.stream.events.Attribute Maven / Gradle / Ivy

Go to download

StAX is a standard XML processing API that allows you to stream XML data from and to your application.

There is a newer version: 1.0-2
Show newest version
package javax.xml.stream.events;

import javax.xml.namespace.QName;

/**
 * An interface that contains information about an attribute.  Attributes are reported 
 * as a set of events accessible from a StartElement.  Other applications may report
 * Attributes as first-order events, for example as the results of an XPath expression.
 *
 * @version 1.0
 * @author Copyright (c) 2003 by BEA Systems. All Rights Reserved.
 * @see StartElement
 */
public interface Attribute extends XMLEvent {
  
  /**
   * Returns the QName for this attribute
   */
  QName getName();

  /**
   * Gets the normalized value of this attribute
   */
  public String getValue();

  /**
   * Gets the type of this attribute, default is 
   * the String "CDATA"
   * @return the type as a String, default is "CDATA"
   */
  public String getDTDType();

  /**
   * A flag indicating whether this attribute was actually 
   * specified in the start-tag of its element, or was defaulted from the schema. 
   * @return returns true if this was specified in the start element
   */
  public boolean isSpecified();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy