org.kite9.framework.alias
Class AbstractAliaser

java.lang.Object
  extended by org.kite9.framework.alias.AbstractAliaser
All Implemented Interfaces:
Aliaser
Direct Known Subclasses:
PropertyAliaser

public abstract class AbstractAliaser
extends Object
implements Aliaser

Handles the K9Alias tag and deferring to the getDefinedAlias tag for user-defined aliases. Default alias functionality is to strip everything before and including the last period, except in the case of package names.

Author:
moffatr

Constructor Summary
AbstractAliaser()
           
 
Method Summary
protected  String getAlias(Annotation a)
           
protected  String getAlias(Class<?> c)
           
protected  String getAlias(Constructor<?> m)
           
protected  String getAlias(Enum<?> o)
           
protected  String getAlias(Field f)
           
protected  String getAlias(Method m)
           
protected  String getAlias(Package p)
           
 String getAlias(String fullName)
           
protected  String getAlias(Type t)
           
protected  String getAliasFromAnnotation(AnnotatedElement p)
           
protected  String getDefaultAlias(String fullName)
          Strips off the package name or class name from the alias
protected abstract  String getDefinedAlias(String fullName)
           
protected  String getInheritedStereotypeFromAnnoatation(Class<?> c)
           
 String getObjectAlias(Object o)
           
 String getObjectStereotype(Object o)
           
protected  String getStereotype(Annotation a)
           
protected  String getStereotype(Class<?> o)
           
protected  String getStereotype(Constructor<?> o)
           
protected  String getStereotype(Enum<?> e)
           
protected  String getStereotype(Field o)
           
protected  String getStereotype(Method o)
           
protected  String getStereotype(Package o)
           
protected  String getStereotype(String s)
           
protected  String getStereotype(Type t)
           
protected  String getStereotypeFromAnnotation(AnnotatedElement p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAliaser

public AbstractAliaser()
Method Detail

getAlias

protected String getAlias(Class<?> c)

getAlias

protected String getAlias(Annotation a)

getAlias

protected String getAlias(Method m)

getAlias

protected String getAlias(Constructor<?> m)

getAlias

protected String getAlias(Field f)

getAlias

protected String getAlias(Type t)

getAlias

protected String getAlias(Package p)

getAliasFromAnnotation

protected String getAliasFromAnnotation(AnnotatedElement p)

getDefaultAlias

protected String getDefaultAlias(String fullName)
Strips off the package name or class name from the alias


getDefinedAlias

protected abstract String getDefinedAlias(String fullName)

getAlias

public String getAlias(String fullName)
Specified by:
getAlias in interface Aliaser

getObjectAlias

public String getObjectAlias(Object o)
Specified by:
getObjectAlias in interface Aliaser

getAlias

protected String getAlias(Enum<?> o)

getObjectStereotype

public String getObjectStereotype(Object o)
Specified by:
getObjectStereotype in interface Aliaser

getStereotype

protected String getStereotype(Field o)

getStereotype

protected String getStereotype(Type t)

getStereotype

protected String getStereotype(Class<?> o)

getStereotype

protected String getStereotype(Method o)

getStereotype

protected String getStereotype(Constructor<?> o)

getStereotype

protected String getStereotype(Package o)

getStereotype

protected String getStereotype(Enum<?> e)

getStereotype

protected String getStereotype(Annotation a)

getStereotype

protected String getStereotype(String s)

getStereotypeFromAnnotation

protected String getStereotypeFromAnnotation(AnnotatedElement p)

getInheritedStereotypeFromAnnoatation

protected String getInheritedStereotypeFromAnnoatation(Class<?> c)


Copyright © 2011. All Rights Reserved.