Class WebDescriptor

    • Field Detail

      • __nonValidatingStaticParser

        public static XmlParser __nonValidatingStaticParser
      • _majorVersion

        protected int _majorVersion
      • _minorVersion

        protected int _minorVersion
      • _classNames

        protected java.util.ArrayList<java.lang.String> _classNames
      • _distributable

        protected boolean _distributable
      • _isOrdered

        protected boolean _isOrdered
      • _ordering

        protected java.util.List<java.lang.String> _ordering
    • Constructor Detail

      • WebDescriptor

        public WebDescriptor​(Resource xml)
    • Method Detail

      • isMetaDataComplete

        public static boolean isMetaDataComplete​(WebDescriptor d)
        Check if the descriptor is metadata-complete.
        Parameters:
        d - the descriptor (web.xml, web-fragment.xml, web-default.xml, web-override.xml) to check
        Returns:
        true iff metadata-complete=true is declared in the descriptor
      • getParser

        public static XmlParser getParser​(boolean validating)
        Get a parser for parsing web descriptor content.
        Parameters:
        validating - true if the parser should validate syntax, false otherwise
        Returns:
        an XmlParser for web descriptors
      • newParser

        public static XmlParser newParser​(boolean validating)
        Create a new parser for parsing web descriptors.
        Parameters:
        validating - if true, the parser will validate syntax
        Returns:
        an XmlParser
      • parse

        public void parse​(XmlParser parser)
                   throws java.lang.Exception
        Overrides:
        parse in class Descriptor
        Throws:
        java.lang.Exception
      • getMajorVersion

        public int getMajorVersion()
      • getMinorVersion

        public int getMinorVersion()
      • processVersion

        public void processVersion()
      • processOrdering

        public void processOrdering()
      • processDistributable

        public void processDistributable()
      • addClassName

        public void addClassName​(java.lang.String className)
      • getClassNames

        public java.util.ArrayList<java.lang.String> getClassNames()
      • isDistributable

        public boolean isDistributable()
      • isOrdered

        public boolean isOrdered()
      • getOrdering

        public java.util.List<java.lang.String> getOrdering()