@Retention(value=SOURCE)
@Target(value={})
public @interface Property
Model
annotation.Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
name
Name of the property.
|
java.lang.Class<?> |
type
Type of the property.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
array
Is this property an array of the
Property.type() or a single value?
If the property is an array, only its getter (returning mutable List of
the boxed Property.type() ) is generated. |
boolean |
mutable
Can the value of the property be mutated without restriction or not.
|
public abstract java.lang.String name
public abstract java.lang.Class<?> type
int.class
,
double.class
, etc.), String
, enum
or complex model
class (defined by Model
property).public abstract boolean array
Property.type()
or a single value?
If the property is an array, only its getter (returning mutable List
of
the boxed Property.type()
) is generated.public abstract boolean mutable
Technology
.
Attempts to modify the object later yield IllegalStateException
.
Technologies may decide to represent such non-mutable
property in more effective way - for
example Knockout Java Bindings technology (with id
"ko4j")
uses plain JavaScript value (number, string, array, boolean) rather
than classical observable.Copyright © 2021 The Apache Software Foundation. All rights reserved.