org.rapla.entities.dynamictype
Interface DynamicType
- All Superinterfaces:
- Annotatable, Entity, MultiLanguageNamed, Named, RaplaObject
public interface DynamicType
- extends Entity, RaplaObject, MultiLanguageNamed, Annotatable
In rapla it is possible to dynamicly classify a reservation, resource or person with
customized attributes. You can for example define a dynamicType called room with the
attributes name and seats and classify all your room-resources as room.
Methods inherited from interface org.rapla.entities.Named |
getName |
TYPE
static final RaplaType TYPE
DYNAMICTYPE_ARRAY
static final DynamicType[] DYNAMICTYPE_ARRAY
getAttributes
Attribute[] getAttributes()
getAttribute
Attribute getAttribute(String key)
- returns null if the attribute is not found
addAttribute
void addAttribute(Attribute attribute)
findAttribute
Attribute findAttribute(Attribute attribute)
- find an attribute in the dynamic type that equals the specified attribute This is usefull if you have the
persistant version of an attribute and want to discover the editable version in the working copy of a dynamic type
hasAttribute
boolean hasAttribute(Attribute attribute)
removeAttribute
void removeAttribute(Attribute attribute)
exchangeAttributes
void exchangeAttributes(int index1,
int index2)
- exchange the two attribute positions
setElementKey
void setElementKey(String elementKey)
getElementKey
String getElementKey()
newClassification
Classification newClassification()
newClassification
Classification newClassification(Classification originalClassification)
newClassificationFilter
ClassificationFilter newClassificationFilter()
Copyright © 2000-2006 Rapla Team. All Rights Reseserved.