Class XmlSchemaGenerator<T,​C,​F,​M>

    • Constructor Summary

      Constructors 
      Constructor Description
      XmlSchemaGenerator​(org.glassfish.jaxb.core.v2.model.nav.Navigator<T,​C,​F,​M> navigator, org.glassfish.jaxb.core.v2.model.core.TypeInfoSet<T,​C,​F,​M> types)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(QName tagName, boolean isNillable, org.glassfish.jaxb.core.v2.model.core.NonElement<T,​C> type)
      Adds an additional element declaration.
      void add​(org.glassfish.jaxb.core.v2.model.core.ArrayInfo<T,​C> a)  
      void add​(org.glassfish.jaxb.core.v2.model.core.ClassInfo<T,​C> clazz)
      Adds a new class to the list of classes to be written.
      void add​(org.glassfish.jaxb.core.v2.model.core.ElementInfo<T,​C> elem)
      Adds a new element to the list of elements to be written.
      void add​(org.glassfish.jaxb.core.v2.model.core.EnumLeafInfo<T,​C> envm)  
      protected static String relativize​(String uri, String baseUri)
      Relativizes a URI by using another URI (base URI.)
      String toString()
      Debug information of what's in this .
      void write​(jakarta.xml.bind.SchemaOutputResolver resolver, org.glassfish.jaxb.core.api.ErrorListener errorListener)
      Write out the schema documents.
      void writeEpisodeFile​(com.sun.xml.txw2.output.XmlSerializer out)
      Writes out the episode file.
    • Constructor Detail

      • XmlSchemaGenerator

        public XmlSchemaGenerator​(org.glassfish.jaxb.core.v2.model.nav.Navigator<T,​C,​F,​M> navigator,
                                  org.glassfish.jaxb.core.v2.model.core.TypeInfoSet<T,​C,​F,​M> types)
    • Method Detail

      • add

        public void add​(org.glassfish.jaxb.core.v2.model.core.ClassInfo<T,​C> clazz)
        Adds a new class to the list of classes to be written.

        A ClassInfo may have two namespaces --- one for the element name and the other for the type name. If they are different, we put the same ClassInfo to two XmlSchemaGenerator.Namespaces.

      • add

        public void add​(org.glassfish.jaxb.core.v2.model.core.ElementInfo<T,​C> elem)
        Adds a new element to the list of elements to be written.
      • add

        public void add​(org.glassfish.jaxb.core.v2.model.core.EnumLeafInfo<T,​C> envm)
      • add

        public void add​(org.glassfish.jaxb.core.v2.model.core.ArrayInfo<T,​C> a)
      • add

        public void add​(QName tagName,
                        boolean isNillable,
                        org.glassfish.jaxb.core.v2.model.core.NonElement<T,​C> type)
        Adds an additional element declaration.
        Parameters:
        tagName - The name of the element declaration to be added.
        type - The type this element refers to. Can be null, in which case the element refers to an empty anonymous complex type.
      • writeEpisodeFile

        public void writeEpisodeFile​(com.sun.xml.txw2.output.XmlSerializer out)
        Writes out the episode file.
      • write

        public void write​(jakarta.xml.bind.SchemaOutputResolver resolver,
                          org.glassfish.jaxb.core.api.ErrorListener errorListener)
                   throws IOException
        Write out the schema documents.
        Throws:
        IOException
      • toString

        public String toString()
        Debug information of what's in this .
        Overrides:
        toString in class Object
      • relativize

        protected static String relativize​(String uri,
                                           String baseUri)
        Relativizes a URI by using another URI (base URI.)

        For example, relative("http://www.sun.com/abc/def","http://www.sun.com/pqr/stu") => "../abc/def"

        This method only works on hierarchical URI's, not opaque URI's (refer to the java.net.URI javadoc for complete definitions of these terms.

        This method will not normalize the relative URI.

        Returns:
        the relative URI or the original URI if a relative one could not be computed