pt.digitalis.dif.codegen.util
Class EntityUtils

java.lang.Object
  extended by pt.digitalis.dif.codegen.util.EntityUtils

public final class EntityUtils
extends Object

A set of entity-inspection utilities.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
2007/11/07

Constructor Summary
EntityUtils()
           
 
Method Summary
static String getEntityID(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
          Returns the ID of a given entity.
static Entity getEntityType(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
          Returns the type of the entity type of the passed argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityUtils

public EntityUtils()
Method Detail

getEntityType

public static Entity getEntityType(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
                            throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException
Returns the type of the entity type of the passed argument.

Parameters:
clazz - the DEM object
Returns:
the entity type of the class passed as argument
Throws:
pt.digitalis.utils.inspection.exception.ResourceNotFoundException - if annotations can't be read

getEntityID

public static String getEntityID(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
                          throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException
Returns the ID of a given entity.

Parameters:
clazz - the DEM object
Returns:
the id of the supplied entity
Throws:
pt.digitalis.utils.inspection.exception.ResourceNotFoundException - if the annotations can't be read


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.