Java 类org.xmlpull.v1.wrapper.XmlSerializerWrapper 实例源码

项目:VectorAttackScanner    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper element( String namespace, String elementName, String elementText ) throws IOException, XmlPullParserException {

        if ( elementName == null ) {
            throw new XmlPullParserException( "name for element can not be null" );
        }

        xs.startTag( namespace, elementName );
        if ( elementText == null ) {
            xs.attribute( XSI_NS, "nil", "true" );
        }
        else {
            xs.text( elementText );
        }
        xs.endTag( namespace, elementName );
        return this;
    }
项目:AndroidApktool    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper element(String var1, String var2, String var3) throws IOException, XmlPullParserException {
   if(var2 == null) {
      throw new XmlPullParserException("name for element can not be null");
   } else {
      this.xs.startTag(var1, var2);
      if(var3 == null) {
         this.xs.attribute("http://www.w3.org/2001/XMLSchema-instance", "nil", "true");
      } else {
         this.xs.text(var3);
      }

      this.xs.endTag(var1, var2);
      return this;
   }
}
项目:AndroidApktool    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper attribute(String var1, String var2) throws IOException, IllegalArgumentException, IllegalStateException {
   this.xs.attribute((String)null, var1, var2);
   return this;
}
项目:AndroidApktool    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper startTag(String var1) throws IOException, IllegalArgumentException, IllegalStateException {
   this.xs.startTag(this.currentNs, var1);
   return this;
}
项目:AndroidApktool    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper endTag(String var1) throws IOException, IllegalArgumentException, IllegalStateException {
   this.endTag(this.currentNs, var1);
   return this;
}
项目:AndroidApktool    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper element(String var1, String var2) throws IOException, XmlPullParserException {
   return this.element(this.currentNs, var1, var2);
}
项目:VectorAttackScanner    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper attribute( String name, String value ) throws IOException, IllegalArgumentException, IllegalStateException {

        xs.attribute( null, name, value );
        return this;
    }
项目:VectorAttackScanner    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper startTag( String name ) throws IOException, IllegalArgumentException, IllegalStateException {

        xs.startTag( currentNs, name );
        return this;
    }
项目:VectorAttackScanner    文件:StaticXmlSerializerWrapper.java   
public XmlSerializerWrapper endTag( String name ) throws IOException, IllegalArgumentException, IllegalStateException {

        endTag( currentNs, name );
        return this;
    }
项目:VectorAttackScanner    文件:StaticXmlSerializerWrapper.java   
/** Write simple text element in current namespace */
public XmlSerializerWrapper element( String elementName, String elementText ) throws IOException, XmlPullParserException {

    return element( currentNs, elementName, elementText );
}