Tabnine Logo
XmlSchemaAll
Code IndexAdd Tabnine to your IDE (free)

How to use
XmlSchemaAll
in
org.apache.ws.commons.schema

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaAll (Showing top 19 results out of 315)

origin: apache/cxf

private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {
  for (XmlSchemaObjectBase seqMember : all.getItems()) {
    if (seqMember instanceof XmlSchemaElement) {
      addElementCrossImportsElement(schema, (XmlSchemaElement)seqMember);
    }
  }
}
origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema

private XmlSchemaAll handleAll(XmlSchema schema, Element allEl,
                Element schemaEl) {
  XmlSchemaAll all = new XmlSchemaAll();
   //handle min and max occurences
  all.minOccurs = getMinOccurs(allEl);
  all.maxOccurs = getMaxOccurs(allEl);
  for (Element el = XDOMUtil.getFirstChildElementNS(allEl, XmlSchema.SCHEMA_NS);
     el != null; el = XDOMUtil.getNextSiblingElementNS(el, XmlSchema.SCHEMA_NS)) {
    if (el.getLocalName().equals("element")) {
      XmlSchemaElement element = handleElement(schema, el, schemaEl, false);
      all.items.add(element);
    } else if (el.getLocalName().equals("annotation")) {
      XmlSchemaAnnotation annotation = handleAnnotation(el);
      all.setAnnotation(annotation);
    }
  }
  return all;
}
origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

  sequence = (XmlSchemaAll) particle;
} else {
  sequence = new XmlSchemaAll();
  complexType.setParticle(sequence);
sequence.setMinOccurs(optional ? 0 : 1);
sequence.getItems().add(tmpElement);
origin: org.apache.cxf/cxf-api

private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {
  for (XmlSchemaObjectBase seqMember : all.getItems()) {
    if (seqMember instanceof XmlSchemaElement) {
      addElementCrossImportsElement(schema, (XmlSchemaElement)seqMember);
    }
  }
}
origin: org.apache.ws.commons.schema/XmlSchema

private XmlSchemaAll handleAll(XmlSchema schema, Element allEl,
    Element schemaEl) {
  XmlSchemaAll all = new XmlSchemaAll();
  //handle min and max occurences
  all.minOccurs = getMinOccurs(allEl);
  all.maxOccurs = getMaxOccurs(allEl);
  for (Element el = XDOMUtil.getFirstChildElementNS(allEl,
      XmlSchema.SCHEMA_NS); el != null; el = XDOMUtil
      .getNextSiblingElementNS(el, XmlSchema.SCHEMA_NS)) {
    if (el.getLocalName().equals("element")) {
      XmlSchemaElement element = handleElement(schema, el, schemaEl,
          false);
      all.items.add(element);
    } else if (el.getLocalName().equals("annotation")) {
      XmlSchemaAnnotation annotation = handleAnnotation(el);
      all.setAnnotation(annotation);
    }
  }
  return all;
}
origin: org.apache.cxf/cxf-bundle-jaxrs

private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {
  for (XmlSchemaObjectBase seqMember : all.getItems()) {
    if (seqMember instanceof XmlSchemaElement) {
      addElementCrossImportsElement(schema, (XmlSchemaElement)seqMember);
    }
  }
}
origin: org.apache.ws.schema/XmlSchema

private XmlSchemaAll handleAll(XmlSchema schema, Element allEl,
    Element schemaEl) {
  XmlSchemaAll all = new XmlSchemaAll();
  //handle min and max occurences
  all.minOccurs = getMinOccurs(allEl);
  all.maxOccurs = getMaxOccurs(allEl);
  for (Element el = XDOMUtil.getFirstChildElementNS(allEl,
      XmlSchema.SCHEMA_NS); el != null; el = XDOMUtil
      .getNextSiblingElementNS(el, XmlSchema.SCHEMA_NS)) {
    if (el.getLocalName().equals("element")) {
      XmlSchemaElement element = handleElement(schema, el, schemaEl,
          false);
      all.items.add(element);
    } else if (el.getLocalName().equals("annotation")) {
      XmlSchemaAnnotation annotation = handleAnnotation(el);
      all.setAnnotation(annotation);
    }
  }
  return all;
}
origin: org.apache.cxf/cxf-core

private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {
  for (XmlSchemaObjectBase seqMember : all.getItems()) {
    if (seqMember instanceof XmlSchemaElement) {
      addElementCrossImportsElement(schema, (XmlSchemaElement)seqMember);
    }
  }
}
origin: org.apache.cxf/cxf-common-utilities

private void addCrossImports(XmlSchema schema, XmlSchemaAll all) {
  for (XmlSchemaObject seqMember : all.getItems()) {
    if (seqMember instanceof XmlSchemaElement) {
      addElementCrossImportsElement(schema, (XmlSchemaElement)seqMember);
    }
  }
}
origin: com.legsem.legstar/legstar-xsd2cob

  processCollectionElements(all.getItems(), level);
} else {
origin: com.legsem.legstar/legstar-jaxbgen

/**
 * A particle is usually all or sequence. It contains a collection of other
 * schema objects that need to be processed.
 * 
 * @param schema the XML Schema
 * @param jaxbNamespace the JAXB namespace
 * @param jaxbNamespacePrefix the JAXB namespace prefix
 * @param parentName the name of the parent schema object for logging
 * @param particle the particle schema object
 */
protected void processParticle(final XmlSchema schema,
    final String jaxbNamespace, final String jaxbNamespacePrefix,
    final QName parentName, final XmlSchemaParticle particle) {
  if (particle == null) {
    return;
  }
  if (particle instanceof XmlSchemaSequence) {
    XmlSchemaSequence sequence = (XmlSchemaSequence) particle;
    processCollectionElements(schema, jaxbNamespace,
        jaxbNamespacePrefix, sequence.getItems());
  } else if (particle instanceof XmlSchemaAll) {
    XmlSchemaAll all = (XmlSchemaAll) particle;
    processCollectionElements(schema, jaxbNamespace,
        jaxbNamespacePrefix, all.getItems());
  }
}
origin: com.legsem.legstar/legstar-base-generator

int fieldIndex = 0;
XmlSchemaAll all = (XmlSchemaAll) particle;
for (XmlSchemaAllMember member : all.getItems()) {
  addField(fieldIndex, member, fields, compositeTypes);
  fieldIndex++;
origin: com.legsem.legstar/legstar.avro.translator

private void visit(XmlSchema xmlSchema, XmlSchemaParticle particle,
    final int level, final ArrayNode avroFields) {
  if (particle.getMaxOccurs() > 1) {
    /* TODO find a way to handle occuring sequences and alls */
    log.warn("Schema object at line " + particle.getLineNumber()
        + " contains a multi-occurence particle that is ignored");
  }
  if (particle instanceof XmlSchemaSequence) {
    XmlSchemaSequence sequence = (XmlSchemaSequence) particle;
    for (XmlSchemaSequenceMember member : sequence.getItems()) {
      visit(xmlSchema, member, level, avroFields);
    }
  } else if (particle instanceof XmlSchemaAll) {
    XmlSchemaAll all = (XmlSchemaAll) particle;
    for (XmlSchemaAllMember member : all.getItems()) {
      visit(xmlSchema, member, level, avroFields);
    }
  } else {
    /* TODO process other particle types of interest */
    /* TODO find a way to handle xsd:attribute */
    log.warn("Schema object does not contain a sequence or all element at line "
        + particle.getLineNumber());
  }
}
origin: apache/axis2-java

for (XmlSchemaAllMember member : xmlSchemaAll.getItems()) {
  XmlSchemaElement innerElement = (XmlSchemaElement) member;
  QName qName = innerElement.getQName();
origin: apache/cxf

} else if (particle instanceof XmlSchemaAll) {
  XmlSchemaAll acontainer = (XmlSchemaAll)particle;
  iterL = acontainer.getItems().iterator();
} else {
  LOG.warning("Unknown particle type " + particle.getClass().getName());
origin: org.apache.axis2/axis2-kernel

for (XmlSchemaAllMember sequenceMember : sequence.getItems()) {
origin: apache/axis2-java

for (XmlSchemaAllMember sequenceMember : sequence.getItems()) {
origin: apache/axis2-java

  List<XmlSchemaAllMember> items = ((XmlSchemaAll) particle).getItems();
  processSchemaAllItems(parentElementQName, items, metainfHolder, false, parentSchema);
} else if (particle instanceof XmlSchemaChoice) {
origin: org.apache.axis2/axis2-adb-codegen

  List<XmlSchemaAllMember> items = ((XmlSchemaAll) particle).getItems();
  processSchemaAllItems(parentElementQName, items, metainfHolder, false, parentSchema);
} else if (particle instanceof XmlSchemaChoice) {
org.apache.ws.commons.schemaXmlSchemaAll

Javadoc

Permits the elements in the group to appear (or not appear) in any order in the containing element. Represents the World Wide Web Consortium (W3C) all element (compositor).

Most used methods

  • getItems
  • <init>
    Creates new XmlSchemaAll
  • setAnnotation
  • setMinOccurs

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • String (java.lang)
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now