Class XsdComplexType

    • Field Detail

      • elementAbstract

        private boolean elementAbstract
        Specifies whether the complex type can be used in an instance document. True indicates that an element cannot use this complex type directly but must use a complex type derived from this complex type.
      • mixed

        private boolean mixed
        Specifies whether character data is allowed to appear between the child elements of this complexType element. This attribute is exclusive with simpleContent, only one can be present at any given time.
      • block

        private ComplexTypeBlockEnum block
        Prevents a complex type that has a specified type of derivation from being used in place of this complex type. Possible values are extension, restriction or #all.
      • elementFinal

        private FinalEnum elementFinal
        Prevents a specified type of derivation of this complex type element. Possible values are extension, restriction or #all.
    • 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 a simpleContent as children and contains a value for the mixed attribute, which isn't allowed throwing an exception in that case.
      • 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 XsdComplexType 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.
      • getFinal

        public java.lang.String getFinal()
      • getXsdAttributes

        public java.util.stream.Stream<XsdAttribute> getXsdAttributes()
      • getXsdAttributeGroup

        public java.util.stream.Stream<XsdAttributeGroup> getXsdAttributeGroup()
      • getAllXsdAttributeGroups

        public java.util.stream.Stream<XsdAttributeGroup> getAllXsdAttributeGroups()
      • getAllXsdAttributes

        public java.util.stream.Stream<XsdAttribute> getAllXsdAttributes()
      • isMixed

        public boolean isMixed()
      • isElementAbstract

        public boolean isElementAbstract()
      • setChildElement

        public void setChildElement​(ReferenceBase childElement)
      • setComplexContent

        public void setComplexContent​(XsdComplexContent complexContent)
      • setSimpleContent

        public void setSimpleContent​(XsdSimpleContent simpleContent)
      • getBlock

        public java.lang.String getBlock()
      • getChildAsGroup

        public XsdGroup getChildAsGroup()
        Returns:
        The childElement as a XsdGroup object or null if childElement isn't a XsdGroup instance.
      • 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.
      • childrenIsMultipleElement

        private boolean childrenIsMultipleElement()