View Javadoc

1   /*
2    * $Id$
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.module.xml.stax;
12  
13  import java.util.List;
14  
15  import javanet.staxutils.events.StartElementEvent;
16  
17  import javax.xml.namespace.NamespaceContext;
18  import javax.xml.namespace.QName;
19  import javax.xml.stream.Location;
20  
21  public class StartElementEventX extends StartElementEvent
22  {
23  
24      private final List attributes2;
25      private final List namespaces2;
26  
27      public StartElementEventX(QName name,
28                                List attributes,
29                                List namespaces,
30                                NamespaceContext namespaceCtx,
31                                Location location,
32                                QName schemaType)
33      {
34          super(name, attributes.iterator(), namespaces.iterator(), namespaceCtx, location, schemaType);
35          attributes2 = attributes;
36          namespaces2 = namespaces;
37      }
38  
39      public List getAttributeList()
40      {
41          return attributes2;
42      }
43  
44      public List getNamespaceList()
45      {
46          return namespaces2;
47      }
48      
49      
50  }
51  
52