1 16 package org.apache.axis2.om.impl.llom.factory; 17 18 import org.apache.axis2.om.OMFactory; 19 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder; 20 import org.apache.axis2.soap.SOAPFactory; 21 import org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder; 22 23 import javax.xml.stream.XMLStreamReader; 24 25 28 public class OMXMLBuilderFactory { 29 32 public static final String PARSER_XPP = "XPP"; 33 34 37 public static final String PARSER_STAX = "StAX"; 38 39 42 public static final String MODEL_SOAP_SPECIFIC = "SOAP_SPECIFIC"; 43 44 47 public static final String MODEL_OM = "OM_ONLY"; 48 49 56 public static StAXSOAPModelBuilder createStAXSOAPModelBuilder( 57 SOAPFactory soapFactory, XMLStreamReader parser) { 58 return new StAXSOAPModelBuilder(parser); 59 } 60 61 68 public static StAXOMBuilder createStAXOMBuilder(OMFactory ombuilderFactory, 69 XMLStreamReader parser) { 70 return new StAXOMBuilder(ombuilderFactory, parser); 71 } 72 } 73 | Popular Tags |