当前位置: 首页>>代码示例>>Java>>正文


Java XmlSchemaComplexType.setParticle方法代码示例

本文整理汇总了Java中org.apache.ws.commons.schema.XmlSchemaComplexType.setParticle方法的典型用法代码示例。如果您正苦于以下问题:Java XmlSchemaComplexType.setParticle方法的具体用法?Java XmlSchemaComplexType.setParticle怎么用?Java XmlSchemaComplexType.setParticle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.ws.commons.schema.XmlSchemaComplexType的用法示例。


在下文中一共展示了XmlSchemaComplexType.setParticle方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
	
	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	SchemaMeta.setContainerXmlSchemaGroupBase(element, sequence);
	
	XmlSchemaElement elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("filePath");
	elt.setMinOccurs(0);
	elt.setMaxOccurs(1);
	elt.setSchemaTypeName(Constants.XSD_STRING);
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:21,代码来源:WriteBase64Step.java

示例2: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
	element.setSchemaTypeName(null);

	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	
	int count = getTagsCount();
	
	for (int i = 0; i < count + 1; i++) {
		XmlSchemaElement elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
		elt.setName(getTag(i));
		elt.setMinOccurs(0);
		if (i == count) {
			elt.setMaxOccurs(Long.MAX_VALUE);
		}
		elt.setSchemaTypeName(getSimpleTypeAffectation());
		sequence.getItems().add(elt);
	}
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:27,代码来源:XMLSplitStep.java

