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.


Field Summary
static DynamicType[] DYNAMICTYPE_ARRAY
           
static RaplaType TYPE
           
 
Fields inherited from interface org.rapla.entities.Entity
ENTITY_ARRAY
 
Method Summary
 void addAttribute(Attribute attribute)
           
 void exchangeAttributes(int index1, int index2)
          exchange the two attribute positions
 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
 Attribute getAttribute(String key)
          returns null if the attribute is not found
 Attribute[] getAttributes()
           
 String getElementKey()
           
 boolean hasAttribute(Attribute attribute)
           
 Classification newClassification()
           
 Classification newClassification(Classification originalClassification)
           
 ClassificationFilter newClassificationFilter()
           
 void removeAttribute(Attribute attribute)
           
 void setElementKey(String elementKey)
           
 
Methods inherited from interface org.rapla.entities.Entity
isIdentical, isPersistant
 
Methods inherited from interface org.rapla.entities.RaplaObject
getRaplaType
 
Methods inherited from interface org.rapla.entities.MultiLanguageNamed
getName
 
Methods inherited from interface org.rapla.entities.Named
getName
 
Methods inherited from interface org.rapla.entities.Annotatable
getAnnotation, getAnnotation, getAnnotationKeys, setAnnotation
 

Field Detail

TYPE

static final RaplaType TYPE

DYNAMICTYPE_ARRAY

static final DynamicType[] DYNAMICTYPE_ARRAY
Method Detail

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.