|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.properties.internal.DefaultPropertyDescriptor
public class DefaultPropertyDescriptor
Default implementation for PropertyDescriptor.
| Constructor Summary | |
|---|---|
DefaultPropertyDescriptor()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getDefaultValue()
|
java.lang.String |
getDescription()
|
java.lang.reflect.Field |
getFied()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
java.lang.Class<?> |
getPropertyClass()
Deprecated. |
java.lang.reflect.Type |
getPropertyType()
|
java.lang.reflect.Method |
getReadMethod()
|
java.lang.reflect.Method |
getWriteMethod()
|
boolean |
isMandatory()
|
void |
setDefaultValue(java.lang.Object defaultValue)
|
void |
setDescription(java.lang.String description)
|
void |
setField(java.lang.reflect.Field field)
|
void |
setId(java.lang.String id)
|
void |
setMandatory(boolean mandatory)
|
void |
setName(java.lang.String name)
|
void |
setPropertyType(java.lang.reflect.Type propertyType)
|
void |
setReadMethod(java.lang.reflect.Method readMethod)
|
void |
setWriteMethod(java.lang.reflect.Method writeMethod)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPropertyDescriptor()
| Method Detail |
|---|
public java.lang.String getId()
getId in interface PropertyDescriptorPropertyDescriptor.getId()public void setId(java.lang.String id)
id - the identifier of the property.getId()public java.lang.String getName()
getName in interface PropertyDescriptorPropertyDescriptor.getName()public void setName(java.lang.String name)
name - the display name of the property.getName()public java.lang.String getDescription()
getDescription in interface PropertyDescriptorPropertyDescriptor.getDescription()public void setDescription(java.lang.String description)
description - the description of the property.getDescription()@Deprecated public java.lang.Class<?> getPropertyClass()
getPropertyClass in interface PropertyDescriptorPropertyDescriptor.getPropertyClass()public java.lang.reflect.Type getPropertyType()
getPropertyType in interface PropertyDescriptorPropertyDescriptor.getPropertyType()public void setPropertyType(java.lang.reflect.Type propertyType)
propertyType - the class of the property.getPropertyClass()public java.lang.Object getDefaultValue()
getDefaultValue in interface PropertyDescriptorPropertyDescriptor.getDefaultValue()public void setDefaultValue(java.lang.Object defaultValue)
defaultValue - the default value of the property.getDefaultValue()public boolean isMandatory()
isMandatory in interface PropertyDescriptorPropertyDescriptor.isMandatory()public void setMandatory(boolean mandatory)
mandatory - indicate if the property is mandatory.isMandatory()public void setField(java.lang.reflect.Field field)
field - the Field.PropertyDescriptor.getFied().public java.lang.reflect.Field getFied()
getFied in interface PropertyDescriptorPropertyDescriptor.getFied()public void setReadMethod(java.lang.reflect.Method readMethod)
readMethod - the read Method.PropertyDescriptor.getReadMethod().public java.lang.reflect.Method getReadMethod()
getReadMethod in interface PropertyDescriptorPropertyDescriptor.getReadMethod()public void setWriteMethod(java.lang.reflect.Method writeMethod)
writeMethod - the write Method.PropertyDescriptor.getWriteMethod().public java.lang.reflect.Method getWriteMethod()
getWriteMethod in interface PropertyDescriptorPropertyDescriptor.getWriteMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||