Class XsdGroup

    • 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

      • validateSchemaRules

        public void validateSchemaRules()
        Runs verifications on each concrete element to ensure that the XSD schema rules are verified.
        Overrides:
        validateSchemaRules in class XsdNamedElements
      • rule2

        private void rule2()
        Asserts if the current object has the name attribute when not being a direct child of the XsdSchema element, which is not allowed, throwing an exception in that case.
      • rule3

        private void rule3()
        Asserts if the current has no value for its name attribute while being a direct child of the top level XsdSchema element, which is required. Throws an exception if no name is present.
      • 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 XsdNamedElements 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.
      • getChildAsAll

        public XsdAll getChildAsAll()
        Returns:
        The childElement as a XsdAll object or null if childElement isn't a XsdAll instance.
      • getChildAsChoice

        public XsdChoice getChildAsChoice()
        Returns:
        The childElement as a XsdChoice object or null if childElement isn't a XsdChoice instance.
      • getChildAsSequence

        public XsdSequence getChildAsSequence()
        Returns:
        The childElement as a XsdSequence object or null if childElement isn't a XsdSequence instance.
      • getMinOccurs

        public java.lang.Integer getMinOccurs()
      • getMaxOccurs

        public java.lang.String getMaxOccurs()