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 void
addGlobalProperty(QName qname, commonj.sdo.Property prop, boolean isElement)
INTERNAL:Map
buildAppInfoMap(List appInfoElements)
INTERNAL:List
define(InputStream xsdInputStream, String schemaLocation)
List
define(Reader xsdReader, String schemaLocation)
List
define(String xsd)
List
define(Source xsdSource, SchemaResolver schemaResolver)
INTERNAL:String
generate(List types)
String
generate(List types, Map namespaceToSchemaLocation)
String
generate(List types, SchemaLocationResolver schemaLocationResolver)
INTERNAL:String
getAppinfo(commonj.sdo.Property property, String source)
String
getAppinfo(commonj.sdo.Type type, String source)
commonj.sdo.Property
getGlobalProperty(String uri, String propertyName, boolean isElement)
commonj.sdo.Property
getGlobalProperty(QName qname, boolean isElement)
INTERNAL:String
getLocalName(commonj.sdo.Property property)
String
getLocalName(commonj.sdo.Type type)
String
getNamespaceURI(commonj.sdo.Property property)
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 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:
getLocalName
in interfacecommonj.sdo.helper.XSDHelper
-
getLocalName
public String getLocalName(commonj.sdo.Property property)
- Specified by:
getLocalName
in interfacecommonj.sdo.helper.XSDHelper
-
getNamespaceURI
public String getNamespaceURI(commonj.sdo.Type type)
-
getNamespaceURI
public String getNamespaceURI(commonj.sdo.Property property)
- Specified by:
getNamespaceURI
in interfacecommonj.sdo.helper.XSDHelper
-
isAttribute
public boolean isAttribute(commonj.sdo.Property property)
- Specified by:
isAttribute
in interfacecommonj.sdo.helper.XSDHelper
-
isElement
public boolean isElement(commonj.sdo.Property property)
- Specified by:
isElement
in interfacecommonj.sdo.helper.XSDHelper
-
isMixed
public boolean isMixed(commonj.sdo.Type type)
- Specified by:
isMixed
in interfacecommonj.sdo.helper.XSDHelper
-
isXSD
public boolean isXSD(commonj.sdo.Type type)
- Specified by:
isXSD
in interfacecommonj.sdo.helper.XSDHelper
-
getGlobalProperty
public commonj.sdo.Property getGlobalProperty(String uri, String propertyName, boolean isElement)
- Specified by:
getGlobalProperty
in interfacecommonj.sdo.helper.XSDHelper
-
getGlobalProperty
public commonj.sdo.Property getGlobalProperty(QName qname, boolean isElement)
Description copied from interface:SDOXSDHelper
INTERNAL:- Specified by:
getGlobalProperty
in interfaceSDOXSDHelper
- Returns:
-
getAppinfo
public String getAppinfo(commonj.sdo.Type type, String source)
- Specified by:
getAppinfo
in interfacecommonj.sdo.helper.XSDHelper
-
getAppinfo
public String getAppinfo(commonj.sdo.Property property, String source)
- Specified by:
getAppinfo
in interfacecommonj.sdo.helper.XSDHelper
-
define
public List define(String xsd)
- Specified by:
define
in interfacecommonj.sdo.helper.XSDHelper
-
define
public List define(Reader xsdReader, String schemaLocation)
- Specified by:
define
in interfacecommonj.sdo.helper.XSDHelper
-
define
public List define(Source xsdSource, SchemaResolver schemaResolver)
Description copied from interface:SDOXSDHelper
INTERNAL:- Specified by:
define
in interfaceSDOXSDHelper
- Returns:
-
define
public List define(InputStream xsdInputStream, String schemaLocation)
- Specified by:
define
in interfacecommonj.sdo.helper.XSDHelper
-
generate
public String generate(List types)
- Specified by:
generate
in interfacecommonj.sdo.helper.XSDHelper
-
generate
public String generate(List types, Map namespaceToSchemaLocation)
- Specified by:
generate
in interfacecommonj.sdo.helper.XSDHelper
-
generate
public String generate(List types, SchemaLocationResolver schemaLocationResolver)
Description copied from interface:SDOXSDHelper
INTERNAL:- Specified by:
generate
in interfaceSDOXSDHelper
- Returns:
-
buildAppInfoMap
public Map buildAppInfoMap(List appInfoElements)
INTERNAL:- Specified by:
buildAppInfoMap
in interfaceSDOXSDHelper
- Returns:
-
addGlobalProperty
public void addGlobalProperty(QName qname, commonj.sdo.Property prop, boolean isElement)
INTERNAL:- Specified by:
addGlobalProperty
in 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:SDOXSDHelper
INTERNAL:- Specified by:
reset
in interfaceSDOXSDHelper
-
-