本文整理了Java中org.apache.ws.commons.schema.XmlSchemaAny.setMinOccurs()
方法的一些代码示例,展示了XmlSchemaAny.setMinOccurs()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaAny.setMinOccurs()
方法的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaAny
类名称:XmlSchemaAny
方法名:setMinOccurs
暂无
代码示例来源:origin: org.raml/raml-parser-2
@Nonnull
private XmlSchemaType createAny()
{
final XmlSchemaComplexType value = new XmlSchemaComplexType(schema, false);
final XmlSchemaChoice xmlSchemaSequence = new XmlSchemaChoice();
value.setParticle(xmlSchemaSequence);
final List<XmlSchemaChoiceMember> items = xmlSchemaSequence.getItems();
final XmlSchemaAny schemaAny = new XmlSchemaAny();
schemaAny.setMinOccurs(0);
schemaAny.setMaxOccurs(UNBOUNDED);
schemaAny.setProcessContent(XmlSchemaContentProcessing.SKIP);
items.add(schemaAny);
return value;
}
}
代码示例来源:origin: raml-org/raml-java-parser
@Nonnull
private XmlSchemaType createAny()
{
final XmlSchemaComplexType value = new XmlSchemaComplexType(schema, false);
final XmlSchemaChoice xmlSchemaSequence = new XmlSchemaChoice();
value.setParticle(xmlSchemaSequence);
final List<XmlSchemaChoiceMember> items = xmlSchemaSequence.getItems();
final XmlSchemaAny schemaAny = new XmlSchemaAny();
schemaAny.setMinOccurs(0);
schemaAny.setMaxOccurs(UNBOUNDED);
schemaAny.setProcessContent(XmlSchemaContentProcessing.SKIP);
items.add(schemaAny);
return value;
}
}
代码示例来源:origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core
/**
* Creates the default data services response element, and stores it in the schema.
* @param cparams The common parameters used in the schema generator
*/
private static void createAndStoreDataServiceResponseElement(CommonParams cparams) {
XmlSchemaElement element = createElement(cparams, DBConstants.WSO2_DS_NAMESPACE,
DBConstants.DATA_SERVICE_RESPONSE_WRAPPER_ELEMENT, true);
XmlSchemaComplexType type = createComplexType(cparams, DBConstants.WSO2_DS_NAMESPACE,
DBConstants.DATA_SERVICE_RESPONSE_WRAPPER_ELEMENT, false);
element.setType(type);
XmlSchemaAny anyEl = new XmlSchemaAny();
anyEl.setMinOccurs(0);
XmlSchemaSequence seq = new XmlSchemaSequence();
seq.getItems().add(anyEl);
type.setParticle(seq);
}
代码示例来源:origin: raml-org/raml-java-parser
schemaAny.setMinOccurs(0);
schemaAny.setMaxOccurs(UNBOUNDED);
schemaAny.setProcessContent(XmlSchemaContentProcessing.SKIP);
代码示例来源:origin: org.raml/raml-parser-2
schemaAny.setMinOccurs(0);
schemaAny.setMaxOccurs(UNBOUNDED);
schemaAny.setProcessContent(XmlSchemaContentProcessing.SKIP);
代码示例来源:origin: apache/cxf
any.setMinOccurs(0);
any.setMaxOccurs(Long.MAX_VALUE);
sequence.getItems().add(any);
代码示例来源:origin: org.apache.cxf/cxf-rt-databinding-aegis
any.setMinOccurs(0);
any.setMaxOccurs(Long.MAX_VALUE);
sequence.getItems().add(any);
内容来源于网络,如有侵权,请联系作者删除!