org.rapla.entities
Class RaplaType

java.lang.Object
  extended by org.rapla.entities.RaplaType
All Implemented Interfaces:
Serializable

public class RaplaType
extends Object
implements Serializable

Enumeration Pattern for all Rapla objects. You should not instanciate Objects of this type, there is only one instance of RaplaType for each class of objects. You can get it via the object interface. E.g. Reservation.TYPE or Allocatable.TYPE

See Also:
Serialized Form

Constructor Summary
  RaplaType(Class clazz, String localname)
           
protected RaplaType(String name, String localname)
           
 
Method Summary
 boolean equals(Object other)
           
static RaplaType find(String typeName)
           
 String getLocalName()
           
static Iterator getRegisteredTypes()
          Deprecated. Dangerous to use this method because a class registers itself on load time. So this method can return different results depending on how much RaplaTypes are currently loaded.
 int hashCode()
           
 boolean is(RaplaType other)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RaplaType

public RaplaType(Class clazz,
                 String localname)

RaplaType

protected RaplaType(String name,
                    String localname)
Method Detail

find

public static RaplaType find(String typeName)
                      throws RaplaException
Throws:
RaplaException

is

public boolean is(RaplaType other)

getLocalName

public String getLocalName()

toString

public String toString()
Overrides:
toString in class Object

getRegisteredTypes

public static Iterator getRegisteredTypes()
Deprecated. Dangerous to use this method because a class registers itself on load time. So this method can return different results depending on how much RaplaTypes are currently loaded.


equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.