Class AbstractParser

java.lang.Object
org.jboss.as.connector.util.AbstractParser
Direct Known Subclasses:
CommonIronJacamarParser, DsParser

public abstract class AbstractParser extends Object
An AbstractParser.
Author:
Stefano Maestri
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    rawAttributeText(XMLStreamReader reader, String attributeName)
    Reads and trims the text for the given attribute and returns it or null
    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
    Reads and trims the element text and returns it or null

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractParser

      public AbstractParser()
  • Method Details

    • 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