Class XMLSecStartElementImpl
- java.lang.Object
-
- org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
-
- org.apache.xml.security.stax.impl.stax.XMLSecStartElementImpl
-
- All Implemented Interfaces:
javax.xml.stream.events.StartElement
,javax.xml.stream.events.XMLEvent
,javax.xml.stream.XMLStreamConstants
,XMLSecEvent
,XMLSecStartElement
public class XMLSecStartElementImpl extends XMLSecEventBaseImpl implements XMLSecStartElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
XMLSecEventBaseImpl.LocationImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<XMLSecAttribute>
attributes
private javax.xml.namespace.QName
elementName
private XMLSecNamespace
elementNamespace
private java.util.List<XMLSecNamespace>
namespaces
-
Fields inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
parentXMLSecStartELement
-
-
Constructor Summary
Constructors Constructor Description XMLSecStartElementImpl(javax.xml.namespace.QName elementName, java.util.Collection<XMLSecAttribute> attributes, java.util.Collection<XMLSecNamespace> namespaces)
XMLSecStartElementImpl(javax.xml.namespace.QName elementName, java.util.List<XMLSecAttribute> attributes, java.util.List<XMLSecNamespace> namespaces, XMLSecStartElement parentXmlSecStartElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(XMLSecAttribute xmlSecAttribute)
void
addNamespace(XMLSecNamespace xmlSecNamespace)
XMLSecStartElement
asStartElement()
javax.xml.stream.events.Attribute
getAttributeByName(javax.xml.namespace.QName name)
java.util.Iterator<javax.xml.stream.events.Attribute>
getAttributes()
void
getAttributesFromCurrentScope(java.util.List<XMLSecAttribute> comparableAttributeList)
int
getDocumentLevel()
XMLSecNamespace
getElementNamespace()
void
getElementPath(java.util.List<javax.xml.namespace.QName> list)
int
getEventType()
javax.xml.namespace.QName
getName()
javax.xml.namespace.NamespaceContext
getNamespaceContext()
java.util.Iterator<javax.xml.stream.events.Namespace>
getNamespaces()
void
getNamespacesFromCurrentScope(java.util.List<XMLSecNamespace> comparableNamespaceList)
java.lang.String
getNamespaceURI(java.lang.String prefix)
java.util.List<XMLSecAttribute>
getOnElementDeclaredAttributes()
java.util.List<XMLSecNamespace>
getOnElementDeclaredNamespaces()
XMLSecStartElement
getStartElementAtLevel(int level)
boolean
isStartElement()
void
writeAsEncodedUnicode(java.io.Writer writer)
-
Methods inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
asCharacters, asEndElement, getElementPath, getEmptyIterator, getLocation, getParentXMLSecStartElement, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, setParentXMLSecStartElement
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
-
Methods inherited from interface org.apache.xml.security.stax.ext.stax.XMLSecEvent
asCharacters, asEndElement, getElementPath, getParentXMLSecStartElement, setParentXMLSecStartElement
-
-
-
-
Field Detail
-
elementName
private final javax.xml.namespace.QName elementName
-
elementNamespace
private XMLSecNamespace elementNamespace
-
attributes
private java.util.List<XMLSecAttribute> attributes
-
namespaces
private java.util.List<XMLSecNamespace> namespaces
-
-
Constructor Detail
-
XMLSecStartElementImpl
public XMLSecStartElementImpl(javax.xml.namespace.QName elementName, java.util.List<XMLSecAttribute> attributes, java.util.List<XMLSecNamespace> namespaces, XMLSecStartElement parentXmlSecStartElement)
-
XMLSecStartElementImpl
public XMLSecStartElementImpl(javax.xml.namespace.QName elementName, java.util.Collection<XMLSecAttribute> attributes, java.util.Collection<XMLSecNamespace> namespaces)
-
-
Method Detail
-
getName
public javax.xml.namespace.QName getName()
- Specified by:
getName
in interfacejavax.xml.stream.events.StartElement
-
getElementNamespace
public XMLSecNamespace getElementNamespace()
- Specified by:
getElementNamespace
in interfaceXMLSecStartElement
-
getAttributes
public java.util.Iterator<javax.xml.stream.events.Attribute> getAttributes()
- Specified by:
getAttributes
in interfacejavax.xml.stream.events.StartElement
-
getAttributesFromCurrentScope
public void getAttributesFromCurrentScope(java.util.List<XMLSecAttribute> comparableAttributeList)
- Specified by:
getAttributesFromCurrentScope
in interfaceXMLSecStartElement
-
getOnElementDeclaredAttributes
public java.util.List<XMLSecAttribute> getOnElementDeclaredAttributes()
- Specified by:
getOnElementDeclaredAttributes
in interfaceXMLSecStartElement
-
addAttribute
public void addAttribute(XMLSecAttribute xmlSecAttribute)
- Specified by:
addAttribute
in interfaceXMLSecStartElement
-
getDocumentLevel
public int getDocumentLevel()
- Specified by:
getDocumentLevel
in interfaceXMLSecEvent
- Overrides:
getDocumentLevel
in classXMLSecEventBaseImpl
-
getElementPath
public void getElementPath(java.util.List<javax.xml.namespace.QName> list)
- Specified by:
getElementPath
in interfaceXMLSecEvent
- Overrides:
getElementPath
in classXMLSecEventBaseImpl
-
getStartElementAtLevel
public XMLSecStartElement getStartElementAtLevel(int level)
- Specified by:
getStartElementAtLevel
in interfaceXMLSecEvent
- Overrides:
getStartElementAtLevel
in classXMLSecEventBaseImpl
-
getNamespaces
public java.util.Iterator<javax.xml.stream.events.Namespace> getNamespaces()
- Specified by:
getNamespaces
in interfacejavax.xml.stream.events.StartElement
-
getNamespacesFromCurrentScope
public void getNamespacesFromCurrentScope(java.util.List<XMLSecNamespace> comparableNamespaceList)
- Specified by:
getNamespacesFromCurrentScope
in interfaceXMLSecStartElement
-
getOnElementDeclaredNamespaces
public java.util.List<XMLSecNamespace> getOnElementDeclaredNamespaces()
- Specified by:
getOnElementDeclaredNamespaces
in interfaceXMLSecStartElement
-
addNamespace
public void addNamespace(XMLSecNamespace xmlSecNamespace)
- Specified by:
addNamespace
in interfaceXMLSecStartElement
-
getAttributeByName
public javax.xml.stream.events.Attribute getAttributeByName(javax.xml.namespace.QName name)
- Specified by:
getAttributeByName
in interfacejavax.xml.stream.events.StartElement
-
getNamespaceContext
public javax.xml.namespace.NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext
in interfacejavax.xml.stream.events.StartElement
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURI
in interfacejavax.xml.stream.events.StartElement
-
getEventType
public int getEventType()
- Specified by:
getEventType
in interfacejavax.xml.stream.events.XMLEvent
-
isStartElement
public boolean isStartElement()
- Specified by:
isStartElement
in interfacejavax.xml.stream.events.XMLEvent
- Overrides:
isStartElement
in classXMLSecEventBaseImpl
-
asStartElement
public XMLSecStartElement asStartElement()
- Specified by:
asStartElement
in interfacejavax.xml.stream.events.XMLEvent
- Specified by:
asStartElement
in interfaceXMLSecEvent
- Specified by:
asStartElement
in interfaceXMLSecStartElement
- Overrides:
asStartElement
in classXMLSecEventBaseImpl
-
writeAsEncodedUnicode
public void writeAsEncodedUnicode(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
- Specified by:
writeAsEncodedUnicode
in interfacejavax.xml.stream.events.XMLEvent
- Overrides:
writeAsEncodedUnicode
in classXMLSecEventBaseImpl
- Throws:
javax.xml.stream.XMLStreamException
-
-