Examples of newXMLReader()


Examples of com.ipc.oce.OCApp.newXMLReader()

   * @return OCObject
   * @throws JIException
   */
  public OCObject readXML(String xml) throws JIException {
    OCApp app = OCApp.getInstance(getAssociatedSessionID());
    OCXMLReader reader = app.newXMLReader();
    reader.setString(xml);
    return readXML(reader);
  }
 
  /**
 
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLReader()

  @POST
  public Response updateDataObject(String body) {
    try {
      OCApp app = getApplication();
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLReader reader = app.newXMLReader();
      reader.setString(body);
      OCObject object = serializer.readXML(reader);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      /*if (commonObject.isNew()) {
       
View Full Code Here

Examples of com.ipc.oce.OCApp.newXMLReader()

  @PUT
  public Response createDataObject(String body) {
    try {
      OCApp app = getApplication();
      OCXDTOSerializer serializer = app.getXDTOSerializer();
      OCXMLReader reader = app.newXMLReader();
      reader.setString(body);
      OCObject object = serializer.readXML(reader);
      _OCCommonObject commonObject = new _OCCommonObject(object);
      commonObject.write();
     
View Full Code Here

Examples of org.apache.ws.jaxme.xs.xml.XsObjectFactory.newXMLReader()

    parser.set(this);
    try {
      XsObjectFactory factory = context.getXsObjectFactory();
      XsSAXParser xsSAXParser = factory.newXsSAXParser();
      context.setCurrentContentHandler(xsSAXParser);
      XMLReader xr = factory.newXMLReader(isValidating());
      xr.setContentHandler(xsSAXParser);
      xr.parse(pSource);
      return (XsESchema) xsSAXParser.getBean();
    } finally {
      context.setCurrentContentHandler(null);
View Full Code Here

Examples of org.apache.ws.jaxme.xs.xml.XsObjectFactory.newXMLReader()

      XsESchema pSchema)
  throws SAXException, IOException, ParserConfigurationException {
    XSContext data = getData();
    try {
      XsObjectFactory factory = data.getXsObjectFactory();
      XMLReader xr = factory.newXMLReader(isValidating());
      EntityResolver entityResolver = xr.getEntityResolver();
      InputSource schemaSource = null;
      if (entityResolver != null) {
        schemaSource = entityResolver.resolveEntity(null, pSchemaLocation);
      }
View Full Code Here

Examples of org.apache.ws.jaxme.xs.xml.XsObjectFactory.newXMLReader()

      XsESchema mySchema = factory.newXsESchema();
      XsSAXParser xsSAXParser = factory.newXsSAXParser(mySchema);
      addSyntaxSchema(mySchema);
      try {
        data.setCurrentContentHandler(xsSAXParser);
        XMLReader xr = factory.newXMLReader(isValidating());
        xr.setContentHandler(xsSAXParser);
        xr.parse(pSource);
        return (XsESchema) xsSAXParser.getBean();
      } finally {
        removeSyntaxSchema();
View Full Code Here

Examples of org.apache.ws.jaxme.xs.xml.XsObjectFactory.newXMLReader()

    parser.set(this);
    try {
      XsObjectFactory factory = context.getXsObjectFactory();
      XsSAXParser xsSAXParser = factory.newXsSAXParser();
      context.setCurrentContentHandler(xsSAXParser);
      XMLReader xr = factory.newXMLReader(isValidating());
      xr.setContentHandler(xsSAXParser);
      xr.parse(pSource);
      return (XsESchema) xsSAXParser.getBean();
    } finally {
      context.setCurrentContentHandler(null);
View Full Code Here

Examples of org.apache.ws.jaxme.xs.xml.XsObjectFactory.newXMLReader()

      XsESchema mySchema = factory.newXsESchema();
      XsSAXParser xsSAXParser = factory.newXsSAXParser(mySchema);
      addSyntaxSchema(mySchema);
      try {
        data.setCurrentContentHandler(xsSAXParser);
        XMLReader xr = factory.newXMLReader(isValidating());
        xr.setContentHandler(xsSAXParser);
        EntityResolver entityResolver = xr.getEntityResolver();
        if (entityResolver != null) {
          InputSource iSource = entityResolver.resolveEntity(pSource.getPublicId(), pSource.getSystemId());
          if (iSource != null) {
View Full Code Here

Examples of org.apache.ws.jaxme.xs.xml.XsObjectFactory.newXMLReader()

    parser.set(this);
    try {
      XsObjectFactory factory = context.getXsObjectFactory();
      XsSAXParser xsSAXParser = factory.newXsSAXParser();
      context.setCurrentContentHandler(xsSAXParser);
      XMLReader xr = factory.newXMLReader(isValidating());
      xr.setContentHandler(xsSAXParser);
      xr.parse(pSource);
      return (XsESchema) xsSAXParser.getBean();
    } finally {
      context.setCurrentContentHandler(null);
View Full Code Here

Examples of org.apache.ws.jaxme.xs.xml.XsObjectFactory.newXMLReader()

      XsESchema pSchema)
  throws SAXException, IOException, ParserConfigurationException {
    XSContext data = getData();
    try {
      XsObjectFactory factory = data.getXsObjectFactory();
      XMLReader xr = factory.newXMLReader(isValidating());
      EntityResolver entityResolver = xr.getEntityResolver();
      InputSource schemaSource = null;
      if (entityResolver != null) {
        schemaSource = entityResolver.resolveEntity(null, pSchemaLocation);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.