Class AbstractParser

    • Constructor Detail

      • AbstractParser

        public AbstractParser()
    • Method Detail

      • rawElementText

        public String rawElementText​(XMLStreamReader reader)
                              throws XMLStreamException
        Reads and trims the element text and returns it or null
        Parameters:
        reader - source for the element text
        Returns:
        the string representing the trimmed element text or null if there is none or it is an empty string
        Throws:
        XMLStreamException
      • rawAttributeText

        public String rawAttributeText​(XMLStreamReader reader,
                                       String attributeName)
        Reads and trims the text for the given attribute and returns it or null
        Parameters:
        reader - source for the attribute text
        attributeName - the name of the attribute
        Returns:
        the string representing trimmed attribute text or null if there is none
      • rawAttributeText

        public String rawAttributeText​(XMLStreamReader reader,
                                       String attributeName,
                                       String defaultValue)
        Reads and trims the text for the given attribute and returns it or defaultValue if there is no value for the attribute
        Parameters:
        reader - source for the attribute text
        attributeName - the name of the attribute
        defaultValue - value to return if there is no value for the attribute
        Returns:
        the string representing raw attribute text or defaultValue if there is none
      • parseModuleExtension

        protected void parseModuleExtension​(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                            String enclosingTag,
                                            org.jboss.dmr.ModelNode operation,
                                            org.jboss.as.controller.SimpleAttributeDefinition extensionClassName,
                                            org.jboss.as.controller.SimpleAttributeDefinition extensionModuleName,
                                            org.jboss.as.controller.PropertiesAttributeDefinition extensionProperties)
                                     throws XMLStreamException,
                                            ParserException,
                                            org.jboss.jca.common.api.validator.ValidateException
        Throws:
        XMLStreamException
        ParserException
        org.jboss.jca.common.api.validator.ValidateException
      • parseExtension

        protected void parseExtension​(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                      String enclosingTag,
                                      org.jboss.dmr.ModelNode operation,
                                      org.jboss.as.controller.SimpleAttributeDefinition extensionClassName,
                                      org.jboss.as.controller.PropertiesAttributeDefinition extensionProperties)
                               throws XMLStreamException,
                                      ParserException,
                                      org.jboss.jca.common.api.validator.ValidateException
        Throws:
        XMLStreamException
        ParserException
        org.jboss.jca.common.api.validator.ValidateException