Class Xsd

  • All Implemented Interfaces:
    Grammar

    public class Xsd
    extends Object
    implements Grammar
    Contains methods for getting information from a XSD.
    • Constructor Detail

      • Xsd

        public Xsd​(String xsdPath)
        Contructor.
        Parameters:
        xsdPath - path (URL) of the XSD to parse
    • Method Detail

      • getElementOrder

        public List<DescriptorTag> getElementOrder​(String tagName)
        Returns a List of DescriptorTag that describes the order that elements can appear in a certain element accordingly to the grammar.
        Specified by:
        getElementOrder in interface Grammar
        Parameters:
        tagName - the tag name to get the element order of.
        Returns:
        a List of DescriptorTag or null if tagName doesn't exist