Class JaxbContextData

java.lang.Object
org.bremersee.xml.JaxbContextData
All Implemented Interfaces:
Comparable<JaxbContextData>, org.bremersee.xml.JaxbContextMember

public final class JaxbContextData extends Object implements org.bremersee.xml.JaxbContextMember, Comparable<JaxbContextData>
Meta-data to describe a xml model.
Author:
Christian Bremer
  • Constructor Details

    • JaxbContextData

      public JaxbContextData(Class<?> clazz)
      Instantiates a new jaxb context data.
      Parameters:
      clazz - the class
    • JaxbContextData

      public JaxbContextData(Class<?> clazz, String clazzElementSchemaLocation, String clazzTypeSchemaLocation)
      Instantiates a new jaxb context data.
      Parameters:
      clazz - the class
      clazzElementSchemaLocation - the class element schema location
      clazzTypeSchemaLocation - the class type schema location
    • JaxbContextData

      public JaxbContextData(Package pakkage)
      Instantiates a new jaxb context data.
      Parameters:
      pakkage - the package
    • JaxbContextData

      public JaxbContextData(Class<?> clazz, String pakkageSchemaLocation)
      Instantiates a new Jaxb context data.
      Parameters:
      clazz - the class
      pakkageSchemaLocation - the package schema location
    • JaxbContextData

      public JaxbContextData(Package pakkage, String pakkageSchemaLocation)
      Instantiates a new jaxb context data.
      Parameters:
      pakkage - the package
      pakkageSchemaLocation - the package schema location
  • Method Details

    • getPakkage

      public Package getPakkage()
      Specified by:
      getPakkage in interface org.bremersee.xml.JaxbContextMember
    • getJaxbClasses

      public Stream<Class<?>> getJaxbClasses(ClassLoader... classLoaders)
      Gets jaxb classes.
      Parameters:
      classLoaders - the class loaders
      Returns:
      the jaxb classes
    • getNameSpacesWithSchemaLocations

      public Stream<SchemaLocation> getNameSpacesWithSchemaLocations()
      Gets name spaces with schema locations.
      Returns:
      the name spaces with schema locations
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(JaxbContextData o)
      Specified by:
      compareTo in interface Comparable<JaxbContextData>