com.guiseframework.platform.web.css
Class PseudoClass

java.lang.Object
  extended by com.guiseframework.platform.web.css.PseudoClass
All Implemented Interfaces:
SimpleSelector, java.lang.Comparable<PseudoClass>

public class PseudoClass
extends java.lang.Object
implements SimpleSelector, java.lang.Comparable<PseudoClass>

A pseudo class simple selector.

Author:
Garret Wilson

Constructor Summary
PseudoClass(java.lang.String pseudoClassName)
          Pseudo class name constructor.
 
Method Summary
 int compareTo(PseudoClass object)
          Compares this object with the specified object for order.
 boolean equals(java.lang.Object object)
          Determines whether this object is equivalent to another object.
 java.lang.String getPseudoClassName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PseudoClass

public PseudoClass(java.lang.String pseudoClassName)
Pseudo class name constructor.

Parameters:
pseudoClassName - The name of the pseudo class to be selected.
Throws:
java.lang.NullPointerException - if the given pseudo class name is null.
Method Detail

getPseudoClassName

public java.lang.String getPseudoClassName()
Returns:
The name of the pseudo class to be selected.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for this object.

equals

public boolean equals(java.lang.Object object)
Determines whether this object is equivalent to another object.

Overrides:
equals in class java.lang.Object
Parameters:
object - The object to compare with this object.
Returns:
true if this object is equivalent to the given object.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.

compareTo

public int compareTo(PseudoClass object)
Compares this object with the specified object for order. This implementation compares pseudo-class names. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface java.lang.Comparable<PseudoClass>
Parameters:
object - The object to be compared.
Returns:
A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.


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