Class XsdGenerator

All Implemented Interfaces:
ModelloGenerator

@Named("xsd") public class XsdGenerator extends AbstractXmlGenerator
  • Field Details

    • ANY_NAME

      private static final String ANY_NAME
      Value standing for any element name (used on xml.tagName)
      See Also:
    • LS

      protected static final String LS
  • Constructor Details

    • XsdGenerator

      public XsdGenerator()
  • Method Details

    • generate

      public void generate(Model model, Map<String,Object> parameters) throws ModelloException
      Throws:
      ModelloException
    • generateXsd

      private void generateXsd(Map<String,Object> parameters) throws IOException, ModelloException
      Throws:
      IOException
      ModelloException
    • writeClassDocumentation

      private static void writeClassDocumentation(org.codehaus.plexus.util.xml.XMLWriter w, ModelClass modelClass)
    • writeFieldDocumentation

      private static void writeFieldDocumentation(org.codehaus.plexus.util.xml.XMLWriter w, ModelField field)
    • writeDocumentation

      private static void writeDocumentation(org.codehaus.plexus.util.xml.XMLWriter w, String version, String description)
    • writeComplexTypeDescriptor

      private void writeComplexTypeDescriptor(org.codehaus.plexus.util.xml.XMLWriter w, Model objectModel, ModelClass modelClass, Set<ModelClass> written, boolean enforceMandatoryElements)
    • writeCharElement

      private static void writeCharElement(org.codehaus.plexus.util.xml.XMLWriter w)
    • writePropertiesElement

      private static void writePropertiesElement(org.codehaus.plexus.util.xml.XMLWriter w)
    • writeListElement

      private void writeListElement(org.codehaus.plexus.util.xml.XMLWriter w, XmlFieldMetadata xmlFieldMetadata, XmlAssociationMetadata xmlAssociationMetadata, ModelField field, String type)
    • getXsdType

      private static String getXsdType(String type)