|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.xml.XMLUtil
public class XMLUtil
| Method Summary | ||
|---|---|---|
static
|
defineXMLProducerApiTypeFromArrayElement(XMLProducerBean<T> component,
Element typeElement,
String errorMessage)
|
|
static XMLInjectionPointModel |
getArrayInjectionPointModel(Element typeElement,
String errorMessage)
Injection point with array type. |
|
static String |
getElementJavaClassName(Element element)
|
|
static Class<?> |
getElementJavaType(Element element)
|
|
static String |
getElementNameSpace(Element element)
|
|
static XMLInjectionPointModel |
getInjectionPointModel(Element typeElement,
String errorMessage)
Creates new xml injection point model. |
|
static String |
getName(Element element)
|
|
static Element |
getRootElement(InputStream stream)
|
|
static Element |
getSpecStrictRootElement(InputStream stream)
Gets the root element of the parsed document. |
|
static Annotation |
getXMLDefinedAnnotationMember(Element annotationElement,
Class<? extends Annotation> annotClazz,
String errorMessage)
Creates new annotation with configured members values. |
|
static boolean |
hasChildElement(Element parent,
String childName)
|
|
static boolean |
hasChildElementWithWebBeansNameSpace(Element parent,
String childName)
Return child element within webbeans namespace with given child name. |
|
static boolean |
isElementBindingTypeDecleration(Element element)
Returns true if element has a bindingtype child element in webbeans namespace false otherwise. |
|
static boolean |
isElementDecoratosDeclaration(Element element)
|
|
static boolean |
isElementDeployDeclaration(Element element)
|
|
static boolean |
isElementField(Element element)
Returns true if this element defines field, false otherwise. |
|
static boolean |
isElementHasDecoratesChild(Element element)
|
|
static boolean |
isElementInNamespace(Element element,
String namespace)
|
|
static boolean |
isElementInterceptorBindingTypeDecleration(Element element)
Returns true if element has a interceptor bindingtype child element in webbeans namespace false otherwise. |
|
static boolean |
isElementInterceptorsDeclaration(Element element)
|
|
static boolean |
isElementInWebBeansNameSpace(Element element)
|
|
static boolean |
isElementInWebBeansNameSpaceWithName(Element element,
String name)
|
|
static boolean |
isElementJMSDeclaration(Element element)
Returns true if this element defines JMS webbeans, false otherwise. |
|
static boolean |
isElementMethod(Element element)
Checks that given element is a webbeans method or not. |
|
static boolean |
isElementStereoTypeDecleration(Element element)
Returns true if element has a stereotype child element in webbeans namespace false otherwise. |
|
static boolean |
isElementWebBeanDeclaration(Element element)
|
|
protected static void |
updateNameSpacePackageMapping(Element root)
|
|
protected static boolean |
verifyNameSpace(Element element)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected static boolean verifyNameSpace(Element element)
protected static void updateNameSpacePackageMapping(Element root)
public static Element getRootElement(InputStream stream)
throws WebBeansException
WebBeansException
public static Element getSpecStrictRootElement(InputStream stream)
throws WebBeansException
stream - parsed document
WebBeansException - if any runtime exception occurs
public static boolean isElementInNamespace(Element element,
String namespace)
public static boolean isElementInWebBeansNameSpace(Element element)
public static boolean isElementInWebBeansNameSpaceWithName(Element element,
String name)
public static String getElementNameSpace(Element element)
public static boolean isElementWebBeanDeclaration(Element element)
public static boolean isElementBindingTypeDecleration(Element element)
element - parent element
public static boolean isElementInterceptorBindingTypeDecleration(Element element)
element - parent element
public static boolean isElementStereoTypeDecleration(Element element)
element - parent element
public static boolean isElementDeployDeclaration(Element element)
public static boolean isElementInterceptorsDeclaration(Element element)
public static boolean isElementDecoratosDeclaration(Element element)
public static boolean isElementJMSDeclaration(Element element)
element - webbeans element decleration
public static boolean isElementHasDecoratesChild(Element element)
public static boolean isElementField(Element element)
element - webbeans decleration child element
public static boolean isElementMethod(Element element)
element - dom element represents method decleration
public static String getName(Element element)
public static Class<?> getElementJavaType(Element element)
public static String getElementJavaClassName(Element element)
public static boolean hasChildElement(Element parent,
String childName)
public static boolean hasChildElementWithWebBeansNameSpace(Element parent,
String childName)
parent - parent elementchildName - child element name
public static XMLInjectionPointModel getInjectionPointModel(Element typeElement,
String errorMessage)
typeElement - injection point API typeerrorMessage - error message
public static Annotation getXMLDefinedAnnotationMember(Element annotationElement,
Class<? extends Annotation> annotClazz,
String errorMessage)
annotationElement - annotation elementannotClazz - annotation classerrorMessage - error message
public static XMLInjectionPointModel getArrayInjectionPointModel(Element typeElement,
String errorMessage)
typeElement - array elementerrorMessage - error message
public static <T> void defineXMLProducerApiTypeFromArrayElement(XMLProducerBean<T> component,
Element typeElement,
String errorMessage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||