Class XsdChoice

    • Field Detail

      • minOccurs

        private java.lang.Integer minOccurs
        Specifies the minimum number of times this element can occur in the parent element. The value can be any number bigger or equal to 0. Default value is 1. This attribute cannot be used if the parent element is the XsdSchema element.
      • maxOccurs

        private java.lang.String maxOccurs
        Specifies the maximum number of times this element can occur in the parent element. The value can be any number bigger or equal to 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1. This attribute cannot be used if the parent element is the XsdSchema element.
    • Method Detail

      • accept

        public void accept​(XsdAbstractElementVisitor visitorParam)
        Description copied from class: XsdAbstractElement
        Base method for all accept methods. It serves as a way to guarantee that every accept call assigns the parent field.
        Overrides:
        accept in class XsdAbstractElement
        Parameters:
        visitorParam - The visitor that is visiting the current instance.
      • clone

        public XsdChoice clone​(@NotNull
                               java.util.Map<java.lang.String,​java.lang.String> placeHolderAttributes)
        Performs a copy of the current object for replacing purposes. The cloned objects are used to replace UnsolvedReference objects in the reference solving process.
        Overrides:
        clone in class XsdAbstractElement
        Parameters:
        placeHolderAttributes - The additional attributes to add to the clone.
        Returns:
        A copy of the object from which is called upon.
      • getMinOccurs

        public java.lang.Integer getMinOccurs()
      • getMaxOccurs

        public java.lang.String getMaxOccurs()
      • getChildrenChoices

        public java.util.stream.Stream<XsdChoice> getChildrenChoices()
        Returns:
        The children elements that are of the type XsdChoice.
      • getChildrenSequences

        public java.util.stream.Stream<XsdSequence> getChildrenSequences()
        Returns:
        The children elements that are of the type XsdSequence.
      • getChildrenGroups

        public java.util.stream.Stream<XsdGroup> getChildrenGroups()
        Returns:
        The children elements that are of the type XsdGroup.