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, wait
equals
public DynamicProperty(AuditedPropertiesReader.DynamicComponentSource source, String propertyName)
public XClass getDeclaringClass()
XMember
getDeclaringClass
in interface XMember
public boolean isCollection()
isCollection
in interface XMember
public Class<? extends Collection> getCollectionClass()
XMember
getCollectionClass
in interface XMember
public XClass getElementClass()
XMember
getElementClass
in interface XMember
public XClass getClassOrElementClass()
XMember
getClassOrElementClass
in interface XMember
public XClass getMapKey()
XMember
public int getModifiers()
XMember
getModifiers
in interface XMember
public void setAccessible(boolean accessible)
setAccessible
in interface XMember
public Object invoke(Object target)
XMember
XMember.invoke(Object, Object...)
.public boolean isTypeResolved()
isTypeResolved
in interface XMember
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation
in interface XAnnotatedElement
public <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)
isAnnotationPresent
in interface XAnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface XAnnotatedElement
Copyright © 2017 JBoss by Red Hat. All rights reserved.