com.cc.framework.util.parser
Class HtmlParser.AttributesImpl

java.lang.Object
  extended bycom.cc.framework.util.parser.HtmlParser.AttributesImpl
All Implemented Interfaces:
HtmlAttributes
Enclosing class:
HtmlParser

private static class HtmlParser.AttributesImpl
extends java.lang.Object
implements HtmlAttributes

The attribute collection of a HTML tag


Field Summary
private  java.util.List attributes
          Attribute list List<Attribute>
 
Constructor Summary
HtmlParser.AttributesImpl()
          Constructor
 
Method Summary
 void addAttribute(HtmlParser.Attribute attribute)
          Adds a new attribute to the attribute collection
 java.lang.String getName(int index)
          Retrieves the attribute name for the attribute with the given index
 java.lang.String getValue(int index)
          Retrieves the attribute value for the attribute with the given index
 java.lang.String getWhitespace(int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

private java.util.List attributes
Attribute list List<Attribute>

Constructor Detail

HtmlParser.AttributesImpl

public HtmlParser.AttributesImpl()
Constructor

Method Detail

addAttribute

public void addAttribute(HtmlParser.Attribute attribute)
Adds a new attribute to the attribute collection

Parameters:
attribute - the new attribute to add

getName

public java.lang.String getName(int index)
Description copied from interface: HtmlAttributes
Retrieves the attribute name for the attribute with the given index

Specified by:
getName in interface HtmlAttributes
Parameters:
index - 0 based attribute index
Returns:
name
See Also:
HtmlAttributes.getName(int)

getValue

public java.lang.String getValue(int index)
Description copied from interface: HtmlAttributes
Retrieves the attribute value for the attribute with the given index

Specified by:
getValue in interface HtmlAttributes
Parameters:
index - 0 based attribute index
Returns:
value
See Also:
HtmlAttributes.getValue(int)

getWhitespace

public java.lang.String getWhitespace(int index)
Specified by:
getWhitespace in interface HtmlAttributes
Parameters:
index - 0 based attribute index
Returns:
returns the leading whitespace characters
See Also:
HtmlAttributes.getWhitespace(int)

size

public int size()
Specified by:
size in interface HtmlAttributes
Returns:
returns the number of attributes
See Also:
HtmlAttributes.size()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.