org.equanda.persistence
Class EquandaObjectType
java.lang.Object
org.equanda.persistence.EquandaObjectType
- All Implemented Interfaces:
- Serializable, ObjectType
public abstract class EquandaObjectType
- extends Object
- implements ObjectType
Base implementation of the ObjectType implementations
- Author:
- Joachim Van der Auwera
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquandaObjectType
public EquandaObjectType()
isAllowed
public boolean isAllowed(String type)
- Check whether the given table type identifier is a valid (specialized) version
of this table/class.
- Parameters:
type
- table type identifier
- Returns:
- true when it is a more specialized table
isType
public boolean isType(String type)
- Check whether this type is "instanceof" the given type (type itself or a child thereof).
For example, in a hierarchy Object-Vehicle-Car,
Vehicle.isType(Vehicle) returns true
Vehicle.isType(Car) returns false
Vehicle.isType(Object) returns true
- Specified by:
isType
in interface ObjectType
- Parameters:
type
- type identifier (four letters) for the type to test
- Returns:
- true when it is an "instanceof"
isParentType
public boolean isParentType(String type)
- Check whether the given type "is a child of" (or the type itself).
For example, in a hierarchy Object-Vehicle-Car,
Vehicle.isParentType(Vehicle) returns true
Vehicle.isParentType(Car) returns true
Vehicle.isParentType(Object) returns false
- Specified by:
isParentType
in interface ObjectType
- Parameters:
type
- type identifier (four letters) for the type to test
- Returns:
- true when it is an "instanceof"
isAllowed
public boolean isAllowed(boolean b)
isAllowed
public boolean isAllowed(int i)
isAllowed
public boolean isAllowed(double v)
getAllowedIntValues
public Collection<Integer> getAllowedIntValues()
getAllowedIntNames
public Collection<String> getAllowedIntNames()
getAllowedBooleanValues
public Collection<Boolean> getAllowedBooleanValues()
getAllowedBooleanNames
public Collection<String> getAllowedBooleanNames()
getAllowedDoubleValues
public Collection<Double> getAllowedDoubleValues()
getAllowedDoubleNames
public Collection<String> getAllowedDoubleNames()
Copyright © 2007-2009. All Rights Reserved.