Class XsdElement

    • Field Detail

      • substitutionGroup

        private ReferenceBase substitutionGroup
        Specifies the name of an element that can be substituted with this element. Only should be present if this XsdElement is a top level element, i.e. his parent is a XsdSchema element.
      • defaultObj

        private java.lang.String defaultObj
        Specifies a default value for the element. It's only available if the type contents are text only type defined by a simpleType.
      • fixed

        private java.lang.String fixed
        Specifies a fixed value for the element. It's only available if the type contents are text only type defined by a simpleType.
      • form

        private FormEnum form
        Specifies if the current XsdElement attribute is "qualified" or "unqualified".
      • nillable

        private boolean nillable
        Specifies if the this XsdElement support a null value.
      • abstractObj

        private boolean abstractObj
        Specifies whether the element can be used in an instance document.
      • block

        private BlockEnum block
        Prevents an element with a specified type of derivation from being used in place of this XsdElement element. Possible values are: extension - prevents elements derived by extension; restriction - prevents elements derived by restriction; substitution - prevents elements derived by substitution; #all - all of the above.
      • finalObj

        private FinalEnum finalObj
        Prevents other elements to derive depending on its value. This attribute cannot be present unless this XsdElement is a top level element, i.e. his parent is a XsdSchema element. extension - prevents elements derived by extension; restriction - prevents elements derived by restriction; #all - all of the above.
      • 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.
      • xsdElementIsXsdSchema

        private static java.lang.String xsdElementIsXsdSchema
    • 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
      • rule7

        private void rule7()
        Asserts if the current object has a form attribute while being a direct child of the top level XsdSchema element, which isn't allowed, throwing an exception in that case.
      • rule6

        private void rule6()
      • rule5

        private void rule5()
      • rule4

        private void rule4()
        Asserts if the current object isn't a direct child of the top level XsdSchema and has a value for the substitutionGroup, which isn't allowed, throwing an exception in that case.
      • rule3

        private void rule3()
        Asserts if the current object has a ref attribute while being a direct child of the top level XsdSchema element, which isn't allowed, throwing an exception in that case.
      • rule2

        private void rule2()
        Asserts if the current object is a direct child of the top level XsdSchema element and doesn't have a name, 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 XsdElement 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.
      • getXsdComplexTypeFromType

        private XsdComplexType getXsdComplexTypeFromType()
      • getXsdSimpleTypeFromType

        private XsdSimpleType getXsdSimpleTypeFromType()
      • getTypeAsSimpleType

        public XsdSimpleType getTypeAsSimpleType()
      • getFinal

        public java.lang.String getFinal()
      • isNillable

        public boolean isNillable()
      • getMinOccurs

        public java.lang.Integer getMinOccurs()
      • getMaxOccurs

        public java.lang.String getMaxOccurs()
      • isAbstractObj

        public boolean isAbstractObj()
      • setComplexType

        public void setComplexType​(ReferenceBase complexType)
      • setSimpleType

        public void setSimpleType​(ReferenceBase simpleType)
      • getBlock

        public java.lang.String getBlock()
      • getForm

        public java.lang.String getForm()
      • getType

        public java.lang.String getType()
      • getSubstitutionGroup

        public ReferenceBase getSubstitutionGroup()
      • getXsdSubstitutionGroup

        public XsdElement getXsdSubstitutionGroup()