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