Class XsdAbstractElement

    • Method Detail

      • getAttributesMap

        public java.util.Map<java.lang.String,​java.lang.String> getAttributesMap()
      • validateSchemaRules

        public void validateSchemaRules()
        Runs verifications on each concrete element to ensure that the XSD schema rules are verified.
      • accept

        public void accept​(XsdAbstractElementVisitor xsdAbstractElementVisitor)
        Base method for all accept methods. It serves as a way to guarantee that every accept call assigns the parent field.
        Parameters:
        xsdAbstractElementVisitor - The visitor that is visiting the current instance.
      • getElements

        public java.util.List<ReferenceBase> getElements()
      • clone

        public XsdAbstractElement 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.
        Parameters:
        placeHolderAttributes - The additional attributes to add to the clone.
        Returns:
        A copy of the object from which is called upon.
      • clone

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

        public XsdSchema getXsdSchema()
      • xsdParseSkeleton

        public static ReferenceBase xsdParseSkeleton​(org.w3c.dom.Node node,
                                                     XsdAbstractElement element)
        The base code for parsing any XsdAbstractElement. All the concrete implementations of this class should call this method in order to parse its children.
        Parameters:
        node - The node from where the element will be parsed.
        element - The concrete element that will be populated and returned.
        Returns:
        A wrapper object that contains the parsed XSD object.
      • convertNodeMap

        protected static java.util.Map<java.lang.String,​java.lang.String> convertNodeMap​(org.w3c.dom.NamedNodeMap nodeMap)
        Converts a NamedNodeMap to a Map object. This is meant to simplify the manipulation of the information.
        Parameters:
        nodeMap - The NamedNodeMap to convert to a Map object.
        Returns:
        The Map object that was generated by the conversion.
      • compareReference

        static boolean compareReference​(NamedConcreteElement element,
                                        java.lang.String unsolvedRef)
      • setParentAvailable

        public void setParentAvailable​(boolean parentAvailable)