com.quiotix.html.parser
Class HtmlDocument.AttributeList

java.lang.Object
  extended by com.quiotix.html.parser.HtmlDocument.AttributeList
Enclosing class:
HtmlDocument

public static class HtmlDocument.AttributeList
extends java.lang.Object

A List of Attributes.


Field Summary
 java.util.List attributes
          The backing List.
 
Constructor Summary
HtmlDocument.AttributeList()
           
 
Method Summary
 void addAttribute(HtmlDocument.Attribute a)
          Add.
 boolean contains(java.lang.String name)
          Whether the List contains an Attribute with the given name.
 java.lang.String getValue(java.lang.String name)
           
 boolean hasValue(java.lang.String name)
          Whether the List contains an Attribute with the given name and that Attribute has a non-null value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

public java.util.List attributes
The backing List.

Constructor Detail

HtmlDocument.AttributeList

public HtmlDocument.AttributeList()
Method Detail

addAttribute

public void addAttribute(HtmlDocument.Attribute a)
Add.


contains

public boolean contains(java.lang.String name)
Whether the List contains an Attribute with the given name.


hasValue

public boolean hasValue(java.lang.String name)
Whether the List contains an Attribute with the given name and that Attribute has a non-null value.


getValue

public java.lang.String getValue(java.lang.String name)
Parameters:
name - the name of the Attribute
Returns:
the value of the Attribute with the given name or null


Copyright © 1999-2008 Quiotix. All Rights Reserved.