Tabnine Logo
MutableItemDefinition.setMinOccurs
Code IndexAdd Tabnine to your IDE (free)

How to use
setMinOccurs
method
in
com.evolveum.midpoint.prism.MutableItemDefinition

Best Java code snippets using com.evolveum.midpoint.prism.MutableItemDefinition.setMinOccurs (Showing top 2 results out of 315)

origin: Evolveum/midpoint

private void setMultiplicity(MutableItemDefinition itemDef, XSParticle particle, XSAnnotation annotation,
    boolean topLevel) {
  if (topLevel || particle == null) {
    itemDef.setMinOccurs(0);
    Element maxOccursAnnotation = SchemaProcessorUtil.getAnnotationElement(annotation, A_MAX_OCCURS);
    if (maxOccursAnnotation != null) {
      String maxOccursString = maxOccursAnnotation.getTextContent();
      int maxOccurs = XsdTypeMapper.multiplicityToInteger(maxOccursString);
      itemDef.setMaxOccurs(maxOccurs);
    } else {
      itemDef.setMaxOccurs(-1);
    }
  } else {
    // itemDef.setMinOccurs(particle.getMinOccurs());
    // itemDef.setMaxOccurs(particle.getMaxOccurs());
    itemDef.setMinOccurs(particle.getMinOccurs().intValue());
    itemDef.setMaxOccurs(particle.getMaxOccurs().intValue());
  }
}
origin: Evolveum/midpoint

if (limitationsType != null) {
  if (limitationsType.getMinOccurs() != null) {
    mutableDef.setMinOccurs(XsdTypeMapper.multiplicityToInteger(limitationsType.getMinOccurs()));
com.evolveum.midpoint.prismMutableItemDefinitionsetMinOccurs

Popular methods of MutableItemDefinition

  • setMaxOccurs
  • setProcessing
  • setDeprecated
  • setDisplayName
  • setDisplayOrder
  • setEmphasized
  • setExperimental
  • setName
  • setCanAdd
  • setCanModify
  • setCanRead
  • setDeprecatedSince
  • setCanRead,
  • setDeprecatedSince,
  • setElaborate,
  • setHelp,
  • setHeterogeneousListItem,
  • setOperational,
  • setPlannedRemoval,
  • setSubstitutionHead,
  • setValueEnumerationRef

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • From CI to AI: The AI layer in your organization
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