com.guiseframework.platform.web.css
Class TypeSelector

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

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

A type simple selector. This implementation represents the universal selector by an instance of a type selector with the type "*".

Author:
Garret Wilson

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

Constructor Detail

TypeSelector

public TypeSelector(java.lang.String typeName)
Type name constructor.

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

getTypeName

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