org.beanlet
Annotation Type Attribute


@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface Attribute

Exposes methods or fields as beanlet attributes.

XML Representation

The following xml-fragment shows how to express this annotation in xml. The italic attribute of the 'attribute' tag is used to identify the element to which this annotation is applied. The other attributes can be specified optionally if the annotation specifies a default value for the particular annotation methods.
<beanlets xmlns="http://beanlet.org/schema/beanlet"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://beanlet.org/schema/beanlet http://beanlet.org/schema/beanlet/beanlet_1_0.xsd">
  <beanlet name="foo" type="com.acme.Foo">
    <attribute field="bar" access-type="" name=""
               description=""/>
  </beanlet>
</beanlets>


Optional Element Summary
 AttributeAccessType[] accessType
          Specifies the access rights for the attribute.
 String description
          Description of the attribute.
 String name
          Specifies the name of the attribute.
 

accessType

public abstract AttributeAccessType[] accessType
Specifies the access rights for the attribute. These access rights are not applicable to injection.

Default:
{}

name

public abstract String name
Specifies the name of the attribute. If name is set to "", the attribute name is picked according to the JavaBeans specification.

Default:
""

description

public abstract String description
Description of the attribute.

Default:
""


Copyright © 2006-2012. All Rights Reserved.