Examples of require()


Examples of org.kxml2.io.KXmlParser.require()

            throw new IOException( e.toString() );
        }
        try
        {
            parser.nextTag();
            parser.require( XmlPullParser.START_TAG, null, "registry-config" );
            parser.nextTag();
            parser.require( XmlPullParser.START_TAG, null, "repositories" );

            while ( parser.nextTag() == XmlPullParser.START_TAG )
            {
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParser.require()

// reader = new StringReader("<?xml version='1.0'?><methodResponse><params><param><value>\n\n\n</value></param></params></methodResponse>");
      pullParser.setInput(reader);
     
      // lets start pulling...
      pullParser.nextTag();
      pullParser.require(XmlPullParser.START_TAG, null, Tag.METHOD_RESPONSE);
     
      pullParser.nextTag(); // either Tag.PARAMS (<params>) or Tag.FAULT (<fault>) 
      String tag = pullParser.getName();
      if (tag.equals(Tag.PARAMS)) {
        // normal response
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParser.require()

      pullParser.nextTag(); // either Tag.PARAMS (<params>) or Tag.FAULT (<fault>) 
      String tag = pullParser.getName();
      if (tag.equals(Tag.PARAMS)) {
        // normal response
        pullParser.nextTag(); // Tag.PARAM (<param>)
        pullParser.require(XmlPullParser.START_TAG, null, Tag.PARAM);
        pullParser.nextTag(); // Tag.VALUE (<value>)
        // no parser.require() here since its called in XMLRPCSerializer.deserialize() below
       
        // deserialize result
        Object obj = iXMLRPCSerializer.deserialize(pullParser);
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParser.require()

    InputStream inputStream = socket.getInputStream();

    XmlPullParser pullParser = xmlPullParserFromSocket(inputStream);
   
    pullParser.nextTag();
    pullParser.require(XmlPullParser.START_TAG, null, Tag.METHOD_CALL);
    pullParser.nextTag();
    pullParser.require(XmlPullParser.START_TAG, null, Tag.METHOD_NAME);

    methodCall.setMethodName(pullParser.nextText());
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParser.require()

    XmlPullParser pullParser = xmlPullParserFromSocket(inputStream);
   
    pullParser.nextTag();
    pullParser.require(XmlPullParser.START_TAG, null, Tag.METHOD_CALL);
    pullParser.nextTag();
    pullParser.require(XmlPullParser.START_TAG, null, Tag.METHOD_NAME);

    methodCall.setMethodName(pullParser.nextText());

    pullParser.nextTag();
    pullParser.require(XmlPullParser.START_TAG, null, Tag.PARAMS);
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParser.require()

    pullParser.require(XmlPullParser.START_TAG, null, Tag.METHOD_NAME);

    methodCall.setMethodName(pullParser.nextText());

    pullParser.nextTag();
    pullParser.require(XmlPullParser.START_TAG, null, Tag.PARAMS);
    pullParser.nextTag(); // <param>
   
    do {
      //Log.d(Tag.LOG, "type=" + pullParser.getEventType() + ", tag=" + pullParser.getName());
      pullParser.require(XmlPullParser.START_TAG, null, Tag.PARAM);
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParser.require()

    pullParser.require(XmlPullParser.START_TAG, null, Tag.PARAMS);
    pullParser.nextTag(); // <param>
   
    do {
      //Log.d(Tag.LOG, "type=" + pullParser.getEventType() + ", tag=" + pullParser.getName());
      pullParser.require(XmlPullParser.START_TAG, null, Tag.PARAM);
      pullParser.nextTag(); // <value>

      Object param = iXMLRPCSerializer.deserialize(pullParser);
      methodCall.params.add(param); // add to return value
View Full Code Here

Examples of org.xmlpull.v1.XmlPullParser.require()

      Object param = iXMLRPCSerializer.deserialize(pullParser);
      methodCall.params.add(param); // add to return value

      pullParser.nextTag();
      pullParser.require(XmlPullParser.END_TAG, null, Tag.PARAM);
      pullParser.nextTag(); // <param> or </params>
     
    } while (!pullParser.getName().equals(Tag.PARAMS)); // </params>

    return methodCall;
View Full Code Here

Examples of org.xorm.query.Selector.require()

            Selector selector = new Selector
                (table,
                 new SimpleCondition(table.getPrimaryKey(),
                                     Operator.EQUAL,
                                     primaryKey));
            selector.require(dfg);
            Collection rows = selectRows(selector);
            if (!rows.isEmpty()) {
                row = (Row) rows.iterator().next();
            } else {
                throw new JDOObjectNotFoundException();
View Full Code Here

Examples of plotter.LineChecker.require()

    add(.1, .1);
    add(.9, .9);
    CountingGraphics g = paint();

    LineChecker c = new LineChecker();
    c.require(19, 180, 179, 20);
    c.check(g.getLines());
    assertEquals(2, g.getPointCount());
  }

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.