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 Details

    • SchemaProcessorUtil

      public SchemaProcessorUtil()
  • Method Details

    • getAnnotationElementCheckingAncestors

      public static Element getAnnotationElementCheckingAncestors(@Nullable @Nullable com.sun.xml.xsom.XSType type, QName annotationElementName)
    • getAnnotationElement

      public static Element getAnnotationElement(com.sun.xml.xsom.XSComponent component, QName qname)
    • getAnnotationElement

      public static Element getAnnotationElement(com.sun.xml.xsom.XSAnnotation annotation, QName qname)
    • getAnnotationElements

      @NotNull public static @NotNull List<Element> getAnnotationElements(@Nullable @Nullable com.sun.xml.xsom.XSComponent component, @NotNull @NotNull QName qname)
    • getAnnotationElements

      @NotNull public static @NotNull List<Element> getAnnotationElements(@Nullable @Nullable com.sun.xml.xsom.XSAnnotation annotation, @NotNull @NotNull QName qname)
    • getAnnotationQName

      public static QName getAnnotationQName(Object object, QName qname)
    • getAnnotationQNameList

      @NotNull public static @NotNull List<QName> getAnnotationQNameList(Object object, QName qname)
    • getAnnotationConverted

      public static <T> T getAnnotationConverted(Object source, QName qname, Class<T> type) throws SchemaException
      Throws:
      SchemaException
    • getAnnotationConvertedInherited

      public static <T> T getAnnotationConvertedInherited(com.sun.xml.xsom.XSType xsType, QName qname, Class<T> type) throws SchemaException
      Throws:
      SchemaException
    • convert

      @Nullable public static <T> T convert(Class<T> type, Element element) throws SchemaException
      Throws:
      SchemaException
    • getAnnotationBoolean

      public static Boolean getAnnotationBoolean(com.sun.xml.xsom.XSAnnotation annotation, QName qname) throws SchemaException
      Throws:
      SchemaException
    • dumpAnnotation

      public static String dumpAnnotation(com.sun.xml.xsom.XSAnnotation annotation)
    • getAnnotationElement

      @Nullable public static @Nullable Element getAnnotationElement(@Nullable @Nullable Object sourceObject, @NotNull @NotNull QName name)
    • getAnnotationElements

      @NotNull public static @NotNull List<Element> getAnnotationElements(@Nullable @Nullable Object sourceObject, @NotNull @NotNull QName name)
    • getAnnotation

      public static com.sun.xml.xsom.XSAnnotation getAnnotation(com.sun.xml.xsom.XSComponent component)