Class AttributeEvent

java.lang.Object
javanet.staxutils.events.AbstractXMLEvent
javanet.staxutils.events.AttributeEvent
All Implemented Interfaces:
Serializable, Cloneable, ExtendedXMLEvent, Attribute, XMLEvent, XMLStreamConstants
Direct Known Subclasses:
NamespaceEvent

public class AttributeEvent extends AbstractXMLEvent implements Attribute
Attribute event implementation.
Version:
$Revision: 1.3 $
Author:
Christian Niles
See Also:
  • Constructor Details

    • AttributeEvent

      public AttributeEvent(QName name, String value)
      Constructs an AttributeEvent with the specified name and value.
      Parameters:
      name - The qualified attribute name.
      value - The attribute value.
    • AttributeEvent

      public AttributeEvent(QName name, String value, boolean specified)
      Constructs a new AttributeEvent.
      Parameters:
      name - The qualified attribute name.
      value - The attribute value.
      specified - Whether the attribute was specified in the document (true</code), or inherited from a DTD or schema (false).
    • AttributeEvent

      public AttributeEvent(QName name, String value, Location location)
      Constructs a new AttributeEvent.
      Parameters:
      name - The qualified attribute name.
      value - The attribute value.
      location - The Location of the attribute.
    • AttributeEvent

      public AttributeEvent(QName name, String value, Location location, QName schemaType)
      Constructs a new AttributeEvent.
      Parameters:
      name - The qualified attribute name.
      value - The attribute value.
      location - The Location of the attribute.
      schemaType - The attribute type as specified in the schema.
    • AttributeEvent

      public AttributeEvent(QName name, String value, boolean specified, String dtdType, Location location, QName schemaType)
      Constructs a new AttributeEvent.
      Parameters:
      name - The qualified attribute name.
      value - The attribute value.
      specified - Whether the attribute was specified in the document (true</code), or inherited from a DTD or schema (false).
      location - The Location of the attribute.
      dtdType - The attribute type as specified in the DTD.
      schemaType - The attribute type as specified in the schema.
    • AttributeEvent

      public AttributeEvent(QName name, String value, Attribute that)
      Copy constructor that optionally allows the name and/or value to be changed.
      Parameters:
      name - The new attribute name, or null to use the name from the provided attribute.
      value - The new attribute value, or null to use the value from the provided attribute.
      that - The Attribute event to copy.
    • AttributeEvent

      public AttributeEvent(Attribute that)
      Copy constructor.
      Parameters:
      that - The Attribute event to copy.
  • Method Details