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.
-
-
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(QName qname, commonj.sdo.Property prop, boolean isElement)INTERNAL:MapbuildAppInfoMap(List appInfoElements)INTERNAL:Listdefine(InputStream xsdInputStream, String schemaLocation)Listdefine(Reader xsdReader, String schemaLocation)Listdefine(String xsd)Listdefine(Source xsdSource, SchemaResolver schemaResolver)INTERNAL:Stringgenerate(List types)Stringgenerate(List types, Map namespaceToSchemaLocation)Stringgenerate(List types, SchemaLocationResolver schemaLocationResolver)INTERNAL:StringgetAppinfo(commonj.sdo.Property property, String source)StringgetAppinfo(commonj.sdo.Type type, String source)commonj.sdo.PropertygetGlobalProperty(String uri, String propertyName, boolean isElement)commonj.sdo.PropertygetGlobalProperty(QName qname, boolean isElement)INTERNAL:StringgetLocalName(commonj.sdo.Property property)StringgetLocalName(commonj.sdo.Type type)StringgetNamespaceURI(commonj.sdo.Property property)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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.sdo.helper.SDOXSDHelper
getHelperContext, setHelperContext
-
-
-
-
Method Detail
-
getLocalName
public String getLocalName(commonj.sdo.Type type)
- Specified by:
getLocalNamein interfacecommonj.sdo.helper.XSDHelper
-
getLocalName
public String getLocalName(commonj.sdo.Property property)
- Specified by:
getLocalNamein interfacecommonj.sdo.helper.XSDHelper
-
getNamespaceURI
public String getNamespaceURI(commonj.sdo.Type type)
-
getNamespaceURI
public 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(String uri, String propertyName, boolean isElement)
- Specified by:
getGlobalPropertyin interfacecommonj.sdo.helper.XSDHelper
-
getGlobalProperty
public commonj.sdo.Property getGlobalProperty(QName qname, boolean isElement)
Description copied from interface:SDOXSDHelperINTERNAL:- Specified by:
getGlobalPropertyin interfaceSDOXSDHelper- Returns:
-
getAppinfo
public String getAppinfo(commonj.sdo.Type type, String source)
- Specified by:
getAppinfoin interfacecommonj.sdo.helper.XSDHelper
-
getAppinfo
public String getAppinfo(commonj.sdo.Property property, String source)
- Specified by:
getAppinfoin interfacecommonj.sdo.helper.XSDHelper
-
define
public List define(String xsd)
- Specified by:
definein interfacecommonj.sdo.helper.XSDHelper
-
define
public List define(Reader xsdReader, String schemaLocation)
- Specified by:
definein interfacecommonj.sdo.helper.XSDHelper
-
define
public List define(Source xsdSource, SchemaResolver schemaResolver)
Description copied from interface:SDOXSDHelperINTERNAL:- Specified by:
definein interfaceSDOXSDHelper- Returns:
-
define
public List define(InputStream xsdInputStream, String schemaLocation)
- Specified by:
definein interfacecommonj.sdo.helper.XSDHelper
-
generate
public String generate(List types)
- Specified by:
generatein interfacecommonj.sdo.helper.XSDHelper
-
generate
public String generate(List types, Map namespaceToSchemaLocation)
- Specified by:
generatein interfacecommonj.sdo.helper.XSDHelper
-
generate
public String generate(List types, SchemaLocationResolver schemaLocationResolver)
Description copied from interface:SDOXSDHelperINTERNAL:- Specified by:
generatein interfaceSDOXSDHelper- Returns:
-
buildAppInfoMap
public Map buildAppInfoMap(List appInfoElements)
INTERNAL:- Specified by:
buildAppInfoMapin interfaceSDOXSDHelper- Returns:
-
addGlobalProperty
public void addGlobalProperty(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
-
-