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.
    • Constructor Detail

      • SDOXSDHelperDelegator

        public SDOXSDHelperDelegator()
      • SDOXSDHelperDelegator

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

      • getLocalName

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

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

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

        public 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​(String uri,
                                                      String propertyName,
                                                      boolean isElement)
        Specified by:
        getGlobalProperty in interface commonj.sdo.helper.XSDHelper
      • getGlobalProperty

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

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

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

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

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

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

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

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

        public void addGlobalProperty​(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.