Class SchemaProcessorUtil
java.lang.Object
com.evolveum.midpoint.prism.impl.schema.SchemaProcessorUtil
Class to be used by schema processor but also by SchemaDefinitionFactory subclasses.
- Author:
- Radovan Semancik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
dumpAnnotation
(com.sun.xml.xsom.XSAnnotation annotation) static Boolean
getAnnotationBoolean
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) static Boolean
getAnnotationBooleanMarker
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) Parses "marker" boolean annotation.static <T> T
getAnnotationConverted
(com.sun.xml.xsom.XSAnnotation annotation, QName qname, Class<T> type) static Element
getAnnotationElement
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) getAnnotationElements
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) static Integer
getAnnotationInteger
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) static QName
getAnnotationQName
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) getAnnotationQNames
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) static String
getAnnotationString
(com.sun.xml.xsom.XSAnnotation annotation, QName qname) static boolean
hasAnnotation
(com.sun.xml.xsom.XSType xsType, QName annotationElementName)
-
Constructor Details
-
SchemaProcessorUtil
public SchemaProcessorUtil()
-
-
Method Details
-
hasAnnotation
-
getAnnotationElement
-
getAnnotationElements
-
getAnnotationQName
-
getAnnotationQNames
-
getAnnotationBooleanMarker
public static Boolean getAnnotationBooleanMarker(com.sun.xml.xsom.XSAnnotation annotation, QName qname) throws SchemaException Parses "marker" boolean annotation. This means: - no element: null - empty element: true - non-empty element: parse element content as boolean- Throws:
SchemaException
-
getAnnotationConverted
public static <T> T getAnnotationConverted(com.sun.xml.xsom.XSAnnotation annotation, QName qname, Class<T> type) throws SchemaException - Throws:
SchemaException
-
getAnnotationBoolean
public static Boolean getAnnotationBoolean(com.sun.xml.xsom.XSAnnotation annotation, QName qname) throws SchemaException - Throws:
SchemaException
-
getAnnotationInteger
public static Integer getAnnotationInteger(com.sun.xml.xsom.XSAnnotation annotation, QName qname) throws SchemaException - Throws:
SchemaException
-
getAnnotationString
public static String getAnnotationString(com.sun.xml.xsom.XSAnnotation annotation, QName qname) throws SchemaException - Throws:
SchemaException
-
dumpAnnotation
-