示例3: addSchemaResponseElement

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
protected XmlSchemaElement addSchemaResponseElement(XmlSchema xmlSchema) {
	String nsURI = xmlSchema.getTargetNamespace();
	String prefix = xmlSchema.getNamespaceContext().getPrefix(nsURI);
	String localName = getXsdResponseElementName();
	
	XmlSchemaElement xmlSchemaElement = new XmlSchemaElement();
	xmlSchemaElement.setName(localName);
	xmlSchemaElement.setQName(new QName(nsURI, localName, prefix));
	
	XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(xmlSchema);
	XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
	XmlSchemaElement responseElement = new XmlSchemaElement();
	responseElement.setName("response");
	responseElement.setSchemaTypeName(new QName(nsURI, getXsdResponseTypeName(), prefix));
	xmlSchemaSequence.getItems().add(responseElement);
	xmlSchemaComplexType.setParticle(xmlSchemaSequence);
	xmlSchemaElement.setSchemaType(xmlSchemaComplexType);
	
	XmlSchemaUtils.add(xmlSchema, xmlSchemaElement);
	
	return xmlSchemaElement;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:23,代码来源:Transaction.java

示例4: addSchemaResponseType

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
protected XmlSchemaComplexType addSchemaResponseType(XmlSchema xmlSchema) {
	String nsURI = xmlSchema.getTargetNamespace();
	String prefix = xmlSchema.getNamespaceContext().getPrefix(nsURI);
	String localName = getXsdResponseElementName()+ "Type";
	
	XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(xmlSchema);
	xmlSchemaComplexType.setName(localName);
	XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
	XmlSchemaElement documentElement = new XmlSchemaElement();
	documentElement.setName("document");
	documentElement.setSchemaTypeName(new QName(nsURI, getXsdResponseTypeName(), prefix));
	xmlSchemaSequence.getItems().add(documentElement);
	xmlSchemaComplexType.setParticle(xmlSchemaSequence);
	
	XmlSchemaUtils.add(xmlSchema, xmlSchemaComplexType);
	
	return xmlSchemaComplexType;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:19,代码来源:Transaction.java

示例5: writeSchema

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public void writeSchema(XmlSchema root) {
    XmlSchemaComplexType complex = new XmlSchemaComplexType(root, true);
    complex.setName(getSchemaType().getLocalPart());
    XmlSchemaSequence sequence = new XmlSchemaSequence();
    complex.setParticle(sequence);

    AegisType kType = getKeyType();
    AegisType vType = getValueType();

    XmlSchemaElement element = new XmlSchemaElement(root, false);
    sequence.getItems().add(element);
    element.setName(getEntryName().getLocalPart());
    element.setMinOccurs(0);
    element.setMaxOccurs(Long.MAX_VALUE);

    XmlSchemaComplexType evType = new XmlSchemaComplexType(root, false);
    element.setType(evType);

    XmlSchemaSequence evSequence = new XmlSchemaSequence();
    evType.setParticle(evSequence);

    createElement(root, evSequence, getKeyName(), kType, false);
    createElement(root, evSequence, getValueName(), vType, true);
}
 
开发者ID:claudemamo,项目名称:jruby-cxf,代码行数:26,代码来源:MapType.java

示例6: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
	
	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	SchemaMeta.setContainerXmlSchemaGroupBase(element, sequence);
	
	XmlSchemaElement elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("name");
	elt.setMinOccurs(1);
	elt.setMaxOccurs(1);
	elt.setSchemaTypeName(Constants.XSD_STRING);
	
	elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("value");
	elt.setMinOccurs(1);
	elt.setMaxOccurs(1);
	elt.setSchemaTypeName(Constants.XSD_STRING);
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:28,代码来源:GetRequestHeaderStep.java

示例7: getXmlSchemaParticle

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
protected XmlSchemaParticle getXmlSchemaParticle(XmlSchemaCollection collection, XmlSchema schema, XmlSchemaGroupBase group) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	SchemaMeta.setContainerXmlSchemaGroupBase(element, group);
	element.setType(cType);
	cType.setParticle(group);
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:9,代码来源:InputVariablesStep.java

示例8: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
	
	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	SchemaMeta.setContainerXmlSchemaGroupBase(element, sequence);		
	
	XmlSchemaAttribute attr = XmlSchemaUtils.makeDynamic(this, new XmlSchemaAttribute());
	attr.setName("file-url");
	attr.setSchemaTypeName(Constants.XSD_STRING);
	cType.getAttributes().add(attr);
	
	attr = XmlSchemaUtils.makeDynamic(this, new XmlSchemaAttribute());
	attr.setName("absolute-path");
	attr.setSchemaTypeName(Constants.XSD_STRING);
	cType.getAttributes().add(attr);
	
	attr = XmlSchemaUtils.makeDynamic(this, new XmlSchemaAttribute());
	attr.setName("relative-path");
	attr.setSchemaTypeName(Constants.XSD_STRING);
	cType.getAttributes().add(attr);
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:29,代码来源:WriteFileStep.java

示例9: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);

	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	
	XmlSchemaElement elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("error");
	elt.setSchemaTypeName(Constants.XSD_STRING);		

	elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("output");
	elt.setSchemaTypeName(Constants.XSD_STRING);

	elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("exit");
	elt.setSchemaTypeName(Constants.XSD_INTEGER);
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:28,代码来源:ProcessExecStep.java

示例10: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
	
	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	SchemaMeta.setContainerXmlSchemaGroupBase(element, sequence);
	
	XmlSchemaElement elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("key");
	elt.setMinOccurs(0);
	elt.setMaxOccurs(1);
	elt.setSchemaTypeName(Constants.XSD_STRING);
	
	elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("expression");
	elt.setMinOccurs(0);
	elt.setMaxOccurs(1);
	elt.setSchemaTypeName(Constants.XSD_STRING);
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:28,代码来源:SessionGetStep.java

示例11: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	element.setName(getStepNodeName());
	
	if (!getXmlElementRefAffectation().isEmpty()) {
		XmlSchemaComplexType eType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
		element.setType(eType);
		XmlSchemaSequence eSequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
		eType.setParticle(eSequence);
		
		SchemaMeta.setContainerXmlSchemaGroupBase(element, eSequence);
		
		XmlSchemaElement el = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
		eSequence.getItems().add(el);
		el.setRefName(getElementRefAffectation());
		el.setMinOccurs(0);
		el.setMaxOccurs(1);
	}
	else {
		XmlQName xmlQName = getXmlComplexTypeAffectation();
		if (xmlQName.isEmpty()) {
			xmlQName = getXmlSimpleTypeAffectation();
			if (xmlQName.isEmpty()) {
				xmlQName = new XmlQName(Constants.XSD_STRING);
			}
		}
		element.setSchemaTypeName(xmlQName.getQName());			
	}
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:33,代码来源:SessionGetObjectStep.java

示例12: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
	
	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	SchemaMeta.setContainerXmlSchemaGroupBase(element, sequence);
	
	XmlSchemaElement elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("code");
	elt.setMinOccurs(1);
	elt.setMaxOccurs(1);
	elt.setSchemaTypeName(Constants.XSD_STRING);
	
	elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("text");
	elt.setMinOccurs(1);
	elt.setMaxOccurs(1);
	elt.setSchemaTypeName(Constants.XSD_STRING);
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:28,代码来源:SetResponseStatusStep.java

示例13: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
public XmlSchemaElement getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);

	XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	element.setType(cType);

	XmlSchemaSequence sequence = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence());
	cType.setParticle(sequence);
	
	XmlSchemaElement elt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
	sequence.getItems().add(elt);
	elt.setName("file");
	elt.setMinOccurs(0);
	elt.setMaxOccurs(Long.MAX_VALUE);
	
	cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
	elt.setType(cType);
	
	XmlSchemaSimpleContent sContent = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSimpleContent());
	cType.setContentModel(sContent);
	
	XmlSchemaSimpleContentExtension sContentExt = XmlSchemaUtils.makeDynamic(this, new XmlSchemaSimpleContentExtension());
	sContent.setContent(sContentExt);
	sContentExt.setBaseTypeName(Constants.XSD_STRING);
	
	XmlSchemaAttribute attr = XmlSchemaUtils.makeDynamic(this, new XmlSchemaAttribute());
	attr.setName("lastModified");
	attr.setSchemaTypeName(Constants.XSD_NONNEGATIVEINTEGER);
	sContentExt.getAttributes().add(attr);
	
	attr = XmlSchemaUtils.makeDynamic(this, new XmlSchemaAttribute());
	attr.setName("size");
	attr.setSchemaTypeName(Constants.XSD_NONNEGATIVEINTEGER);
	sContentExt.getAttributes().add(attr);
	
	return element;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:39,代码来源:ListDirStep.java

