Package com.skaringa.javaxml.handler

Examples of com.skaringa.javaxml.handler.AttrImpl.addAttribute()


    output.startElement("xsd:sequence");

    attrs = new AttrImpl();
    attrs.addAttribute("name", componentElementName);
    attrs.addAttribute("minOccurs", "0");
    attrs.addAttribute("maxOccurs", "unbounded");

    if (componentElementType == null) {
      attrs.addAttribute("type", "xsd:anyType");
    }
View Full Code Here


    output.startElement("xsd:sequence");

    attrs = new AttrImpl();
    attrs.addAttribute("name", componentElementName);
    attrs.addAttribute("minOccurs", "0");
    attrs.addAttribute("maxOccurs", "unbounded");

    if (componentElementType == null) {
      attrs.addAttribute("type", "xsd:anyType");
    }
    else {
View Full Code Here

    attrs.addAttribute("name", componentElementName);
    attrs.addAttribute("minOccurs", "0");
    attrs.addAttribute("maxOccurs", "unbounded");

    if (componentElementType == null) {
      attrs.addAttribute("type", "xsd:anyType");
    }
    else {
      ComponentSerializer ser =
        SerializerRegistry.getInstance().getSerializer(componentElementType);
      attrs.addAttribute("type", ser.getXMLTypeName());
View Full Code Here

      attrs.addAttribute("type", "xsd:anyType");
    }
    else {
      ComponentSerializer ser =
        SerializerRegistry.getInstance().getSerializer(componentElementType);
      attrs.addAttribute("type", ser.getXMLTypeName());
    }

    attrs.addAttribute("nillable", "true");

    output.startElement("xsd:element", attrs);
View Full Code Here

      ComponentSerializer ser =
        SerializerRegistry.getInstance().getSerializer(componentElementType);
      attrs.addAttribute("type", ser.getXMLTypeName());
    }

    attrs.addAttribute("nillable", "true");

    output.startElement("xsd:element", attrs);
    output.endElement("xsd:element");

    output.endElement("xsd:sequence");
View Full Code Here

  protected final void writeXMLExtensionDef(
    DocumentOutputHandlerInterface output,
    String baseType)
    throws SerializerException {
    AttrImpl attr = new AttrImpl();
    attr.addAttribute("name", getXMLTypeName());
    output.startElement("xsd:complexType", attr);

    output.startElement("xsd:complexContent");

    attr = new AttrImpl();
View Full Code Here

    output.startElement("xsd:complexType", attr);

    output.startElement("xsd:complexContent");

    attr = new AttrImpl();
    attr.addAttribute("base", baseType);
    output.startElement("xsd:extension", attr);

    output.endElement("xsd:extension");

    output.endElement("xsd:complexContent");
View Full Code Here

      DocumentOutputHandlerInterface output) throws SerializerException {

    if (getXMLTypeName().equals("char")) {
      // define char (which is not in xsd...
      AttrImpl attr = new AttrImpl();
      attr.addAttribute("name", "char");
      output.startElement("xsd:simpleType", attr);

      attr = new AttrImpl();
      attr.addAttribute("base", "xsd:string");
      output.startElement("xsd:restriction", attr);
View Full Code Here

      AttrImpl attr = new AttrImpl();
      attr.addAttribute("name", "char");
      output.startElement("xsd:simpleType", attr);

      attr = new AttrImpl();
      attr.addAttribute("base", "xsd:string");
      output.startElement("xsd:restriction", attr);

      attr = new AttrImpl();
      attr.addAttribute("value", "1");
      output.startElement("xsd:length", attr);
View Full Code Here

      attr = new AttrImpl();
      attr.addAttribute("base", "xsd:string");
      output.startElement("xsd:restriction", attr);

      attr = new AttrImpl();
      attr.addAttribute("value", "1");
      output.startElement("xsd:length", attr);
      output.endElement("xsd:length");

      output.endElement("xsd:restriction");
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.