public class DynamicProperty extends Object implements XProperty
| Constructor and Description |
|---|
DynamicProperty(AuditedPropertiesReader.DynamicComponentSource source,
String propertyName) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationType) |
Annotation[] |
getAnnotations() |
XClass |
getClassOrElementClass()
The type of this property's elements for arrays, the type of the property itself for everything else.
|
Class<? extends Collection> |
getCollectionClass()
The collection class for collections, null for others.
|
XClass |
getDeclaringClass()
Retrieve the XClass reference for the class which declares this member.
|
XClass |
getElementClass()
This property's type for simple properties, the type of its elements for arrays and collections.
|
XClass |
getMapKey()
The type of this map's key, or null for anything that is not a map.
|
int |
getModifiers()
Same modifiers as java.lang.Member#getModifiers()
|
String |
getName() |
XClass |
getType()
This property's XClass.
|
Object |
invoke(Object target)
Invoke the method with no parameters.
|
Object |
invoke(Object target,
Object... parameters) |
<T extends Annotation> |
isAnnotationPresent(Class<T> annotationType) |
boolean |
isArray() |
boolean |
isCollection() |
boolean |
isTypeResolved() |
void |
setAccessible(boolean accessible) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic DynamicProperty(AuditedPropertiesReader.DynamicComponentSource source, String propertyName)
public XClass getDeclaringClass()
XMembergetDeclaringClass in interface XMemberpublic boolean isCollection()
isCollection in interface XMemberpublic Class<? extends Collection> getCollectionClass()
XMembergetCollectionClass in interface XMemberpublic XClass getElementClass()
XMembergetElementClass in interface XMemberpublic XClass getClassOrElementClass()
XMembergetClassOrElementClass in interface XMemberpublic XClass getMapKey()
XMemberpublic int getModifiers()
XMembergetModifiers in interface XMemberpublic void setAccessible(boolean accessible)
setAccessible in interface XMemberpublic Object invoke(Object target)
XMemberXMember.invoke(Object, Object...).public boolean isTypeResolved()
isTypeResolved in interface XMemberpublic <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation in interface XAnnotatedElementpublic <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)
isAnnotationPresent in interface XAnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface XAnnotatedElementCopyright © 2018 JBoss by Red Hat. All rights reserved.