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 Object

A List of Attributes.


Field Summary
 List attributes
          The backing List.
 
Constructor Summary
HtmlDocument.AttributeList()
           
 
Method Summary
 void addAttribute(HtmlDocument.Attribute a)
          Add.
 boolean contains(String name)
          Whether the List contains an Attribute with the given name.
 String getValue(String name)
           
 boolean hasValue(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 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(String name)
Whether the List contains an Attribute with the given name.


hasValue

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


getValue

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


Copyright © 1999-2011 Quiotix. All Rights Reserved.