示例14: addSchemaRequestDataType

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
@Override
protected XmlSchemaComplexType addSchemaRequestDataType(XmlSchema xmlSchema) {
	XmlSchemaComplexType xmlSchemaComplexType = super.addSchemaRequestDataType(xmlSchema);
	int len = numberOfVariables();
	if (len > 0) {
		XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
		for (int i = 0; i < len; i++) {
			RequestableVariable variable = (RequestableVariable)getVariable(i);
			if (variable.isWsdl()) {
				XmlSchemaElement xmlSchemaElement = new XmlSchemaElement();
				xmlSchemaElement.setName(variable.getName());
				
				if (variable.isMultiValued()) {
					xmlSchemaElement.setMaxOccurs(Long.MAX_VALUE);
				}
				
				//String[] qn = variable.getSchemaType().split(":");
				//QName typeName = new QName(xmlSchema.getNamespaceContext().getNamespaceURI(qn[0]), qn[1], qn[0]);
				//xmlSchemaElement.setSchemaTypeName(typeName);
				xmlSchemaElement.setSchemaTypeName(variable.getTypeAffectation());
				
				addSchemaCommentAnnotation(xmlSchemaElement, variable.getComment(), variable.getDescription());
				
				xmlSchemaSequence.getItems().add(xmlSchemaElement);
			}
		}
		xmlSchemaComplexType.setParticle(xmlSchemaSequence);
	}
	return xmlSchemaComplexType;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:31,代码来源:TransactionWithVariables.java

示例15: getXmlSchemaParticle

import org.apache.ws.commons.schema.XmlSchemaComplexType; //导入方法依赖的package包/类
protected XmlSchemaParticle getXmlSchemaParticle(XmlSchemaCollection collection, XmlSchema schema, XmlSchemaGroupBase group) {
	XmlSchemaParticle particle = group;
	if (isOutput()) {
		XmlSchemaElement element = (XmlSchemaElement) super.getXmlSchemaObject(collection, schema);
		XmlSchemaComplexType cType = XmlSchemaUtils.makeDynamic(this, new XmlSchemaComplexType(schema));
		SchemaMeta.setContainerXmlSchemaGroupBase(element, group);
		element.setType(cType);
		cType.setParticle(group);
		particle = element;
	}
	return particle;
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:13,代码来源:StepWithExpressions.java


注:本文中的org.apache.ws.commons.schema.XmlSchemaComplexType.setParticle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。