java.lang.Object
com.sun.xml.ws.db.sdo.SDOUtils
A set of core utility methods that shapes the sdo databinding
Created by IntelliJ IDEA.
User: giglee
Date: May 13, 2009
Time: 10:21:12 AM
To change this template use File | Settings | File Templates.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Documentstatic ListdefineSchema(commonj.sdo.helper.HelperContext hc, File f) static Stringdom2String(DOMSource domSrc) getMetadataClosure(List<Source> schemas) static QNamegetPropertyElementName(commonj.sdo.helper.HelperContext context, commonj.sdo.Property p) get the element name represented by this propertygetSchemaClosureFromWSDL(Source wsdlSource) static Set<SchemaInfo>getSchemas(File f) static Set<SchemaInfo>getSchemas(String filePath) static Documentstatic DocumentBuilderstatic Transformerstatic voidstatic voidstatic voidregisterSDOContext(commonj.sdo.helper.HelperContext context, List<Source> schemas) Register the types defined in the given schema with the given sdo helper contextstatic ElementsdoToDom(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) Serialize a DataObject to the specified element Per bug 6120620,, we use only GMT timezonestatic SourcesdoToXML(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) Serialize a DataObject to the specified xml element in text xmlstatic ObjectunwrapPrimitives(Object obj) static booleanvalidateBuiltinType(String javaType, QName qname) Check whether a java class is supported The builtin type includes all the default type mappings specified in the SDO Specstatic booleanvalidateSupportedType(commonj.sdo.helper.HelperContext hc, String javaType, QName qname)
-
Field Details
-
NS_XMLNS
- See Also:
-
NS_WSDL
- See Also:
-
QNAME_SCHEMA
-
-
Constructor Details
-
SDOUtils
public SDOUtils()
-
-
Method Details
-
newTransformer
-
newDocumentBuilder
-
sdoToDom
public static Element sdoToDom(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) throws ParserConfigurationException, IOException Serialize a DataObject to the specified element Per bug 6120620,, we use only GMT timezone -
sdoToXML
public static Source sdoToXML(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) throws ParserConfigurationException, IOException Serialize a DataObject to the specified xml element in text xml- Parameters:
hc-obj-targetNamespace-localName-- Returns:
- Throws:
ParserConfigurationExceptionIOException
-
registerSDOContext
public static void registerSDOContext(commonj.sdo.helper.HelperContext context, List<Source> schemas) Register the types defined in the given schema with the given sdo helper context- Parameters:
context-schemas-
-
getSchemaClosureFromWSDL
-
createDOM
-
getMetadataClosure
-
unwrapPrimitives
-
printDOM
-
dom2String
public static String dom2String(DOMSource domSrc) throws TransformerConfigurationException, TransformerException -
printXMLReader
-
getPropertyElementName
public static QName getPropertyElementName(commonj.sdo.helper.HelperContext context, commonj.sdo.Property p) get the element name represented by this property- Parameters:
context-p-- Returns:
-
defineSchema
- Throws:
Exception
-
newDocument
-
validateBuiltinType
Check whether a java class is supported The builtin type includes all the default type mappings specified in the SDO Spec- Parameters:
javaType-qname-- Returns:
-
validateSupportedType
-
getSchemas
- Throws:
Exception
-
getSchemas
- Throws:
Exception
-