org.kite9.framework.alias
Class AbstractAliaser
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAliaser
public AbstractAliaser()
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.