org.apache.ws.jaxme.xs.impl
Class XSUtil

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSUtil

public class XSUtil
extends java.lang.Object

Author:
Jochen Wiedmann

Constructor Summary
XSUtil()
           
 
Method Summary
static java.util.List getAppinfos(XSAnnotation[] annotations, java.lang.Class pClass)
          Returns all childs of xs:annotation/xs:appinfo implementing or extending the given class.
static java.lang.Object getSingleAppinfo(XSAnnotation[] annotations, java.lang.Class pClass)
          Returns the first child of xs:annotation/xs:appinfo implementing or extending the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSUtil

public XSUtil()
Method Detail

getAppinfos

public static java.util.List getAppinfos(XSAnnotation[] annotations,
                                         java.lang.Class pClass)

Returns all childs of xs:annotation/xs:appinfo implementing or extending the given class.


getSingleAppinfo

public static java.lang.Object getSingleAppinfo(XSAnnotation[] annotations,
                                                java.lang.Class pClass)
                                         throws org.xml.sax.SAXException

Returns the first child of xs:annotation/xs:appinfo implementing or extending the given class. Ensures that the child is unique.

Returns:
The unique child or null, if no such child exists.
Throws:
org.xml.sax.SAXException