org.apache.ws.jaxme.xs.impl

Class XSUtil


public class XSUtil
extends java.lang.Object

Author:
Jochen Wiedmann

Method Summary

static List
getAppinfos(XSAnnotation[] annotations, Class pClass)
Returns all childs of xs:annotation/xs:appinfo implementing or extending the given class.
static Object
getSingleAppinfo(XSAnnotation[] annotations, Class pClass)
Returns the first child of xs:annotation/xs:appinfo implementing or extending the given class.

Method Details

getAppinfos

public static List getAppinfos(XSAnnotation[] annotations,
                               Class pClass)
Returns all childs of xs:annotation/xs:appinfo implementing or extending the given class.

getSingleAppinfo

public static Object getSingleAppinfo(XSAnnotation[] annotations,
                                      Class pClass)
            throws 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.