Class SchemaProcessorUtil
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.schema.SchemaProcessorUtil
-
public class SchemaProcessorUtil extends Object
Class to be used by schema processor but also by SchemaDefinitionFactory subclasses.- Author:
- Radovan Semancik
-
-
Constructor Summary
Constructors Constructor Description SchemaProcessorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdumpAnnotation(com.sun.xml.xsom.XSAnnotation annotation)static BooleangetAnnotationBoolean(com.sun.xml.xsom.XSAnnotation annotation, QName qname)static BooleangetAnnotationBooleanMarker(com.sun.xml.xsom.XSAnnotation annotation, QName qname)Parses "marker" boolean annotation.static <T> TgetAnnotationConverted(com.sun.xml.xsom.XSAnnotation annotation, QName qname, Class<T> type)static ElementgetAnnotationElement(com.sun.xml.xsom.XSAnnotation annotation, QName qname)static @NotNull List<Element>getAnnotationElements(com.sun.xml.xsom.XSAnnotation annotation, QName qname)static IntegergetAnnotationInteger(com.sun.xml.xsom.XSAnnotation annotation, QName qname)static QNamegetAnnotationQName(com.sun.xml.xsom.XSAnnotation annotation, QName qname)static List<QName>getAnnotationQNames(com.sun.xml.xsom.XSAnnotation annotation, QName qname)static StringgetAnnotationString(com.sun.xml.xsom.XSAnnotation annotation, QName qname)static booleanhasAnnotation(com.sun.xml.xsom.XSType xsType, QName annotationElementName)
-
-
-
Method Detail
-
hasAnnotation
public static boolean hasAnnotation(com.sun.xml.xsom.XSType xsType, QName annotationElementName)
-
getAnnotationElement
public static Element getAnnotationElement(com.sun.xml.xsom.XSAnnotation annotation, QName qname)
-
getAnnotationElements
@NotNull public static @NotNull List<Element> getAnnotationElements(com.sun.xml.xsom.XSAnnotation annotation, QName qname)
-
getAnnotationQName
public static QName getAnnotationQName(com.sun.xml.xsom.XSAnnotation annotation, QName qname)
-
getAnnotationQNames
public static List<QName> getAnnotationQNames(com.sun.xml.xsom.XSAnnotation annotation, QName qname)
-
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
public static String dumpAnnotation(com.sun.xml.xsom.XSAnnotation annotation)
-
-