psdi.iface.webservices

Class SchemaGenerator

  • java.lang.Object
    • psdi.iface.webservices.SchemaGenerator
    • Field Detail

      • SCHEMA_NS

        public static final org.jdom2.Namespace SCHEMA_NS
      • ML_SUPPORTED_DOC

        public static final java.lang.String ML_SUPPORTED_DOC
        See Also:
        Constant Field Values
      • MAXOCCURSUNBOUNDED

        public static final java.lang.String MAXOCCURSUNBOUNDED
        See Also:
        Constant Field Values
      • schemaRoot

        protected org.jdom2.Element schemaRoot
      • schemaGeneratedInThisInstance

        protected boolean schemaGeneratedInThisInstance
      • schemaElements

        protected java.util.Map schemaElements
    • Constructor Detail

      • SchemaGenerator

        public SchemaGenerator()
      • SchemaGenerator

        public SchemaGenerator(java.util.Map schemaElements)
    • Method Detail

      • createSchemaElement

        protected org.jdom2.Element createSchemaElement(java.lang.String name,
                                                        java.lang.String type,
                                                        java.lang.String minOccurs,
                                                        java.lang.String maxOccurs)
      • isSchemaUseInclude

        protected boolean isSchemaUseInclude()
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • createSchemaElement

        protected org.jdom2.Element createSchemaElement(java.lang.String name,
                                                        java.lang.String type,
                                                        boolean nillable,
                                                        java.lang.String minOccurs,
                                                        java.lang.String maxOccurs)
      • createRefSchemaElement

        protected org.jdom2.Element createRefSchemaElement(java.lang.String refName,
                                                           java.lang.String minOccurs,
                                                           java.lang.String maxOccurs)
      • createComplexType

        protected org.jdom2.Element createComplexType(java.lang.String name)
      • createEmptyComplexType

        protected org.jdom2.Element createEmptyComplexType(java.lang.String name)
      • createComplexType

        protected org.jdom2.Element createComplexType(java.lang.String name,
                                                      boolean abstr)
      • createComplexContentElement

        protected org.jdom2.Element createComplexContentElement()
      • createExtensionElement

        protected org.jdom2.Element createExtensionElement(java.lang.String base)
      • createAttribute

        protected org.jdom2.Element createAttribute(java.lang.String name,
                                                    java.lang.String type,
                                                    java.lang.String use,
                                                    java.lang.String fixed)
      • createSequenceElement

        protected org.jdom2.Element createSequenceElement()
      • createAttributeGroup

        protected org.jdom2.Element createAttributeGroup(boolean ref,
                                                         java.lang.String refOrName)
      • createDcumnetation

        protected org.jdom2.Element createDcumnetation(java.lang.String doc)
      • addUniqueKeyDcumnetation

        protected void addUniqueKeyDcumnetation(org.jdom2.Element elementTo)
      • addMLSupportedDcumnetation

        protected void addMLSupportedDcumnetation(org.jdom2.Element elementTo)
      • createImportNSElement

        protected org.jdom2.Element createImportNSElement(java.lang.String ns,
                                                          java.lang.String location)
      • createIncludeNSElement

        protected org.jdom2.Element createIncludeNSElement(java.lang.String location)
      • createSchemaRootElement

        protected void createSchemaRootElement(java.lang.String targetNS,
                                               java.util.Map prefixNSMap)
      • createSchemaRootElement

        protected void createSchemaRootElement()
                                        throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • createMboColumnElement

        protected org.jdom2.Element createMboColumnElement(MboValueInfo mboValueInfo,
                                                           boolean queryCol)
      • createMboColumnElement

        protected org.jdom2.Element createMboColumnElement(MboValueInfo mboValueInfo,
                                                           boolean queryCol,
                                                           boolean required)
      • getTargetNS

        public java.lang.String getTargetNS()
                                     throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • persistSchema

        protected void persistSchema(org.jdom2.Document doc)
                              throws MXException
        Throws:
        MXException
      • getSchemaFileName

        public abstract java.lang.String getSchemaFileName()
      • getSchemaElementFor

        public java.lang.String getSchemaElementFor(java.lang.String identifier)
      • getSchemaDocument

        public org.jdom2.Document getSchemaDocument()
                                             throws MXException
        Returns:
        the schema file as a Dcoument and null if the schema file does not exist.
        Throws:
        MXException
      • generateSampleXml

        public java.lang.String generateSampleXml(java.lang.String identifier)
                                           throws MXException
        Throws:
        MXException
      • generateSchemaElements

        public void generateSchemaElements()
                                    throws MXException,
                                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createSchemaDcoument

        protected abstract org.jdom2.Document createSchemaDcoument()
                                                            throws MXException,
                                                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • isPersisSchema

        protected boolean isPersisSchema()
                                  throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • generateSchema

        public void generateSchema()
                            throws MXException,
                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • generateSchemaAsDcoument

        public org.jdom2.Document generateSchemaAsDcoument()
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException