Package com.skaringa.javaxml.handler

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


      attrs.addAttribute("type", "xsd:ID");
      output.startElement("xsd:attribute", attrs);
      output.endElement("xsd:attribute");

      attrs = new AttrImpl();
      attrs.addAttribute("name", "reference");
      attrs.addAttribute("type", "xsd:IDREF");
      output.startElement("xsd:attribute", attrs);
      output.endElement("xsd:attribute");
    }
  }
View Full Code Here


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

      attrs = new AttrImpl();
      attrs.addAttribute("name", "reference");
      attrs.addAttribute("type", "xsd:IDREF");
      output.startElement("xsd:attribute", attrs);
      output.endElement("xsd:attribute");
    }
  }
View Full Code Here

        // serialize member
        ComponentSerializer ser = SerializerRegistry.getInstance()
            .getSerializer(fieldType);

        AttrImpl attrs = new AttrImpl();
        attrs.addAttribute("name", fieldName);
        attrs.addAttribute("type", ser.getXMLTypeName());
        attrs.addAttribute("nillable", "true");
        attrs.addAttribute("minOccurs", "0");

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

        ComponentSerializer ser = SerializerRegistry.getInstance()
            .getSerializer(fieldType);

        AttrImpl attrs = new AttrImpl();
        attrs.addAttribute("name", fieldName);
        attrs.addAttribute("type", ser.getXMLTypeName());
        attrs.addAttribute("nillable", "true");
        attrs.addAttribute("minOccurs", "0");

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

            .getSerializer(fieldType);

        AttrImpl attrs = new AttrImpl();
        attrs.addAttribute("name", fieldName);
        attrs.addAttribute("type", ser.getXMLTypeName());
        attrs.addAttribute("nillable", "true");
        attrs.addAttribute("minOccurs", "0");

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

        AttrImpl attrs = new AttrImpl();
        attrs.addAttribute("name", fieldName);
        attrs.addAttribute("type", ser.getXMLTypeName());
        attrs.addAttribute("nillable", "true");
        attrs.addAttribute("minOccurs", "0");

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

    boolean omitNil =
      PropertyHelper.parseBoolean(propertyMap, PropertyKeys.OMIT_XSI_NIL);

    AttrImpl attrs = new AttrImpl();
    if (!omitXsi) {
      attrs.addAttribute(
        NSConstants.SCHEMA_INSTANCE_NS_NAME,
        NSConstants.SCHEMA_INSTANCE_NS_PREFIX,
        "type",
        type);
    }
View Full Code Here

        NSConstants.SCHEMA_INSTANCE_NS_PREFIX,
        "type",
        type);
    }
    if (obj == null && !omitNil) {
      attrs.addAttribute(
        NSConstants.SCHEMA_INSTANCE_NS_NAME,
        NSConstants.SCHEMA_INSTANCE_NS_PREFIX,
        "nil",
        "true");
    }
View Full Code Here

    Class componentElementType,
    DocumentOutputHandlerInterface output)
    throws SerializerException {

    AttrImpl attrs = new AttrImpl();
    attrs.addAttribute("name", getXMLTypeName());
    output.startElement("xsd:complexType", attrs);

    output.startElement("xsd:sequence");

    attrs = new AttrImpl();
View Full Code Here

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

    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

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.