org.rapla.entities
Class RaplaType
java.lang.Object
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
RaplaType
public RaplaType(Class clazz,
String localname)
RaplaType
protected RaplaType(String name,
String localname)
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.