Class SDOXSDHelperDelegator

  • All Implemented Interfaces:
    commonj.sdo.helper.XSDHelper, SDOXSDHelper

    public class SDOXSDHelperDelegator
    extends AbstractHelperDelegator
    implements SDOXSDHelper

    Purpose: Provides access to additional information when the Type or Property is defined by an XML Schema (XSD)..

    Responsibilities:

    • Finds the appropriate SDOXSDHelperDelegate for the classLoader/application name and delegates work to that implementation of SDOXSDHelper.
    • Define methods defines Types from an XSD.
    • Generate methods an XSD from Types.
    • Other Methods return null/false otherwise or if the information is unavailable.
    • Field Summary

      • Fields inherited from interface commonj.sdo.helper.XSDHelper

        INSTANCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addGlobalProperty​(javax.xml.namespace.QName qname, commonj.sdo.Property prop, boolean isElement)
      INTERNAL:
      java.util.Map buildAppInfoMap​(java.util.List appInfoElements)
      INTERNAL:
      java.util.List define​(java.io.InputStream xsdInputStream, java.lang.String schemaLocation)  
      java.util.List define​(java.io.Reader xsdReader, java.lang.String schemaLocation)  
      java.util.List define​(java.lang.String xsd)  
      java.util.List define​(javax.xml.transform.Source xsdSource, SchemaResolver schemaResolver)
      INTERNAL:
      java.lang.String generate​(java.util.List types)  
      java.lang.String generate​(java.util.List types, java.util.Map namespaceToSchemaLocation)  
      java.lang.String generate​(java.util.List types, SchemaLocationResolver schemaLocationResolver)
      INTERNAL:
      java.lang.String getAppinfo​(commonj.sdo.Property property, java.lang.String source)  
      java.lang.String getAppinfo​(commonj.sdo.Type type, java.lang.String source)  
      commonj.sdo.Property getGlobalProperty​(java.lang.String uri, java.lang.String propertyName, boolean isElement)  
      commonj.sdo.Property getGlobalProperty​(javax.xml.namespace.QName qname, boolean isElement)
      INTERNAL:
      java.lang.String getLocalName​(commonj.sdo.Property property)  
      java.lang.String getLocalName​(commonj.sdo.Type type)  
      java.lang.String getNamespaceURI​(commonj.sdo.Property property)  
      java.lang.String getNamespaceURI​(commonj.sdo.Type type)  
      SDOXSDHelperDelegate getXSDHelperDelegate()  
      boolean isAttribute​(commonj.sdo.Property property)  
      boolean isElement​(commonj.sdo.Property property)  
      boolean isMixed​(commonj.sdo.Type type)  
      boolean isXSD​(commonj.sdo.Type type)  
      void reset()
      INTERNAL:
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SDOXSDHelperDelegator

        public SDOXSDHelperDelegator()
      • SDOXSDHelperDelegator

        public SDOXSDHelperDelegator​(commonj.sdo.helper.HelperContext aContext)
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName​(commonj.sdo.Type type)
        Specified by:
        getLocalName in interface commonj.sdo.helper.XSDHelper
      • getLocalName

        public java.lang.String getLocalName​(commonj.sdo.Property property)
        Specified by:
        getLocalName in interface commonj.sdo.helper.XSDHelper
      • getNamespaceURI

        public java.lang.String getNamespaceURI​(commonj.sdo.Type type)
      • getNamespaceURI

        public java.lang.String getNamespaceURI​(commonj.sdo.Property property)
        Specified by:
        getNamespaceURI in interface commonj.sdo.helper.XSDHelper
      • isAttribute

        public boolean isAttribute​(commonj.sdo.Property property)
        Specified by:
        isAttribute in interface commonj.sdo.helper.XSDHelper
      • isElement

        public boolean isElement​(commonj.sdo.Property property)
        Specified by:
        isElement in interface commonj.sdo.helper.XSDHelper
      • isMixed

        public boolean isMixed​(commonj.sdo.Type type)
        Specified by:
        isMixed in interface commonj.sdo.helper.XSDHelper
      • isXSD

        public boolean isXSD​(commonj.sdo.Type type)
        Specified by:
        isXSD in interface commonj.sdo.helper.XSDHelper
      • getGlobalProperty

        public commonj.sdo.Property getGlobalProperty​(java.lang.String uri,
                                                      java.lang.String propertyName,
                                                      boolean isElement)
        Specified by:
        getGlobalProperty in interface commonj.sdo.helper.XSDHelper
      • getGlobalProperty

        public commonj.sdo.Property getGlobalProperty​(javax.xml.namespace.QName qname,
                                                      boolean isElement)
        Description copied from interface: SDOXSDHelper
        INTERNAL:
        Specified by:
        getGlobalProperty in interface SDOXSDHelper
        Returns:
      • getAppinfo

        public java.lang.String getAppinfo​(commonj.sdo.Type type,
                                           java.lang.String source)
        Specified by:
        getAppinfo in interface commonj.sdo.helper.XSDHelper
      • getAppinfo

        public java.lang.String getAppinfo​(commonj.sdo.Property property,
                                           java.lang.String source)
        Specified by:
        getAppinfo in interface commonj.sdo.helper.XSDHelper
      • define

        public java.util.List define​(java.lang.String xsd)
        Specified by:
        define in interface commonj.sdo.helper.XSDHelper
      • define

        public java.util.List define​(java.io.Reader xsdReader,
                                     java.lang.String schemaLocation)
        Specified by:
        define in interface commonj.sdo.helper.XSDHelper
      • define

        public java.util.List define​(javax.xml.transform.Source xsdSource,
                                     SchemaResolver schemaResolver)
        Description copied from interface: SDOXSDHelper
        INTERNAL:
        Specified by:
        define in interface SDOXSDHelper
        Returns:
      • define

        public java.util.List define​(java.io.InputStream xsdInputStream,
                                     java.lang.String schemaLocation)
        Specified by:
        define in interface commonj.sdo.helper.XSDHelper
      • generate

        public java.lang.String generate​(java.util.List types)
        Specified by:
        generate in interface commonj.sdo.helper.XSDHelper
      • generate

        public java.lang.String generate​(java.util.List types,
                                         java.util.Map namespaceToSchemaLocation)
        Specified by:
        generate in interface commonj.sdo.helper.XSDHelper
      • buildAppInfoMap

        public java.util.Map buildAppInfoMap​(java.util.List appInfoElements)
        INTERNAL:
        Specified by:
        buildAppInfoMap in interface SDOXSDHelper
        Returns:
      • addGlobalProperty

        public void addGlobalProperty​(javax.xml.namespace.QName qname,
                                      commonj.sdo.Property prop,
                                      boolean isElement)
        INTERNAL:
        Specified by:
        addGlobalProperty in interface SDOXSDHelper
        Parameters:
        qname -
        prop -
        isElement - Register the given property with the given qname.