XmlSchemaParticle.getMinOccurs
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.ws.commons.schema.XmlSchemaParticle.getMinOccurs (Showing top 10 results out of 315)

  • Common ways to obtain XmlSchemaParticle
private void myMethod () {
XmlSchemaParticle x =
  • XmlSchemaComplexType complexType;complexType.getParticle()
  • XmlSchemaComplexContentExtension xmlSchemaComplexContentExtension;xmlSchemaComplexContentExtension.getParticle()
  • Smart code suggestions by Codota
}
origin: org.apache.cxf/cxf-core

public static boolean isParticleOptional(XmlSchemaParticle particle) {
  return particle.getMinOccurs() == 0 && particle.getMaxOccurs() == 1;
}
origin: org.apache.cxf/cxf-api

public static boolean isParticleOptional(XmlSchemaParticle particle) {
  return particle.getMinOccurs() == 0 && particle.getMaxOccurs() == 1;
}
origin: apache/cxf

public static boolean isParticleOptional(XmlSchemaParticle particle) {
  return particle.getMinOccurs() == 0 && particle.getMaxOccurs() == 1;
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public static boolean isParticleOptional(XmlSchemaParticle particle) {
  return particle.getMinOccurs() == 0 && particle.getMaxOccurs() == 1;
}
origin: org.apache.cxf/cxf-common-utilities

public static boolean isParticleOptional(XmlSchemaParticle particle) {
  return particle.getMinOccurs() == 0 && particle.getMaxOccurs() == 1;
}
origin: org.apache.axis2/axis2-adb-codegen

/**
 * Find whether a given particle is an array. The logic for deciding
 * whether a given particle is an array is depending on their minOccurs
 * and maxOccurs counts. If Maxoccurs is greater than one (1) then the
 * content is an array.
 * Also no higher level element will have the maxOccurs greater than one
 *
 * @param particle
 * @throws SchemaCompilationException
 */
private boolean isArray(XmlSchemaParticle particle) throws SchemaCompilationException {
  long minOccurs = particle.getMinOccurs();
  long maxOccurs = particle.getMaxOccurs();
  if (maxOccurs < minOccurs) {
    throw new SchemaCompilationException();
  } else {
    return (maxOccurs > 1);
  }
}
origin: apache/axis2-java

/**
 * Find whether a given particle is an array. The logic for deciding
 * whether a given particle is an array is depending on their minOccurs
 * and maxOccurs counts. If Maxoccurs is greater than one (1) then the
 * content is an array.
 * Also no higher level element will have the maxOccurs greater than one
 *
 * @param particle
 * @throws SchemaCompilationException
 */
private boolean isArray(XmlSchemaParticle particle) throws SchemaCompilationException {
  long minOccurs = particle.getMinOccurs();
  long maxOccurs = particle.getMaxOccurs();
  if (maxOccurs < minOccurs) {
    throw new SchemaCompilationException();
  } else {
    return (maxOccurs > 1);
  }
}
origin: org.apache.axis2/axis2-jibx

      qname + ": type to be unwrapped must be a sequence");
if (particle.getMinOccurs() != 1 || particle.getMaxOccurs() != 1) {
  throw new RuntimeException("Cannot unwrap element " +
      qname +
origin: apache/axis2-java

      qname + ": type to be unwrapped must be a sequence");
if (particle.getMinOccurs() != 1 || particle.getMaxOccurs() != 1) {
  throw new RuntimeException("Cannot unwrap element " +
      qname +
origin: apache/cxf

XmlSchemaParticle realParticle = sequenceParticle;
elementInfo.setMinOccurs(sequenceParticle.getMinOccurs());
elementInfo.setMaxOccurs(sequenceParticle.getMaxOccurs());
    if (sequenceParticle.getMinOccurs() == 0) {
      childParticle.setMinOccurs(0);
org.apache.ws.commons.schemaXmlSchemaParticlegetMinOccurs

Popular methods of XmlSchemaParticle

  • getMaxOccurs
  • toString
  • getLineNumber

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)