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


Java XmlSchemaSequence类代码示例

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


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

示例1: walkGroupRef

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
protected void walkGroupRef(XmlSchema xmlSchema, XmlSchemaGroupRef obj) {
	walkAnnotated(xmlSchema, obj);
	QName refName = obj.getRefName();
	if ((refName != null) && deep) {
		walkByGroupRef(xmlSchema, refName);
	}
	
	XmlSchemaGroupBase xmlSchemaGroupBase = obj.getParticle();
	if (xmlSchemaGroupBase != null) {
           if (xmlSchemaGroupBase instanceof XmlSchemaChoice) {
               walkChoice(xmlSchema, (XmlSchemaChoice)xmlSchemaGroupBase);
           } else if (xmlSchemaGroupBase instanceof XmlSchemaSequence) {
               walkSequence(xmlSchema, (XmlSchemaSequence)xmlSchemaGroupBase);
           } else if (xmlSchemaGroupBase instanceof XmlSchemaAll) {
               walkAll(xmlSchema, (XmlSchemaAll)xmlSchemaGroupBase);
           }
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:19,代码来源:XmlSchemaWalker.java

示例2: walkChoice

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
protected void walkChoice(XmlSchema xmlSchema, XmlSchemaChoice obj) {
	walkAnnotated(xmlSchema, obj);
       XmlSchemaObjectCollection children = obj.getItems();
       for (int i = 0; i < children.getCount(); i++) {
           XmlSchemaObject child = children.getItem(i);
           if (child instanceof XmlSchemaElement) {
           	walkElement(xmlSchema, (XmlSchemaElement)child);
           } else if (child instanceof XmlSchemaGroupRef) {
           	walkGroupRef(xmlSchema, (XmlSchemaGroupRef)child);
           } else if (child instanceof XmlSchemaChoice) {
           	walkChoice(xmlSchema, (XmlSchemaChoice)child);
           } else if (child instanceof XmlSchemaSequence) {
           	walkSequence(xmlSchema, (XmlSchemaSequence)child);
           } else if (child instanceof XmlSchemaAny) {
           	walkAny(xmlSchema, (XmlSchemaAny)child);
           }
       }
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:19,代码来源:XmlSchemaWalker.java

示例3: walkSequence

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
protected void walkSequence(XmlSchema xmlSchema, XmlSchemaSequence obj) {
	walkAnnotated(xmlSchema, obj);
       XmlSchemaObjectCollection children = obj.getItems();
       for (int i = 0; i < children.getCount(); i++) {
           XmlSchemaObject child = children.getItem(i);
           if (child instanceof XmlSchemaElement) {
           	walkElement(xmlSchema, (XmlSchemaElement)child);
           } else if (child instanceof XmlSchemaGroupRef) {
           	walkGroupRef(xmlSchema, (XmlSchemaGroupRef)child);
           } else if (child instanceof XmlSchemaChoice) {
           	walkChoice(xmlSchema, (XmlSchemaChoice)child);
           } else if (child instanceof XmlSchemaSequence) {
           	walkSequence(xmlSchema, (XmlSchemaSequence)child);
           } else if (child instanceof XmlSchemaAny) {
           	walkAny(xmlSchema, (XmlSchemaAny)child);
           }
       }
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:19,代码来源:XmlSchemaWalker.java

示例4: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
@Override
public XmlSchemaParticle getXmlSchemaObject(XmlSchemaCollection collection, XmlSchema schema) {
	List<RequestableVariable> variables = getParentSequence().getAllVariables();
	
	XmlSchemaSequence sequence = variables.size() > 0 ? XmlSchemaUtils.makeDynamic(this, new XmlSchemaSequence()) : null;
	
	for (RequestableVariable variable : variables) {
		XmlSchemaElement element = XmlSchemaUtils.makeDynamic(this, new XmlSchemaElement());
		element.setName(variable.getName());
		element.setSchemaTypeName(variable.getTypeAffectation());
		element.setMinOccurs(0);
		if (variable.isMultiValued()) {
			element.setMaxOccurs(Long.MAX_VALUE);
		}
		sequence.getItems().add(element);
	}
	
	if (sequence != null) {
		return getXmlSchemaParticle(collection, schema, sequence);
	} else {
		return (XmlSchemaParticle) super.getXmlSchemaObject(collection, schema);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:24,代码来源:InputVariablesStep.java

示例5: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的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

示例6: getXmlSchemaObject

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的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

示例7: addSchemaResponseElement

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的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

示例8: addSchemaResponseType

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的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

示例9: writeSchema

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的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

示例10: parseParticleForIdentityType

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
/**
 * Recursively parse through an XmlSchemaPatricle to the elements
 * collecting all DidRefSources
 */
private XmlSchemaElement parseParticleForIdentityType(XmlSchemaParticle particle) {
    XmlSchemaElement identityType = null;
    if (particle != null) {
        if (particle instanceof XmlSchemaElement) {
            XmlSchemaElement element = (XmlSchemaElement) particle;
            String elementName = element.getSchemaTypeName().getLocalPart();
            if (elementName.contains(IDENTITY_TYPE)) {
                identityType = element;
            }
        } else if (particle instanceof XmlSchemaSequence) {
            XmlSchemaSequence schemaSequence = (XmlSchemaSequence) particle;
            for (int i = 0; i < schemaSequence.getItems().getCount(); i++) {
                XmlSchemaObject item = schemaSequence.getItems().getItem(i);
                if (item instanceof XmlSchemaParticle) {
                    identityType = parseParticleForIdentityType((XmlSchemaParticle) item);
                }
            }
        }
    }
    return identityType;
}
 
开发者ID:inbloom,项目名称:secure-data-service,代码行数:26,代码来源:DidSchemaParser.java

示例11: getTypesListFromXsd

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
private ArrayList<String> getTypesListFromXsd() {
	ArrayList<String> types = new ArrayList<String>();
	try {
		String tns = transaction.getProject().getTargetNamespace();
		String projectName = transaction.getProject().getName();
		XmlSchema schema = Engine.theApp.schemaManager.getSchemaForProject(projectName);
		QName responseTypeQName = new QName(tns, transaction.getXsdResponseTypeName());
		XmlSchemaComplexType xmlSchemaType = (XmlSchemaComplexType) schema.getTypeByName(responseTypeQName);
		XmlSchemaParticle xmlSchemaParticle = xmlSchemaType.getParticle();
		if (xmlSchemaParticle != null && xmlSchemaParticle instanceof XmlSchemaSequence) {
			XmlSchemaObjectCollection xmlSchemaObjectCollection = ((XmlSchemaSequence)xmlSchemaParticle).getItems();
			for (int i=0;i<xmlSchemaObjectCollection.getCount();i++) {
				XmlSchemaObject xso = xmlSchemaObjectCollection.getItem(i);
				if (xso instanceof XmlSchemaElement) {
					XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)xso;
					String elName = xmlSchemaElement.getName();
					QName elType = xmlSchemaElement.getSchemaTypeName();
					String value = "<xsd:element name=\""+elName+"\" type=\""+elType.getPrefix()+":"+elType.getLocalPart()+"\"/>";
					types.add(value);
				}
			}
		}
	}
	catch (Exception e) {
	}
	return types;
}
 
开发者ID:convertigo,项目名称:convertigo-eclipse,代码行数:28,代码来源:TransactionXSDTypesDialogComposite.java

示例12: walkComplexType

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
protected void walkComplexType(XmlSchema xmlSchema, XmlSchemaComplexType obj) {
	walkAnnotated(xmlSchema, obj);
	XmlSchemaObjectCollection attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute) attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef) attribute);
           }
       }
	XmlSchemaContentModel xmlSchemaContentModel  = obj.getContentModel();
	XmlSchemaParticle xmlSchemaParticle = obj.getParticle();
	if (xmlSchemaContentModel != null) {
        if (xmlSchemaContentModel instanceof XmlSchemaSimpleContent) {
        	walkSimpleContent(xmlSchema, (XmlSchemaSimpleContent)xmlSchemaContentModel);
        } else if (xmlSchemaContentModel instanceof XmlSchemaComplexContent) {
        	walkComplexContent(xmlSchema, (XmlSchemaComplexContent)xmlSchemaContentModel);
        }
	} else if (xmlSchemaParticle != null) {
        if (xmlSchemaParticle instanceof XmlSchemaSequence) {
        	walkSequence(xmlSchema, (XmlSchemaSequence)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaChoice) {
        	walkChoice(xmlSchema, (XmlSchemaChoice)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaAll) {
        	walkAll(xmlSchema, (XmlSchemaAll)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaGroupRef) {
        	walkGroupRef(xmlSchema, (XmlSchemaGroupRef)xmlSchemaParticle);
        }
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:32,代码来源:XmlSchemaWalker.java

示例13: walkComplexContentExtension

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
protected void walkComplexContentExtension(XmlSchema xmlSchema, XmlSchemaComplexContentExtension obj) {
	walkAnnotated(xmlSchema, obj);
	QName baseTypeName = obj.getBaseTypeName();
	if ((baseTypeName != null) && deep) {
		walkByTypeName(xmlSchema, baseTypeName);
	}
	
	XmlSchemaParticle xmlSchemaParticle = obj.getParticle();
	if (xmlSchemaParticle != null) {
        if (xmlSchemaParticle instanceof XmlSchemaSequence) {
        	walkSequence(xmlSchema, (XmlSchemaSequence)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaChoice) {
        	walkChoice(xmlSchema, (XmlSchemaChoice)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaAll) {
        	walkAll(xmlSchema, (XmlSchemaAll)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaGroupRef) {
        	walkGroupRef(xmlSchema, (XmlSchemaGroupRef)xmlSchemaParticle);
        }
	}
	
	XmlSchemaObjectCollection attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute)attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef)attribute);
           }
       }
	XmlSchemaAnyAttribute xmlSchemaAnyAttribute = obj.getAnyAttribute();
	if (xmlSchemaAnyAttribute != null) {
		walkAnyAttribute(xmlSchema, xmlSchemaAnyAttribute);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:35,代码来源:XmlSchemaWalker.java

示例14: walkComplexContentRestriction

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
protected void walkComplexContentRestriction(XmlSchema xmlSchema, XmlSchemaComplexContentRestriction obj) {
	walkAnnotated(xmlSchema, obj);
	QName baseTypeName = obj.getBaseTypeName();
	if ((baseTypeName != null) && deep) {
		walkByTypeName(xmlSchema, baseTypeName);
	}
	
	XmlSchemaParticle xmlSchemaParticle = obj.getParticle();
	if (xmlSchemaParticle != null) {
        if (xmlSchemaParticle instanceof XmlSchemaSequence) {
        	walkSequence(xmlSchema, (XmlSchemaSequence)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaChoice) {
        	walkChoice(xmlSchema, (XmlSchemaChoice)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaAll) {
        	walkAll(xmlSchema, (XmlSchemaAll)xmlSchemaParticle);
        } else if (xmlSchemaParticle instanceof XmlSchemaGroupRef) {
        	walkGroupRef(xmlSchema, (XmlSchemaGroupRef)xmlSchemaParticle);
        }
	}
	
	XmlSchemaObjectCollection attributes = obj.getAttributes();
       for (int i = 0; i < attributes.getCount(); i++) {
           XmlSchemaObject attribute = attributes.getItem(i);
           if (attribute instanceof XmlSchemaAttribute) {
           	walkAttribute(xmlSchema, (XmlSchemaAttribute)attribute);
           } else if (attribute instanceof XmlSchemaAttributeGroupRef) {
           	walkAttributeGroupRef(xmlSchema, (XmlSchemaAttributeGroupRef)attribute);
           }
       }
	XmlSchemaAnyAttribute xmlSchemaAnyAttribute = obj.getAnyAttribute();
	if (xmlSchemaAnyAttribute != null) {
		walkAnyAttribute(xmlSchema, xmlSchemaAnyAttribute);
	}
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:35,代码来源:XmlSchemaWalker.java

示例15: walkGroup

import org.apache.ws.commons.schema.XmlSchemaSequence; //导入依赖的package包/类
protected void walkGroup(XmlSchema xmlSchema, XmlSchemaGroup obj) {
	walkAnnotated(xmlSchema, obj);
	XmlSchemaGroupBase xmlSchemaGroupBase = obj.getParticle();
       if (xmlSchemaGroupBase instanceof XmlSchemaSequence) {
       	walkSequence(xmlSchema, (XmlSchemaSequence)xmlSchemaGroupBase);
       } else if (xmlSchemaGroupBase instanceof XmlSchemaChoice) {
       	walkChoice(xmlSchema, (XmlSchemaChoice)xmlSchemaGroupBase);
       } else if (xmlSchemaGroupBase instanceof XmlSchemaAll) {
       	walkAll(xmlSchema, (XmlSchemaAll)xmlSchemaGroupBase);
       }
}
 
开发者ID:convertigo,项目名称:convertigo-engine,代码行数:12,代码来源:XmlSchemaWalker.java


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