public class SDOUtils
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NS_WSDL |
|
static java.lang.String |
NS_XMLNS |
|
static javax.xml.namespace.QName |
QNAME_SCHEMA |
| Constructor | Description |
|---|---|
SDOUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static org.w3c.dom.Document |
createDOM(javax.xml.transform.Source wsdlSource) |
|
static java.util.List |
defineSchema(commonj.sdo.helper.HelperContext hc,
java.io.File f) |
|
static java.lang.String |
dom2String(javax.xml.transform.dom.DOMSource domSrc) |
|
static java.util.Map<java.lang.String,javax.xml.transform.Source> |
getMetadataClosure(java.util.List<javax.xml.transform.Source> schemas) |
|
static javax.xml.namespace.QName |
getPropertyElementName(commonj.sdo.helper.HelperContext context,
commonj.sdo.Property p) |
get the element name represented by this property
|
static java.util.List<javax.xml.transform.Source> |
getSchemaClosureFromWSDL(javax.xml.transform.Source wsdlSource) |
|
static java.util.Set<SchemaInfo> |
getSchemas(java.io.File f) |
|
static java.util.Set<SchemaInfo> |
getSchemas(java.lang.String filePath) |
|
static org.w3c.dom.Document |
newDocument() |
|
static javax.xml.parsers.DocumentBuilder |
newDocumentBuilder() |
|
static javax.xml.transform.Transformer |
newTransformer() |
|
static void |
printDOM(javax.xml.transform.Source src) |
|
static void |
printXMLReader(javax.xml.stream.XMLStreamReader xml) |
|
static void |
registerSDOContext(commonj.sdo.helper.HelperContext context,
java.util.List<javax.xml.transform.Source> schemas) |
Register the types defined in the given schema with the given sdo helper context
|
static org.w3c.dom.Element |
sdoToDom(commonj.sdo.helper.HelperContext hc,
commonj.sdo.DataObject obj,
java.lang.String targetNamespace,
java.lang.String localName) |
Serialize a DataObject to the specified element
Per bug 6120620,, we use only GMT timezone
|
static javax.xml.transform.Source |
sdoToXML(commonj.sdo.helper.HelperContext hc,
commonj.sdo.DataObject obj,
java.lang.String targetNamespace,
java.lang.String localName) |
Serialize a DataObject to the specified xml element in text xml
|
static java.lang.Object |
unwrapPrimitives(java.lang.Object obj) |
|
static boolean |
validateBuiltinType(java.lang.String javaType,
javax.xml.namespace.QName qname) |
Check whether a java class is supported
The builtin type includes all the default type mappings specified in the SDO Spec
|
static boolean |
validateSupportedType(commonj.sdo.helper.HelperContext hc,
java.lang.String javaType,
javax.xml.namespace.QName qname) |
public static final java.lang.String NS_XMLNS
public static final java.lang.String NS_WSDL
public static final javax.xml.namespace.QName QNAME_SCHEMA
public static javax.xml.transform.Transformer newTransformer()
public static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
public static org.w3c.dom.Element sdoToDom(commonj.sdo.helper.HelperContext hc,
commonj.sdo.DataObject obj,
java.lang.String targetNamespace,
java.lang.String localName)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException
javax.xml.parsers.ParserConfigurationExceptionjava.io.IOExceptionpublic static javax.xml.transform.Source sdoToXML(commonj.sdo.helper.HelperContext hc,
commonj.sdo.DataObject obj,
java.lang.String targetNamespace,
java.lang.String localName)
throws javax.xml.parsers.ParserConfigurationException,
java.io.IOException
hc - obj - targetNamespace - localName - javax.xml.parsers.ParserConfigurationExceptionjava.io.IOExceptionpublic static void registerSDOContext(commonj.sdo.helper.HelperContext context,
java.util.List<javax.xml.transform.Source> schemas)
context - schemas - public static java.util.List<javax.xml.transform.Source> getSchemaClosureFromWSDL(javax.xml.transform.Source wsdlSource)
public static org.w3c.dom.Document createDOM(javax.xml.transform.Source wsdlSource)
public static java.util.Map<java.lang.String,javax.xml.transform.Source> getMetadataClosure(java.util.List<javax.xml.transform.Source> schemas)
public static java.lang.Object unwrapPrimitives(java.lang.Object obj)
public static void printDOM(javax.xml.transform.Source src)
public static java.lang.String dom2String(javax.xml.transform.dom.DOMSource domSrc)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
javax.xml.transform.TransformerConfigurationExceptionjavax.xml.transform.TransformerExceptionpublic static void printXMLReader(javax.xml.stream.XMLStreamReader xml)
public static javax.xml.namespace.QName getPropertyElementName(commonj.sdo.helper.HelperContext context,
commonj.sdo.Property p)
context - p - public static java.util.List defineSchema(commonj.sdo.helper.HelperContext hc,
java.io.File f)
throws java.lang.Exception
java.lang.Exceptionpublic static org.w3c.dom.Document newDocument()
public static boolean validateBuiltinType(java.lang.String javaType,
javax.xml.namespace.QName qname)
javaType - qname - public static boolean validateSupportedType(commonj.sdo.helper.HelperContext hc,
java.lang.String javaType,
javax.xml.namespace.QName qname)
public static java.util.Set<SchemaInfo> getSchemas(java.io.File f) throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Set<SchemaInfo> getSchemas(java.lang.String filePath) throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 Oracle Corporation. All rights reserved.