Class StaxParser


  • public class StaxParser
    extends RepositoryParser
    Repository XML xml based on StaX
    • Field Detail

      • factory

        static javax.xml.stream.XMLInputFactory factory
    • Constructor Detail

      • StaxParser

        public StaxParser()
    • Method Detail

      • setFactory

        public static void setFactory​(javax.xml.stream.XMLInputFactory factory)
      • getFactory

        public static javax.xml.stream.XMLInputFactory getFactory()
      • setProperty

        protected static boolean setProperty​(javax.xml.stream.XMLInputFactory factory,
                                             java.lang.String name,
                                             boolean value)
      • parseRepository

        public RepositoryImpl parseRepository​(java.io.InputStream is,
                                              java.lang.String repositoryURI)
                                       throws java.lang.Exception
        Specified by:
        parseRepository in class RepositoryParser
        Throws:
        java.lang.Exception
      • parseRepository

        public RepositoryImpl parseRepository​(javax.xml.stream.XMLStreamReader reader)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • sanityCheckEndElement

        private void sanityCheckEndElement​(javax.xml.stream.XMLStreamReader reader,
                                           int event,
                                           java.lang.String element)
      • parseReferral

        private Referral parseReferral​(javax.xml.stream.XMLStreamReader reader)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseResource

        private ResourceImpl parseResource​(javax.xml.stream.XMLStreamReader reader)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseCategory

        private java.lang.String parseCategory​(javax.xml.stream.XMLStreamReader reader)
                                        throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • parseCapability

        private CapabilityImpl parseCapability​(javax.xml.stream.XMLStreamReader reader)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseProperty

        private PropertyImpl parseProperty​(javax.xml.stream.XMLStreamReader reader)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseRequire

        private RequirementImpl parseRequire​(javax.xml.stream.XMLStreamReader reader)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • ignoreTag

        private void ignoreTag​(javax.xml.stream.XMLStreamReader reader)
                        throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException