org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSimpleType()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSimpleType()方法的一些代码示例,展示了XmlSchemaSerializer.serializeSimpleType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaSerializer.serializeSimpleType()方法的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaSerializer
类名称:XmlSchemaSerializer
方法名:serializeSimpleType

XmlSchemaSerializer.serializeSimpleType介绍

[英]* Element serializeSimpleType(Document doc, XmlSchemaSimpleType simpleTypeObj, XmlSchema schema) throws XmlSchemaSerializerException{

Each member of simple type will be appended and pass the element created. Simple type processed according to w3c Recommendation May 2 2001.

Parameter: doc - Document the parent use. simpleTypeObj - XmlSchemaSimpleType that will be serialized. schema - Schema Document object of the parent.

Return: Element object of SimpleType *
[中]元素serializeSimpleType(文档文档,XmlSchemaSimpleType SimpleTypeBj,XmlSchema schema)抛出XmlSchemaSerializerException{
每个简单类型的成员都将被追加并传递所创建的元素。根据w3c 2001年5月2日建议处理的简单类型。
参数:doc-记录父级使用。SimpleTypeBJ-XmlSchemaSimpleType将被序列化。schema-父级的schema文档对象。
Return:SimpleType的元素对象

代码示例

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

Element inlineSimpleEl = serializeSimpleType(doc, listObj.itemType,
    schema);
list.appendChild(inlineSimpleEl);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

Element inlineSimpleEl = serializeSimpleType(doc, listObj.itemType,
    schema);
list.appendChild(inlineSimpleEl);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

Element inlineSimpleEl = serializeSimpleType(doc, listObj.itemType,
    schema);
list.appendChild(inlineSimpleEl);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

for (int i = 0; i < baseTypesLength; i++) {
  try {
    baseType = serializeSimpleType(doc,
        (XmlSchemaSimpleType) unionObj.baseTypes.getItem(i),
        schema);

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

Element e = serializeSimpleType(serializedSchemaDocs,
    (XmlSchemaSimpleType) obj, schemaObj);
serializedSchema.appendChild(e);

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

for (int i = 0; i < baseTypesLength; i++) {
  try {
    baseType = serializeSimpleType(doc,
        (XmlSchemaSimpleType) unionObj.baseTypes.getItem(i),
        schema);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

Element e = serializeSimpleType(serializedSchemaDocs,
    (XmlSchemaSimpleType) obj, schemaObj);
serializedSchema.appendChild(e);

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

serializedEl.appendChild(complexType);
} else if (elementObj.schemaType instanceof XmlSchemaSimpleType) {
  Element simpleType = serializeSimpleType(doc,
      (XmlSchemaSimpleType) elementObj.schemaType, schema);
  serializedEl.appendChild(simpleType);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

serializedEl.appendChild(complexType);
} else if (elementObj.schemaType instanceof XmlSchemaSimpleType) {
  Element simpleType = serializeSimpleType(doc,
      (XmlSchemaSimpleType) elementObj.schemaType, schema);
  serializedEl.appendChild(simpleType);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

Element e = serializeSimpleType(serializedSchemaDocs,
    (XmlSchemaSimpleType) obj, schemaObj);
serializedSchema.appendChild(e);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

for (int i = 0; i < baseTypesLength; i++) {
  try {
    baseType = serializeSimpleType(doc,
        (XmlSchemaSimpleType) unionObj.baseTypes.getItem(i),
        schema);

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

XmlSchemaObject obj = redefineObj.items.getItem(i);
if (obj instanceof XmlSchemaSimpleType) {
  Element simpleType = serializeSimpleType(doc,
      (XmlSchemaSimpleType) obj, schema);
  redefine.appendChild(simpleType);

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

Element inlineSimpleType = serializeSimpleType(doc,
    restrictionObj.baseType, schema);
restriction.appendChild(inlineSimpleType);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

XmlSchemaObject obj = redefineObj.items.getItem(i);
if (obj instanceof XmlSchemaSimpleType) {
  Element simpleType = serializeSimpleType(doc,
      (XmlSchemaSimpleType) obj, schema);
  redefine.appendChild(simpleType);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

XmlSchemaObject obj = redefineObj.items.getItem(i);
if (obj instanceof XmlSchemaSimpleType) {
  Element simpleType = serializeSimpleType(doc,
      (XmlSchemaSimpleType) obj, schema);
  redefine.appendChild(simpleType);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

Element inlineSimpleType = serializeSimpleType(doc,
    restrictionObj.baseType, schema);
restriction.appendChild(inlineSimpleType);

代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema

} else if (restrictionObj.baseType != null && restrictionObj.baseType
    instanceof XmlSchemaSimpleType) {
  Element inlineSimpleType = serializeSimpleType(doc,
      restrictionObj.baseType, schema);
  serializedRestriction.appendChild(inlineSimpleType);

代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

} else if (restrictionObj.baseType != null && restrictionObj.baseType
    instanceof XmlSchemaSimpleType) {
  Element inlineSimpleType = serializeSimpleType(doc,
      restrictionObj.baseType, schema);
  serializedRestriction.appendChild(inlineSimpleType);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

} else if (restrictionObj.baseType != null && restrictionObj.baseType
    instanceof XmlSchemaSimpleType) {
  Element inlineSimpleType = serializeSimpleType(doc,
      restrictionObj.baseType, schema);
  serializedRestriction.appendChild(inlineSimpleType);

代码示例来源:origin: org.apache.ws.schema/XmlSchema

Element inlineSimpleType = serializeSimpleType(doc,
    restrictionObj.baseType, schema);
restriction.appendChild(inlineSimpleType);

相关文章

XmlSchemaSerializer类方法