psdi.webclient.system.registry

Class RegistrySchemaGenerator

  • java.lang.Object
    • psdi.webclient.system.registry.RegistrySchemaGenerator
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected static boolean debug 
      protected static boolean verbose 
      protected static java.lang.String XS_NS 
      protected static java.lang.String XS_PREFIX 
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void addAttribute(org.w3c.dom.Document document, org.w3c.dom.Element parent, org.w3c.dom.Element item, java.util.Set propertyNames) 
      protected org.w3c.dom.Element createKey(org.w3c.dom.Document document, java.lang.String name, java.lang.String selector, java.lang.String field) 
      protected org.w3c.dom.Element createKeyRef(org.w3c.dom.Document document, java.lang.String name, java.lang.String refer, java.lang.String selector, java.lang.String field) 
      protected org.w3c.dom.Element createType(org.w3c.dom.Document document, org.w3c.dom.Element parent, org.w3c.dom.Element propertyList, java.util.Set propertyNames) 
      protected static java.util.List findFilesContaining(java.io.File directory, java.lang.String content) 
      protected abstract org.w3c.dom.Document generateSchema(org.w3c.dom.Document registry) 
      protected void generateSchema(java.io.File[] sources, java.io.File target) 
      protected org.w3c.dom.Document mergeDocuments(org.w3c.dom.Document[] registries) 
      protected void serialize(org.w3c.dom.Document document, java.io.File file) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • verbose

        protected static boolean verbose
      • debug

        protected static boolean debug
    • Constructor Detail

      • RegistrySchemaGenerator

        public RegistrySchemaGenerator()
    • Method Detail

      • generateSchema

        protected void generateSchema(java.io.File[] sources,
                                      java.io.File target)
                               throws javax.xml.transform.TransformerException,
                                      javax.xml.parsers.ParserConfigurationException,
                                      org.xml.sax.SAXException,
                                      java.io.IOException
        Throws:
        javax.xml.transform.TransformerException
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
      • findFilesContaining

        protected static java.util.List findFilesContaining(java.io.File directory,
                                                            java.lang.String content)
                                                     throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • mergeDocuments

        protected org.w3c.dom.Document mergeDocuments(org.w3c.dom.Document[] registries)
      • generateSchema

        protected abstract org.w3c.dom.Document generateSchema(org.w3c.dom.Document registry)
                                                        throws javax.xml.parsers.ParserConfigurationException
        Throws:
        javax.xml.parsers.ParserConfigurationException
      • serialize

        protected void serialize(org.w3c.dom.Document document,
                                 java.io.File file)
                          throws java.io.FileNotFoundException,
                                 javax.xml.transform.TransformerException
        Throws:
        java.io.FileNotFoundException
        javax.xml.transform.TransformerException
      • createType

        protected org.w3c.dom.Element createType(org.w3c.dom.Document document,
                                                 org.w3c.dom.Element parent,
                                                 org.w3c.dom.Element propertyList,
                                                 java.util.Set propertyNames)
      • addAttribute

        protected void addAttribute(org.w3c.dom.Document document,
                                    org.w3c.dom.Element parent,
                                    org.w3c.dom.Element item,
                                    java.util.Set propertyNames)
      • createKey

        protected org.w3c.dom.Element createKey(org.w3c.dom.Document document,
                                                java.lang.String name,
                                                java.lang.String selector,
                                                java.lang.String field)
      • createKeyRef

        protected org.w3c.dom.Element createKeyRef(org.w3c.dom.Document document,
                                                   java.lang.String name,
                                                   java.lang.String refer,
                                                   java.lang.String selector,
                                                   java.lang.String field)