Code example for Attributes

Methods: getValue

0
   * @param attrs the attributes. 
   * @throws SAXException if there is a parsing error. 
   */ 
  protected void startParsing(final Attributes attrs) throws SAXException
  { 
    super.startParsing(attrs);
 
    final Color color = ColorConverter.getObject(attrs.getValue(getUri(), "color"));
    if ("true".equals(attrs.getValue(getUri(), "enabled")))
    { 
      final boolean startState = "true".equals(attrs.getValue(getUri(), "startState"));
      final int itemCount = ParserUtil.parseInt
          (attrs.getValue(getUri(), "switchItemCount"), "Failed to parse", getLocator());
 
      result = new RowBandingFunction();
      result.setVisibleBackground(color);
      result.setInitialState(startState);
      result.setNumberOfElements(itemCount);
    } 
  }