| java.lang.Object org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl
ADBXMLStreamReaderImpl | public class ADBXMLStreamReaderImpl implements ADBXMLStreamReader(Code) | | This is the new implementation of the ADBpullaparser. The approach here is simple When the pull
parser needs to generate events for a particular name-value(s) pair it always handes over
(delegates) the task to another pull parser which knows how to deal with it The common types of
name value pairs we'll come across are 1. String name/QName name - String value 2. String
name/QName name - String[] value 3. OMElementkey - OMElement value 4. QName name/String name -
ADBBean value 5. QName name/String name - Java bean 5. QName name/String name - Datahandler
As for the attributes, these are the possible combinations in the array 1. String name/QName name
- String value 2. OMAttributeKey - OMAttribute
Note that certain array methods have been deliberately removed to avoid complications. The
generated code will take the trouble to lay the elements of the array in the correct order
Hence there will be a parser impl that knows how to handle these types, and this parent parser
will always delegate these tasks to the child pullparasers in effect this is one huge state
machine that has only a few states and delegates things down to the child parsers whenever
possible
|
ADBXMLStreamReaderImpl | public ADBXMLStreamReaderImpl(QName adbBeansQName, Object[] properties, Object[] attributes)(Code) | | |
ADBXMLStreamReaderImpl | public ADBXMLStreamReaderImpl(QName adbBeansQName, Object[] properties, Object[] attributes, TypeTable typeTable, boolean qualified)(Code) | | |
addNamespaceContext | public void addNamespaceContext(NamespaceContext nsContext)(Code) | | add the namespace context
|
getAttributeCount | public int getAttributeCount()(Code) | | |
getAttributeLocalName | public String getAttributeLocalName(int i)(Code) | | |
getAttributeName | public QName getAttributeName(int i)(Code) | | Parameters: i - |
getAttributeNamespace | public String getAttributeNamespace(int i)(Code) | | |
getAttributePrefix | public String getAttributePrefix(int i)(Code) | | |
getAttributeValue | public String getAttributeValue(int i)(Code) | | |
getCharacterEncodingScheme | public String getCharacterEncodingScheme()(Code) | | |
getEventType | public int getEventType()(Code) | | |
getNamespaceCount | public int getNamespaceCount()(Code) | | |
getNamespacePrefix | public String getNamespacePrefix(int i)(Code) | | Parameters: i - |
getTextCharacters | public char[] getTextCharacters()(Code) | | |
getTextLength | public int getTextLength()(Code) | | |
getTextStart | public int getTextStart()(Code) | | |
hasName | public boolean hasName()(Code) | | |
hasText | public boolean hasText()(Code) | | check the validity of this implementation
|
init | public void init()(Code) | | we need to split out the calling to the populate namespaces seperately since this needs to be
done *after* setting the parent namespace context. We cannot assume it will happen at
construction!
|
isAttributeSpecified | public boolean isAttributeSpecified(int i)(Code) | | |
isCharacters | public boolean isCharacters()(Code) | | |
isDone | public boolean isDone()(Code) | | are we done ?
|
isEndElement | public boolean isEndElement()(Code) | | |
isStandalone | public boolean isStandalone()(Code) | | |
isStartElement | public boolean isStartElement()(Code) | | |
isWhiteSpace | public boolean isWhiteSpace()(Code) | | |
next | public int next() throws XMLStreamException(Code) | | By far this should be the most important method in this class this method changes the state
of the parser
|
standaloneSet | public boolean standaloneSet()(Code) | | |
|
|