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

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

Best Java code snippets using com.evolveum.midpoint.prism.MutableItemDefinition.setMaxOccurs (Showing top 7 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

  outputDefinition.toMutable().setMaxOccurs(-1);
} else {
  outputDefinition.toMutable().setMaxOccurs(1);
origin: Evolveum/midpoint

private <T> List<PrismPropertyValue<T>> evaluateExpression(ScriptExpressionEvaluatorType scriptType, QName typeName, boolean scalar,
    ExpressionVariables variables, String shortDesc, OperationResult opResult) throws ExpressionEvaluationException, ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException {
  MutableItemDefinition outputDefinition = PrismTestUtil.getPrismContext().definitionFactory().createPropertyDefinition(PROPERTY_NAME, typeName);
  if (!scalar) {
    outputDefinition.setMaxOccurs(-1);
  }
  return evaluateExpression(scriptType, outputDefinition, variables, shortDesc, opResult);
}
origin: Evolveum/midpoint

if (returnTypeDef == null) {
  returnTypeDef = (D) prismContext.definitionFactory().createPropertyDefinition(SchemaConstantsGenerated.C_VALUE, returnType);
  returnTypeDef.toMutable().setMaxOccurs(functionToExecute.getReturnMultiplicity() != null && functionToExecute.getReturnMultiplicity() == ExpressionReturnMultiplicityType.SINGLE ? 1 : -1);
origin: Evolveum/midpoint

resultDef.setMaxOccurs(-1);
origin: Evolveum/midpoint

itemDefinition.toMutable().setMaxOccurs(-1);
origin: Evolveum/midpoint

mutableDef.setMaxOccurs(XsdTypeMapper.multiplicityToInteger(limitationsType.getMaxOccurs()));
com.evolveum.midpoint.prismMutableItemDefinitionsetMaxOccurs

Popular methods of MutableItemDefinition

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

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Kernel (java.awt.image)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text 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