@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Field
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
defaultValue
Default value of the property.
|
boolean |
defaultValueIsStringLiteral
By default the value being assigned to the property as string literal (e.g.)
|
boolean |
isTransient
Transient property will not be saved and restored.
|
java.lang.String |
javadoc
javadoc for the property.
|
public abstract boolean isTransient
public abstract java.lang.String defaultValue
public abstract java.lang.String javadoc
public abstract boolean defaultValueIsStringLiteral
@Property (value="Car") String type; The generated property would look something like this: String type = "Car"; But what if you want to define some other type then string or a constant, expression etc. You don't want value to be quoted in that case. So you would set this attribute to false. (e.g) @Property (value="10", defaultValueIsStringLiteral=false) Integer count;
Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.