|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.db.sdo.SDOUtils
public class 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 | |
---|---|
(package private) static DocumentBuilderFactory |
dbf
|
static String |
NS_WSDL
|
static String |
NS_XMLNS
|
static QName |
QNAME_SCHEMA
|
(package private) static TransformerFactory |
transformerFactory
|
Constructor Summary | |
---|---|
SDOUtils()
|
Method Summary | |
---|---|
static Document |
createDOM(Source wsdlSource)
|
static List |
defineSchema(commonj.sdo.helper.HelperContext hc,
File f)
|
static String |
dom2String(DOMSource domSrc)
|
static Map<String,Source> |
getMetadataClosure(List<Source> schemas)
|
static QName |
getPropertyElementName(commonj.sdo.helper.HelperContext context,
commonj.sdo.Property p)
get the element name represented by this property |
static List<Source> |
getSchemaClosureFromWSDL(Source wsdlSource)
|
static Set<SchemaInfo> |
getSchemas(File f)
|
static Set<SchemaInfo> |
getSchemas(String filePath)
|
static Document |
newDocument()
|
static DocumentBuilder |
newDocumentBuilder()
|
static Transformer |
newTransformer()
|
static void |
printDOM(Source src)
|
static void |
printXMLReader(javax.xml.stream.XMLStreamReader xml)
|
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 |
static Element |
sdoToDom(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 timezone |
static Source |
sdoToXML(commonj.sdo.helper.HelperContext hc,
commonj.sdo.DataObject obj,
String targetNamespace,
String localName)
Serialize a DataObject to the specified xml element in text xml |
static Object |
unwrapPrimitives(Object obj)
|
static boolean |
validateBuiltinType(String javaType,
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,
String javaType,
QName qname)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NS_XMLNS
public static final String NS_WSDL
public static final QName QNAME_SCHEMA
static TransformerFactory transformerFactory
static DocumentBuilderFactory dbf
Constructor Detail |
---|
public SDOUtils()
Method Detail |
---|
public static Transformer newTransformer()
public static DocumentBuilder newDocumentBuilder()
public static Element sdoToDom(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) throws ParserConfigurationException, IOException
ParserConfigurationException
IOException
public static Source sdoToXML(commonj.sdo.helper.HelperContext hc, commonj.sdo.DataObject obj, String targetNamespace, String localName) throws ParserConfigurationException, IOException
hc
- obj
- targetNamespace
- localName
-
ParserConfigurationException
IOException
public static void registerSDOContext(commonj.sdo.helper.HelperContext context, List<Source> schemas)
context
- schemas
- public static List<Source> getSchemaClosureFromWSDL(Source wsdlSource)
public static Document createDOM(Source wsdlSource)
public static Map<String,Source> getMetadataClosure(List<Source> schemas)
public static Object unwrapPrimitives(Object obj)
public static void printDOM(Source src)
public static String dom2String(DOMSource domSrc) throws TransformerConfigurationException, TransformerException
TransformerConfigurationException
TransformerException
public static void printXMLReader(javax.xml.stream.XMLStreamReader xml)
public static QName getPropertyElementName(commonj.sdo.helper.HelperContext context, commonj.sdo.Property p)
context
- p
-
public static List defineSchema(commonj.sdo.helper.HelperContext hc, File f) throws Exception
Exception
public static Document newDocument()
public static boolean validateBuiltinType(String javaType, QName qname)
javaType
- qname
-
public static boolean validateSupportedType(commonj.sdo.helper.HelperContext hc, String javaType, QName qname)
public static Set<SchemaInfo> getSchemas(File f) throws Exception
Exception
public static Set<SchemaInfo> getSchemas(String filePath) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |