org.apache.ws.jaxme.xs.impl

Class XSUtil

public class XSUtil extends Object

Author: Jochen Wiedmann

Method Summary
static ListgetAppinfos(XSAnnotation[] annotations, Class pClass)

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

static ObjectgetSingleAppinfo(XSAnnotation[] annotations, Class pClass)

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

Method Detail

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)

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.