public class CustomTagAnnotations extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static BeanTagAttribute.AttributeType |
deriveTypeFromMethod(Method attributeMethod) |
static String |
findPropertyByType(String parentTag,
String childTag) |
protected static List<Class<?>> |
findTagClasses(String basePackage)
Finds all the classes which have a BeanTag or BeanTags annotation
|
static Map<String,Map<String,BeanTagAttributeInfo>> |
getAttributeProperties()
Retrieves a map of attribute and property information for the bean tags.
|
static Map<String,BeanTagAttributeInfo> |
getAttributes(Class<?> tagClass)
Creates a map of entries the properties marked by the annotation of the bean class.
|
static Map<String,BeanTagInfo> |
getBeanTags()
Retrieves the map of bean tags.
|
static Set<String> |
getBeanTagsByClass(Class<?> clazz)
Retrieves the set of tag names that are valid beans for the given class.
|
protected static boolean |
isBeanTag(org.springframework.core.type.classreading.MetadataReader metadataReader)
Returns true if the metadataReader representing the class has a BeanTag or BeanTags annotation
|
protected static boolean |
isBeanType(Type type) |
protected static boolean |
isValueType(Type type) |
protected static void |
loadAttributeProperties(String tagName,
Class<?> tagClass)
Load the attribute information of the properties in the class repersented by the new tag.
|
protected static void |
loadBeanTags()
Load the information for the xml bean tags defined in the custom schema through annotation of the represented
classes.
|
static void |
loadTagClasses()
Loads component classes for the custom schema by scanning configured packages.
|
static void |
loadTagClasses(String[] scanPackages)
Loads component classes for the custom schema by scanning the given packages.
|
protected static boolean |
validateBeanTag(String tagName)
Validates that the tag name is not already taken.
|
public static void loadTagClasses()
Packages to scan are configured using org.kuali.rice.krad.util.KRADConstants.ConfigParameters#SCHEMA_PACKAGES
public static void loadTagClasses(String[] scanPackages)
scanPackages - array of packages to scanprotected static List<Class<?>> findTagClasses(String basePackage) throws IOException, ClassNotFoundException
basePackage - the package to start inIOExceptionClassNotFoundExceptionprotected static boolean isBeanTag(org.springframework.core.type.classreading.MetadataReader metadataReader)
metadataReader - MetadataReader representing the class to analyzeprotected static void loadAttributeProperties(String tagName, Class<?> tagClass)
doc - the RescourceBundle containing the documentationpublic static Map<String,BeanTagAttributeInfo> getAttributes(Class<?> tagClass)
tagClass - class being mapped for attributesprotected static BeanTagAttribute.AttributeType deriveTypeFromMethod(Method attributeMethod)
protected static boolean isValueType(Type type)
protected static boolean isBeanType(Type type)
protected static void loadBeanTags()
protected static boolean validateBeanTag(String tagName)
tagName - the name of the tag for the new beanpublic static Map<String,BeanTagInfo> getBeanTags()
public static Set<String> getBeanTagsByClass(Class<?> clazz)
clazz - class to retrieve tag names forpublic static Map<String,Map<String,BeanTagAttributeInfo>> getAttributeProperties()
public static String findPropertyByType(String parentTag, String childTag)
Copyright © 2005–2018 The Kuali Foundation. All rights reserved.