public interface DomTokenList
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String token)
Adds token to the underlying string
|
boolean |
contains(java.lang.String token)
Checks whether the underlying string contains the token
|
int |
getLength() |
java.lang.String |
item(int index)
Returns an item in the list by its index (or undefined if the number is greater than or equal to the
length of the list, prior to Gecko 7.0 returned null)
|
void |
remove(java.lang.String token)
Removes token from the underlying string
|
boolean |
toggle(java.lang.String token)
Removes token from string and returns false.
|
int getLength()
void add(java.lang.String token)
token
- The token to addboolean contains(java.lang.String token)
token
- The token to be checkedjava.lang.String item(int index)
index
- The index to get the item forvoid remove(java.lang.String token)
token
- The token to removeboolean toggle(java.lang.String token)
token
- The token which will either be removed or added