|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.xml.stream.util.StreamReaderDelegate
com.bea.p13n.util.VersioningXMLStreamReader
public class VersioningXMLStreamReader
This class can be used to transform namespaces for processing older versions of an XML schema. This class assumes that the changes made between versions of the schema are compatible.
| Field Summary |
|---|
| 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 |
| Constructor Summary | |
|---|---|
VersioningXMLStreamReader(javax.xml.stream.XMLStreamReader source,
Map<String,String> versionMap)
Construct an instance with a source, and a version map. |
|
| Method Summary | |
|---|---|
QName |
getAttributeName(int index)
|
String |
getAttributeNamespace(int index)
|
String |
getAttributeValue(String namespaceUri,
String localName)
|
QName |
getName()
|
NamespaceContext |
getNamespaceContext()
|
String |
getNamespaceURI()
|
String |
getNamespaceURI(int index)
|
String |
getNamespaceURI(String prefix)
|
| Methods inherited from class javax.xml.stream.util.StreamReaderDelegate |
|---|
close, getAttributeCount, getAttributeLocalName, getAttributePrefix, getAttributeType, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getNamespaceCount, getNamespacePrefix, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, setParent, standaloneSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersioningXMLStreamReader(javax.xml.stream.XMLStreamReader source,
Map<String,String> versionMap)
Construct an instance with a source, and a version map.
source - This is a reader constructed over a XML input streamversionMap - A map containing namespace URIs of previous versions and the current version| Method Detail |
|---|
public QName getAttributeName(int index)
getAttributeName in interface javax.xml.stream.XMLStreamReadergetAttributeName in class javax.xml.stream.util.StreamReaderDelegatepublic String getAttributeNamespace(int index)
getAttributeNamespace in interface javax.xml.stream.XMLStreamReadergetAttributeNamespace in class javax.xml.stream.util.StreamReaderDelegate
public String getAttributeValue(String namespaceUri,
String localName)
getAttributeValue in interface javax.xml.stream.XMLStreamReadergetAttributeValue in class javax.xml.stream.util.StreamReaderDelegatepublic QName getName()
getName in interface javax.xml.stream.XMLStreamReadergetName in class javax.xml.stream.util.StreamReaderDelegatepublic String getNamespaceURI()
getNamespaceURI in interface javax.xml.stream.XMLStreamReadergetNamespaceURI in class javax.xml.stream.util.StreamReaderDelegatepublic String getNamespaceURI(int index)
getNamespaceURI in interface javax.xml.stream.XMLStreamReadergetNamespaceURI in class javax.xml.stream.util.StreamReaderDelegatepublic String getNamespaceURI(String prefix)
getNamespaceURI in interface javax.xml.stream.XMLStreamReadergetNamespaceURI in class javax.xml.stream.util.StreamReaderDelegatepublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface javax.xml.stream.XMLStreamReadergetNamespaceContext in class javax.xml.stream.util.StreamReaderDelegate
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||