Codota Logo
XmlSchemaComplexType.setParticle
Code IndexAdd Codota to your IDE (free)

How to use
setParticle
method
in
org.apache.ws.commons.schema.XmlSchemaComplexType

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaComplexType.setParticle (Showing top 20 results out of 315)

  • Common ways to obtain XmlSchemaComplexType
private void myMethod () {
XmlSchemaComplexType x =
  • Codota IconXmlSchema xmlSchema;new XmlSchemaComplexType(xmlSchema, false)
  • Codota IconXmlSchemaElement element;(XmlSchemaComplexType) element.getSchemaType()
  • Codota IconXmlSchema schema;new XmlSchemaComplexType(schema)
  • Smart code suggestions by Codota
}
origin: apache/cxf

private XmlSchemaElement generateWrapper(QName el, XmlSchemaSequence wrappingSequence) {
  XmlSchemaComplexType schemaComplexType = new XmlSchemaComplexType(schema, false);
  schemaComplexType.setParticle(wrappingSequence);
  XmlSchemaElement wrappingSchemaElement = new XmlSchemaElement(schema, true);
  wrappingSchemaElement.setName(el.getLocalPart());
  wrappingSchemaElement.setSchemaType(schemaComplexType);
  return wrappingSchemaElement;
}
origin: org.apache.axis2/axis2-kernel

private void generateComplexTypeforException() {
  XmlSchemaSequence sequence = new XmlSchemaSequence();
  XmlSchema xmlSchema = getXmlSchema(schemaTargetNameSpace);
  QName elementName = new QName(schemaTargetNameSpace, "Exception", schema_namespace_prefix);
  XmlSchemaComplexType complexType = new XmlSchemaComplexType(xmlSchema, false);
  complexType.setName("Exception");
  xmlSchema.getItems().add(complexType);
  xmlSchema.getSchemaTypes().put(elementName, complexType);
  typeTable.addComplexSchema(Exception.class.getName(), elementName);
  QName schemaTypeName = new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "string");
  addContentToMethodSchemaType(sequence, schemaTypeName, "Message", false);
  complexType.setParticle(sequence);
}
origin: apache/axis2-java

private void generateComplexTypeforException() {
  XmlSchemaSequence sequence = new XmlSchemaSequence();
  XmlSchema xmlSchema = getXmlSchema(schemaTargetNameSpace);
  QName elementName = new QName(schemaTargetNameSpace, "Exception", schema_namespace_prefix);
  XmlSchemaComplexType complexType = new XmlSchemaComplexType(xmlSchema, false);
  complexType.setName("Exception");
  xmlSchema.getItems().add(complexType);
  xmlSchema.getSchemaTypes().put(elementName, complexType);
  typeTable.addComplexSchema(Exception.class.getName(), elementName);
  QName schemaTypeName = new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD, "string");
  addContentToMethodSchemaType(sequence, schemaTypeName, "Message", false);
  complexType.setParticle(sequence);
}
origin: apache/cxf

private void buildGenericSeq(XmlSchema schema, XmlSchemaComplexType generics, Class<?> genericsClass) {
  XmlSchemaSequence genericsSeq = new XmlSchemaSequence();
  generics.setParticle(genericsSeq);
  XmlAccessType accessType = Utils.getXmlAccessType(genericsClass);
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: apache/cxf

private XmlSchemaComplexType duplicateXmlSchemaComplexType(Scope newScope) {
  XmlSchemaComplexType oldSchemaType = (XmlSchemaComplexType) getSchemaType();
  XmlSchemaComplexType newSchemaType = new XmlSchemaComplexType(schema, true);
  newSchemaType.setName(newScope.toString());
  newSchemaType.setParticle(oldSchemaType.getParticle());
  return newSchemaType;
}
origin: org.apache.axis2/axis2-kernel

xmlSchemaComplexType = new XmlSchemaComplexType(xmlSchema, false);
XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
xmlSchemaComplexType.setParticle(xmlSchemaSequence);
xmlSchemaComplexType.setName(complexTypeName);
origin: apache/cxf

@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);
}
origin: org.apache.cxf/cxf-rt-databinding-aegis

@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);
}
origin: org.apache.axis2/axis2-kernel

