ch.elca.el4j.util.dom.reflect
Class EntityType

java.lang.Object
  extended by ch.elca.el4j.util.dom.reflect.EntityType

public class EntityType
extends Object

Represents an entity type. Instances are obtained using get(Class). Example:

EntityType.get(Person.class)

Author:
Adrian Moos (AMS)
File-location:
EntityType
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Field Summary
 Class<?> clazz
          the domain object class.
 String name
          this type's name.
 List<Operation> ops
          the type's operations.
 List<Property> props
          the type's properties.
 
Constructor Summary
protected EntityType(Class<?> c)
          reflects about the domain model class c and creates its EntityType.
 
Method Summary
 Property find(String name)
          Returns the property named name or throws a NoSuchElementException if no such propery exists.
static EntityType get(Class<?> c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

public final Class<?> clazz
the domain object class.


name

public final String name
this type's name.


props

public final List<Property> props
the type's properties.


ops

public final List<Operation> ops
the type's operations.

Constructor Detail

EntityType

protected EntityType(Class<?> c)
reflects about the domain model class c and creates its EntityType.

Method Detail

find

public Property find(String name)
Returns the property named name or throws a NoSuchElementException if no such propery exists.

Parameters:
name - see above
Returns:
see above

get

public static EntityType get(Class<?> c)
Returns:
the entityType describing the domain class c.


Copyright © 2005-2011 ELCA. All Rights Reserved.