com.guiseframework.platform.web.css
Class ClassSelector

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

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

A class simple selector.

Author:
Garret Wilson

Constructor Summary
ClassSelector(java.lang.String className)
          Class name constructor.
 
Method Summary
 int compareTo(ClassSelector 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 getClassName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassSelector

public ClassSelector(java.lang.String className)
Class name constructor.

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

getClassName

public java.lang.String getClassName()
Returns:
The name of the 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(ClassSelector object)
Compares this object with the specified object for order. This implementation compares 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<ClassSelector>
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.