Class SDOXSDHelperDelegator
- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
-
- org.eclipse.persistence.sdo.helper.delegates.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 class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
aHelperContext
-
-
Constructor Summary
Constructors Constructor Description SDOXSDHelperDelegator()SDOXSDHelperDelegator(commonj.sdo.helper.HelperContext aContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGlobalProperty(javax.xml.namespace.QName qname, commonj.sdo.Property prop, boolean isElement)INTERNAL:java.util.MapbuildAppInfoMap(java.util.List appInfoElements)INTERNAL:java.util.Listdefine(java.io.InputStream xsdInputStream, java.lang.String schemaLocation)java.util.Listdefine(java.io.Reader xsdReader, java.lang.String schemaLocation)java.util.Listdefine(java.lang.String xsd)java.util.Listdefine(javax.xml.transform.Source xsdSource, SchemaResolver schemaResolver)INTERNAL:java.lang.Stringgenerate(java.util.List types)java.lang.Stringgenerate(java.util.List types, java.util.Map namespaceToSchemaLocation)java.lang.Stringgenerate(java.util.List types, SchemaLocationResolver schemaLocationResolver)INTERNAL:java.lang.StringgetAppinfo(commonj.sdo.Property property, java.lang.String source)java.lang.StringgetAppinfo(commonj.sdo.Type type, java.lang.String source)commonj.sdo.PropertygetGlobalProperty(java.lang.String uri, java.lang.String propertyName, boolean isElement)commonj.sdo.PropertygetGlobalProperty(javax.xml.namespace.QName qname, boolean isElement)INTERNAL:java.lang.StringgetLocalName(commonj.sdo.Property property)java.lang.StringgetLocalName(commonj.sdo.Type type)java.lang.StringgetNamespaceURI(commonj.sdo.Property property)java.lang.StringgetNamespaceURI(commonj.sdo.Type type)SDOXSDHelperDelegategetXSDHelperDelegate()booleanisAttribute(commonj.sdo.Property property)booleanisElement(commonj.sdo.Property property)booleanisMixed(commonj.sdo.Type type)booleanisXSD(commonj.sdo.Type type)voidreset()INTERNAL:-
Methods inherited from class org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
getHelperContext, setHelperContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.sdo.helper.SDOXSDHelper
getHelperContext, setHelperContext
-
-
-
-
Method Detail
-
getLocalName
public java.lang.String getLocalName(commonj.sdo.Type type)
- Specified by:
getLocalNamein interfacecommonj.sdo.helper.XSDHelper
-
getLocalName
public java.lang.String getLocalName(commonj.sdo.Property property)
- Specified by:
getLocalNamein interfacecommonj.sdo.helper.XSDHelper
-
getNamespaceURI
public java.lang.String getNamespaceURI(commonj.sdo.Type type)
- Specified by:
getNamespaceURIin interfacecommonj.sdo.helper.XSDHelper
-
getNamespaceURI
public java.lang.String getNamespaceURI(commonj.sdo.Property property)
- Specified by:
getNamespaceURIin interfacecommonj.sdo.helper.XSDHelper
-
isAttribute
public boolean isAttribute(commonj.sdo.Property property)
- Specified by:
isAttributein interfacecommonj.sdo.helper.XSDHelper
-
isElement
public boolean isElement(commonj.sdo.Property property)
- Specified by:
isElementin interfacecommonj.sdo.helper.XSDHelper
-
isMixed
public boolean isMixed(commonj.sdo.Type type)
- Specified by:
isMixedin interfacecommonj.sdo.helper.XSDHelper
-
isXSD
public boolean isXSD(commonj.sdo.Type type)
- Specified by:
isXSDin interfacecommonj.sdo.helper.XSDHelper
-
getGlobalProperty
public commonj.sdo.Property getGlobalProperty(java.lang.String uri, java.lang.String propertyName, boolean isElement)- Specified by:
getGlobalPropertyin interfacecommonj.sdo.helper.XSDHelper
-
getGlobalProperty
public commonj.sdo.Property getGlobalProperty(javax.xml.namespace.QName qname, boolean isElement)Description copied from interface:SDOXSDHelperINTERNAL:- Specified by:
getGlobalPropertyin interfaceSDOXSDHelper- Returns:
-
getAppinfo
public java.lang.String getAppinfo(commonj.sdo.Type type, java.lang.String source)- Specified by:
getAppinfoin interfacecommonj.sdo.helper.XSDHelper
-
getAppinfo
public java.lang.String getAppinfo(commonj.sdo.Property property, java.lang.String source)- Specified by:
getAppinfoin interfacecommonj.sdo.helper.XSDHelper
-
define
public java.util.List define(java.lang.String xsd)
- Specified by:
definein interfacecommonj.sdo.helper.XSDHelper
-
define
public java.util.List define(java.io.Reader xsdReader, java.lang.String schemaLocation)- Specified by:
definein interfacecommonj.sdo.helper.XSDHelper
-
define
public java.util.List define(javax.xml.transform.Source xsdSource, SchemaResolver schemaResolver)Description copied from interface:SDOXSDHelperINTERNAL:- Specified by:
definein interfaceSDOXSDHelper- Returns:
-
define
public java.util.List define(java.io.InputStream xsdInputStream, java.lang.String schemaLocation)- Specified by:
definein interfacecommonj.sdo.helper.XSDHelper
-
generate
public java.lang.String generate(java.util.List types)
- Specified by:
generatein interfacecommonj.sdo.helper.XSDHelper
-
generate
public java.lang.String generate(java.util.List types, java.util.Map namespaceToSchemaLocation)- Specified by:
generatein interfacecommonj.sdo.helper.XSDHelper
-
generate
public java.lang.String generate(java.util.List types, SchemaLocationResolver schemaLocationResolver)Description copied from interface:SDOXSDHelperINTERNAL:- Specified by:
generatein interfaceSDOXSDHelper- Returns:
-
buildAppInfoMap
public java.util.Map buildAppInfoMap(java.util.List appInfoElements)
INTERNAL:- Specified by:
buildAppInfoMapin interfaceSDOXSDHelper- Returns:
-
addGlobalProperty
public void addGlobalProperty(javax.xml.namespace.QName qname, commonj.sdo.Property prop, boolean isElement)INTERNAL:- Specified by:
addGlobalPropertyin interfaceSDOXSDHelper- Parameters:
qname-prop-isElement- Register the given property with the given qname.
-
getXSDHelperDelegate
public SDOXSDHelperDelegate getXSDHelperDelegate()
-
reset
public void reset()
Description copied from interface:SDOXSDHelperINTERNAL:- Specified by:
resetin interfaceSDOXSDHelper
-
-