XmlSchemaAny any = new XmlSchemaAny();
entrySequence.getItems().add(any);
entryType.setParticle(entrySequence);
entryType.setName(entryName.getLocalPart());
xmlSchema.getItems().add(entryType);
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: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

} else {
  sequence = new XmlSchemaSequence();
  complexType.setParticle(sequence);
origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

} else {
  sequence = new XmlSchemaAll();
  complexType.setParticle(sequence);
origin: apache/cxf

@Override
public void writeSchema(XmlSchema root) {
  if (isFlat()) {
    return; // there is no extra level of type.
  }
  if (hasDefinedArray(root)) {
    return;
  }
  XmlSchemaComplexType complex = new XmlSchemaComplexType(root, true);
  complex.setName(getSchemaType().getLocalPart());
  XmlSchemaSequence seq = new XmlSchemaSequence();
  complex.setParticle(seq);
  AegisType componentType = getComponentType();
  XmlSchemaElement element = new XmlSchemaElement(root, false);
  element.setName(componentType.getSchemaType().getLocalPart());
  element.setSchemaTypeName(componentType.getSchemaType());
  seq.getItems().add(element);
  if (componentType.isNillable()) {
    element.setNillable(true);
  }
  element.setMinOccurs(getMinOccurs());
  element.setMaxOccurs(getMaxOccurs());
}
origin: org.apache.cxf/cxf-rt-databinding-aegis

@Override
public void writeSchema(XmlSchema root) {
  if (isFlat()) {
    return; // there is no extra level of type.
  }
  if (hasDefinedArray(root)) {
    return;
  }
  XmlSchemaComplexType complex = new XmlSchemaComplexType(root, true);
  complex.setName(getSchemaType().getLocalPart());
  XmlSchemaSequence seq = new XmlSchemaSequence();
  complex.setParticle(seq);
  AegisType componentType = getComponentType();
  XmlSchemaElement element = new XmlSchemaElement(root, false);
  element.setName(componentType.getSchemaType().getLocalPart());
  element.setSchemaTypeName(componentType.getSchemaType());
  seq.getItems().add(element);
  if (componentType.isNillable()) {
    element.setNillable(true);
  }
  element.setMinOccurs(getMinOccurs());
  element.setMaxOccurs(getMaxOccurs());
}
origin: apache/cxf

private XmlSchemaComplexType generateSchemaArray(Scope scopedName, Long size,
                         XmlSchemaType type, Scope fQName) {
  XmlSchemaComplexType complexType = new XmlSchemaComplexType(schema, true);
  complexType.setName(mapper.mapToQName(scopedName));
  XmlSchemaSequence sequence = new XmlSchemaSequence();
  XmlSchemaElement element = new XmlSchemaElement(schema, false);
  element.setMinOccurs(size);
  element.setMaxOccurs(size);
  element.setName(ELEMENT_NAME);
  if (type != null) {
    element.setSchemaTypeName(type.getQName());
    if (type.getQName().equals(ReferenceConstants.WSADDRESSING_TYPE)) {
      element.setNillable(true);
    }
  } else {
    ArrayDeferredAction arrayAction =
      new ArrayDeferredAction(element);
    wsdlVisitor.getDeferredActions().add(fQName, arrayAction);
  }
  sequence.getItems().add(element);
  complexType.setParticle(sequence);
  return complexType;
}
origin: org.raml/raml-parser-2

value.setParticle(xmlSchemaSequence);
xmlSchemaSequence.getItems().add(transform);
visit = value;
origin: apache/cxf

private XmlSchemaType generateSchemaType(XmlSchemaType stype, Scope scopedName,
                     long bound, Scope fullyQualifiedName) {
  XmlSchemaComplexType ct = new XmlSchemaComplexType(schema, true);
  ct.setName(mapper.mapToQName(scopedName));
  XmlSchemaSequence sequence = new XmlSchemaSequence();
  XmlSchemaElement el = new XmlSchemaElement(schema, false);
  el.setName(ELEMENT_NAME);
  el.setMinOccurs(0);
  if (bound != -1) {
    el.setMaxOccurs(bound);
  } else {
    el.setMaxOccurs(Long.MAX_VALUE);
  }
  if (stype != null) {
    el.setSchemaTypeName(stype.getQName());
    if (stype.getQName().equals(ReferenceConstants.WSADDRESSING_TYPE)) {
      el.setNillable(true);
    }
  } else {
    SequenceDeferredAction elementAction =
      new SequenceDeferredAction(el);
    wsdlVisitor.getDeferredActions().add(fullyQualifiedName, elementAction);
  }
  sequence.getItems().add(el);
  ct.setParticle(sequence);
  return ct;
}
origin: apache/cxf

public void visitDeclaredStruct(AST identifierNode) {
  Scope structScope = new Scope(getScope(), identifierNode);
  // xmlschema:struct
  XmlSchemaComplexType complexType = new XmlSchemaComplexType(schema, true);
  complexType.setName(mapper.mapToQName(structScope));
  XmlSchemaSequence sequence = new XmlSchemaSequence();
  complexType.setParticle(sequence);
  // corba:struct
  Struct struct = new Struct();
  struct.setQName(new QName(typeMap.getTargetNamespace(), structScope.toString()));
  struct.setType(complexType.getQName());
  struct.setRepositoryID(structScope.toIDLRepositoryID());
  boolean recursiveAdd = addRecursiveScopedName(identifierNode);
  // struct members
  visitStructMembers(identifierNode, struct, sequence, structScope);
  if (recursiveAdd) {
    removeRecursiveScopedName(identifierNode);
  }
  // add corbaType
  typeMap.getStructOrExceptionOrUnion().add(struct);
  // REVISIT: are there assignment needed?
  setSchemaType(complexType);
  setCorbaType(struct);
  // Need to check if the struct was forward declared
  processForwardStructActions(structScope);
  // Once we've finished declaring the struct, we should make sure it has been removed from
  // the list of scopedNames so that we inidicate that is no longer simply forward declared.
  scopedNames.remove(structScope);
}
org.apache.ws.commons.schemaXmlSchemaComplexTypesetParticle

Popular methods of XmlSchemaComplexType

  • getParticle
  • getAttributes
  • getContentModel
  • <init>
  • setName
  • getQName
  • getAnyAttribute
  • getName
  • setAbstract
  • getBaseSchemaTypeName
    Return the QName of the base schema type, if any, as defined in the content model.
  • isAbstract
  • setAnyAttribute
  • isAbstract,
  • setAnyAttribute,
  • setContentModel,
  • setAnnotation,
  • setBlock,
  • setFinal,
  • setMixed,
  • addMetaInfo,
  • getLineNumber

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JList (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now