org.tango.server.annotation
Annotation Type DeviceProperty


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface DeviceProperty

A device property

 @DeviceProperty
 private String[] myProp = { "toto" };
 

Author:
ABEILLE

Optional Element Summary
 java.lang.String[] defaultValue
          The default value if not present in tango db
 java.lang.String description
          Description of the property
 boolean isMandatory
          Define if the property is mandatory
 java.lang.String name
          Default name is field name
 

name

public abstract java.lang.String name
Default name is field name

Returns:
The attribute name.
Default:
""

description

public abstract java.lang.String description
Description of the property

Returns:
the description
Default:
""

defaultValue

public abstract java.lang.String[] defaultValue
The default value if not present in tango db

Returns:
the default value
Default:
""

isMandatory

public abstract boolean isMandatory
Define if the property is mandatory

Returns:
true or false
Default:
false


Copyright © 2012-2017. All Rights Reserved.