Class XMLSecEventBaseImpl
- java.lang.Object
-
- org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
-
- All Implemented Interfaces:
javax.xml.stream.events.XMLEvent
,javax.xml.stream.XMLStreamConstants
,XMLSecEvent
- Direct Known Subclasses:
XMLSecAttributeImpl
,XMLSecCharactersImpl
,XMLSecCommentImpl
,XMLSecDTDImpl
,XMLSecEndDocumentImpl
,XMLSecEndElementImpl
,XMLSecEntityDeclarationImpl
,XMLSecEntityReferenceImpl
,XMLSecNamespaceImpl
,XMLSecProcessingInstructionImpl
,XMLSecStartDocumentImpl
,XMLSecStartElementImpl
public abstract class XMLSecEventBaseImpl extends java.lang.Object implements XMLSecEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
XMLSecEventBaseImpl.EmptyIterator<E>
(package private) static class
XMLSecEventBaseImpl.LocationImpl
-
Field Summary
Fields Modifier and Type Field Description private static XMLSecEventBaseImpl.EmptyIterator
EMPTY_ITERATOR
protected XMLSecStartElement
parentXMLSecStartELement
-
Constructor Summary
Constructors Constructor Description XMLSecEventBaseImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLSecCharacters
asCharacters()
XMLSecEndElement
asEndElement()
XMLSecStartElement
asStartElement()
int
getDocumentLevel()
java.util.List<javax.xml.namespace.QName>
getElementPath()
void
getElementPath(java.util.List<javax.xml.namespace.QName> list)
protected static <T> XMLSecEventBaseImpl.EmptyIterator<T>
getEmptyIterator()
javax.xml.stream.Location
getLocation()
XMLSecStartElement
getParentXMLSecStartElement()
javax.xml.namespace.QName
getSchemaType()
XMLSecStartElement
getStartElementAtLevel(int level)
boolean
isAttribute()
boolean
isCharacters()
boolean
isEndDocument()
boolean
isEndElement()
boolean
isEntityReference()
boolean
isNamespace()
boolean
isProcessingInstruction()
boolean
isStartDocument()
boolean
isStartElement()
void
setParentXMLSecStartElement(XMLSecStartElement xmlSecStartElement)
void
writeAsEncodedUnicode(java.io.Writer writer)
-
-
-
Field Detail
-
EMPTY_ITERATOR
private static final XMLSecEventBaseImpl.EmptyIterator EMPTY_ITERATOR
-
parentXMLSecStartELement
protected XMLSecStartElement parentXMLSecStartELement
-
-
Method Detail
-
getEmptyIterator
protected static <T> XMLSecEventBaseImpl.EmptyIterator<T> getEmptyIterator()
-
setParentXMLSecStartElement
public void setParentXMLSecStartElement(XMLSecStartElement xmlSecStartElement)
- Specified by:
setParentXMLSecStartElement
in interfaceXMLSecEvent
-
getParentXMLSecStartElement
public XMLSecStartElement getParentXMLSecStartElement()
- Specified by:
getParentXMLSecStartElement
in interfaceXMLSecEvent
-
getDocumentLevel
public int getDocumentLevel()
- Specified by:
getDocumentLevel
in interfaceXMLSecEvent
-
getElementPath
public void getElementPath(java.util.List<javax.xml.namespace.QName> list)
- Specified by:
getElementPath
in interfaceXMLSecEvent
-
getElementPath
public java.util.List<javax.xml.namespace.QName> getElementPath()
- Specified by:
getElementPath
in interfaceXMLSecEvent
-
getStartElementAtLevel
public XMLSecStartElement getStartElementAtLevel(int level)
- Specified by:
getStartElementAtLevel
in interfaceXMLSecEvent
-
getLocation
public javax.xml.stream.Location getLocation()
- Specified by:
getLocation
in interfacejavax.xml.stream.events.XMLEvent
-
isStartElement
public boolean isStartElement()
- Specified by:
isStartElement
in interfacejavax.xml.stream.events.XMLEvent
-
isAttribute
public boolean isAttribute()
- Specified by:
isAttribute
in interfacejavax.xml.stream.events.XMLEvent
-
isNamespace
public boolean isNamespace()
- Specified by:
isNamespace
in interfacejavax.xml.stream.events.XMLEvent
-
isEndElement
public boolean isEndElement()
- Specified by:
isEndElement
in interfacejavax.xml.stream.events.XMLEvent
-
isEntityReference
public boolean isEntityReference()
- Specified by:
isEntityReference
in interfacejavax.xml.stream.events.XMLEvent
-
isProcessingInstruction
public boolean isProcessingInstruction()
- Specified by:
isProcessingInstruction
in interfacejavax.xml.stream.events.XMLEvent
-
isCharacters
public boolean isCharacters()
- Specified by:
isCharacters
in interfacejavax.xml.stream.events.XMLEvent
-
isStartDocument
public boolean isStartDocument()
- Specified by:
isStartDocument
in interfacejavax.xml.stream.events.XMLEvent
-
isEndDocument
public boolean isEndDocument()
- Specified by:
isEndDocument
in interfacejavax.xml.stream.events.XMLEvent
-
asStartElement
public XMLSecStartElement asStartElement()
- Specified by:
asStartElement
in interfacejavax.xml.stream.events.XMLEvent
- Specified by:
asStartElement
in interfaceXMLSecEvent
-
asEndElement
public XMLSecEndElement asEndElement()
- Specified by:
asEndElement
in interfacejavax.xml.stream.events.XMLEvent
- Specified by:
asEndElement
in interfaceXMLSecEvent
-
asCharacters
public XMLSecCharacters asCharacters()
- Specified by:
asCharacters
in interfacejavax.xml.stream.events.XMLEvent
- Specified by:
asCharacters
in interfaceXMLSecEvent
-
getSchemaType
public javax.xml.namespace.QName getSchemaType()
- Specified by:
getSchemaType
in interfacejavax.xml.stream.events.XMLEvent
-
writeAsEncodedUnicode
public void writeAsEncodedUnicode(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
- Specified by:
writeAsEncodedUnicode
in interfacejavax.xml.stream.events.XMLEvent
- Throws:
javax.xml.stream.XMLStreamException
-
-