org.apache.xml.security.stax.impl.stax
Class XMLSecNamespaceImpl

java.lang.Object
  extended by org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
      extended by org.apache.xml.security.stax.impl.stax.XMLSecNamespaceImpl
All Implemented Interfaces:
Comparable<XMLSecNamespace>, Attribute, Namespace, XMLEvent, XMLStreamConstants, XMLSecEvent, XMLSecNamespace

public class XMLSecNamespaceImpl
extends XMLSecEventBaseImpl
implements XMLSecNamespace

Class to let XML-Namespaces be comparable how it is requested by C14N

Version:
$Revision: 1513098 $ $Date: 2013-08-12 11:28:33 +0100 (Mon, 12 Aug 2013) $
Author:
$Author: coheigea $

Field Summary
 
Fields inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
parentXMLSecStartELement
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Method Summary
 int compareTo(XMLSecNamespace o)
           
 boolean equals(Object obj)
           
 String getDTDType()
           
 int getEventType()
           
static XMLSecNamespace getInstance(String prefix, String uri)
           
 QName getName()
           
 String getNamespaceURI()
           
 String getPrefix()
           
 String getValue()
           
 int hashCode()
           
 boolean isDefaultNamespaceDeclaration()
           
 boolean isNamespace()
           
 boolean isSpecified()
           
 String toString()
           
 
Methods inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
asCharacters, asEndElement, asStartElement, getDocumentLevel, getElementPath, getElementPath, getEmptyIterator, getLocation, getParentXMLSecStartElement, getSchemaType, getStartElementAtLevel, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setParentXMLSecStartElement, writeAsEncodedUnicode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.xml.security.stax.ext.stax.XMLSecEvent
asCharacters, asEndElement, asStartElement, getDocumentLevel, getElementPath, getElementPath, getParentXMLSecStartElement, getStartElementAtLevel, setParentXMLSecStartElement
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Method Detail

getInstance

public static XMLSecNamespace getInstance(String prefix,
                                          String uri)

compareTo

public int compareTo(XMLSecNamespace o)
Specified by:
compareTo in interface Comparable<XMLSecNamespace>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getName

public QName getName()
Specified by:
getName in interface Attribute

getValue

public String getValue()
Specified by:
getValue in interface Attribute

getDTDType

public String getDTDType()
Specified by:
getDTDType in interface Attribute

isSpecified

public boolean isSpecified()
Specified by:
isSpecified in interface Attribute

getNamespaceURI

public String getNamespaceURI()
Specified by:
getNamespaceURI in interface Namespace

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface Namespace

isDefaultNamespaceDeclaration

public boolean isDefaultNamespaceDeclaration()
Specified by:
isDefaultNamespaceDeclaration in interface Namespace

getEventType

public int getEventType()
Specified by:
getEventType in interface XMLEvent

isNamespace

public boolean isNamespace()
Specified by:
isNamespace in interface XMLEvent
Overrides:
isNamespace in class XMLSecEventBaseImpl

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.