org.sca4j.introspection.xml
Class LoaderUtil

java.lang.Object
  extended by org.sca4j.introspection.xml.LoaderUtil

public final class LoaderUtil
extends java.lang.Object

Utility functions to support loader implementations.

Version:
$Rev: 3029 $ $Date: 2008-03-07 13:45:37 +0000 (Fri, 07 Mar 2008) $

Method Summary
static javax.xml.namespace.QName getQName(java.lang.String text, java.lang.String defaultNamespace, javax.xml.namespace.NamespaceContext context)
          Construct a QName from an XML value.
static void skipToEndElement(javax.xml.stream.XMLStreamReader reader)
          Advance the stream to the next END_ELEMENT event skipping any nested content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

skipToEndElement

public static void skipToEndElement(javax.xml.stream.XMLStreamReader reader)
                             throws javax.xml.stream.XMLStreamException
Advance the stream to the next END_ELEMENT event skipping any nested content.

Parameters:
reader - the reader to advance
Throws:
javax.xml.stream.XMLStreamException - if there was a problem reading the stream

getQName

public static javax.xml.namespace.QName getQName(java.lang.String text,
                                                 java.lang.String defaultNamespace,
                                                 javax.xml.namespace.NamespaceContext context)
Construct a QName from an XML value.

Parameters:
text - the text of an XML QName; if null or "" then null will be returned
defaultNamespace - the default namespace to use if none is defined
context - the context for resolving namespace prefixes
Returns:
a QName with the appropriate namespace set


Copyright © 2008-2011 Service Symphony. All Rights Reserved.