com.guiseframework.platform.web.css
Class Selector

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<com.globalmentor.model.NameValuePair<Combinator,java.util.List<SimpleSelector>>>
              extended by com.guiseframework.platform.web.css.Selector
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<com.globalmentor.model.NameValuePair<Combinator,java.util.List<SimpleSelector>>>, java.util.Collection<com.globalmentor.model.NameValuePair<Combinator,java.util.List<SimpleSelector>>>, java.util.List<com.globalmentor.model.NameValuePair<Combinator,java.util.List<SimpleSelector>>>, java.util.RandomAccess

public class Selector
extends java.util.ArrayList<com.globalmentor.model.NameValuePair<Combinator,java.util.List<SimpleSelector>>>

A selector of a CSS rule. A selector represents a list of simple selector sequences, each paired with a combinator. The first combinator of which will be ignored.

Author:
Garret Wilson
See Also:
CSS 3 Selectors, Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Selector()
          Default constructor.
Selector(TypeSelector typeSelector)
          Type selector constructor.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Selector

public Selector()
Default constructor.


Selector

public Selector(TypeSelector typeSelector)
Type selector constructor.

Parameters:
typeSelector - The type selector to add, or null if this selector should have no type selector.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<com.globalmentor.model.NameValuePair<Combinator,java.util.List<SimpleSelector>>>
Returns:
A string representation of the selector.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.